摘要: 代码 <template> <div> <!-- 左侧的滑动模块 --> <div class="scroll-box" :style="{width: 410.7*screenWidth/1920+'px', height:730*screeHeight/1080+'px',top:130*scr 阅读全文
posted @ 2023-03-02 11:41 鲤斌 阅读(84) 评论(0) 推荐(0)
摘要: 阿里云短信服务 首先进入阿里云获得AccessKeyID 和 AccessKeySecret 获取短信签名与短信模板 阿里云短信发送需要的依赖 <!-- 阿里云短信服务所需 --> <dependency> <groupId>com.aliyun</groupId> <artifactId>aliy 阅读全文
posted @ 2023-02-26 22:57 鲤斌 阅读(75) 评论(0) 推荐(0)
摘要: 依赖 <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>4.0.0</version> </dependency> JWTUtil 工具包 public class JWTUtil 阅读全文
posted @ 2023-02-26 13:49 鲤斌 阅读(38) 评论(0) 推荐(0)
摘要: 请求时获取token并验证 public class MyInterceptor implements HandlerInterceptor { //方法执行前进行拦截 @Override public boolean preHandle(HttpServletRequest request, Ht 阅读全文
posted @ 2023-02-26 10:54 鲤斌 阅读(756) 评论(0) 推荐(0)
摘要: vue代码 //全局路由首位;当路由发生异常首先执行的方法 router.beforeEach((to, from, next) => { //是否被认证 var isAuthenticated = false; //1.从localStorage获取用户的token 是否为空 this.token 阅读全文
posted @ 2023-02-26 10:40 鲤斌 阅读(93) 评论(0) 推荐(0)
摘要: 代码 localStorage.setItem("token",res.data.data);// 用localStorage缓存token值 阅读全文
posted @ 2023-02-26 00:52 鲤斌 阅读(43) 评论(0) 推荐(0)
摘要: vue代码 <template> <div> <!-- 点击按钮后倒计时 --> <el-button @click="signUp_asd" type="success" :disabled="!show"> 获取验证码 <span v-show="!show" class="count">({{ 阅读全文
posted @ 2023-02-26 00:44 鲤斌 阅读(235) 评论(0) 推荐(0)
摘要: vue代码 <template> <div> <h4>http://localhost:8080/#/test?levels=level1-1</h4> <h4>获取levels1-1</h4> levels= {{levels}} </div> </template> <script> expor 阅读全文
posted @ 2023-02-26 00:34 鲤斌 阅读(77) 评论(0) 推荐(0)
摘要: vue代码 <template> <div class="index"> <!-- 遍历 --> <div v-for="(item, index) in catalogue" :key="index"> <!-- 页面跳转 --> <!-- <router-link :to="{path:'/bo 阅读全文
posted @ 2023-02-26 00:25 鲤斌 阅读(33) 评论(0) 推荐(0)
摘要: vue代码 <template> <div> {{screenWidth}} {{screeHeight}} <div v-for="(item, index) in book" :key="index"> <!-- 当从后台获取数据的时候可以进行替换 --> <!-- <img class="im 阅读全文
posted @ 2023-02-26 00:05 鲤斌 阅读(1454) 评论(1) 推荐(1)