上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: 1、在 src 里面,新建 store 文件夹,里面分别再创建 modules 文件夹、getters.js 和 index.js : 2、modules 里面,创建 print.js: const state={ goodsForeNo: '' } const mutations = { STOR 阅读全文
posted @ 2020-10-21 14:45 小蘑菇123 阅读(1513) 评论(0) 推荐(0)
摘要: 1、例如: <1-- 选择证件图片 --><ul class="upload-imgs"> <!-- imgLen 为选择几张图片,当前设置了选择一张后隐藏选择按钮 --> <li v-if="imgLen == 1 ? false : true"> <input type="file" class 阅读全文
posted @ 2020-10-20 16:40 小蘑菇123 阅读(1257) 评论(0) 推荐(0)
摘要: 1、例如:输入起止时间,获取以下内容 2、方法如下: getYearAndMonth(start, end) { let month; const result = []; const newResult = []; const starts = start.split('-'); const en 阅读全文
posted @ 2020-10-15 14:36 小蘑菇123 阅读(621) 评论(0) 推荐(0)
摘要: 1、template: <div style="text-align: initial;margin-top: 20px;"> <el-upload :class="{hide:hideUpload}" action= '' list-type="picture-card" :auto-upload 阅读全文
posted @ 2020-09-29 14:35 小蘑菇123 阅读(3631) 评论(0) 推荐(0)
摘要: 1、template: <el-upload action= '' list-type="picture-card" :auto-upload="false" :show-file-list='true' :file-list="certificates" :on-preview="showimg" 阅读全文
posted @ 2020-09-24 17:01 小蘑菇123 阅读(2225) 评论(0) 推荐(0)
摘要: 1、在登录页同级目录下,新建滑块验证页面 JcRange.vue: 2、JcRange.vue: <template> <div ref="dragVerify" class="drag_verify" :style="dragVerifyStyle" @mousemove="dragMoving" 阅读全文
posted @ 2020-09-24 09:59 小蘑菇123 阅读(672) 评论(3) 推荐(1)
摘要: main.js 中, // 挂载路由导航守卫 router.beforeEach((to, from, next) => { //获取token const hasToken = getToken(); // to 将要访问的路径 // from 代表从哪个路径跳转而来 // next 是一个函数, 阅读全文
posted @ 2020-09-22 15:26 小蘑菇123 阅读(3812) 评论(0) 推荐(0)
摘要: 1、获取后端返回过来的值: getweekData() { this.statistics_week = []; uni.request({ url: this.$url + '/homeInfo/weekData', header: { 'content-type': 'application/j 阅读全文
posted @ 2020-09-18 15:04 小蘑菇123 阅读(1205) 评论(0) 推荐(0)
摘要: 1、比如我是写在根目录的: 2、点击跳转到没权限的路由(因为没权限,该路由找不到,显示空白页): 3、路由守卫如下: router.beforeEach((to, from, next) => { const hasToken = getToken(); // console.log(hasToke 阅读全文
posted @ 2020-09-10 17:59 小蘑菇123 阅读(2549) 评论(0) 推荐(0)
摘要: 1、 let yy = new Date().getFullYear(); //获取年 let mm = new Date().getMonth() + 1; //获取月 let dd = new Date().getDate(); //获取日 if (mm >= 1 && mm <= 9) mm 阅读全文
posted @ 2020-09-09 10:58 小蘑菇123 阅读(466) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页