09 2020 档案
摘要:1、template: <div style="text-align: initial;margin-top: 20px;"> <el-upload :class="{hide:hideUpload}" action= '' list-type="picture-card" :auto-upload
阅读全文
摘要:1、template: <el-upload action= '' list-type="picture-card" :auto-upload="false" :show-file-list='true' :file-list="certificates" :on-preview="showimg"
阅读全文
摘要:1、在登录页同级目录下,新建滑块验证页面 JcRange.vue: 2、JcRange.vue: <template> <div ref="dragVerify" class="drag_verify" :style="dragVerifyStyle" @mousemove="dragMoving"
阅读全文
摘要:main.js 中, // 挂载路由导航守卫 router.beforeEach((to, from, next) => { //获取token const hasToken = getToken(); // to 将要访问的路径 // from 代表从哪个路径跳转而来 // next 是一个函数,
阅读全文
摘要:1、获取后端返回过来的值: getweekData() { this.statistics_week = []; uni.request({ url: this.$url + '/homeInfo/weekData', header: { 'content-type': 'application/j
阅读全文
摘要:1、比如我是写在根目录的: 2、点击跳转到没权限的路由(因为没权限,该路由找不到,显示空白页): 3、路由守卫如下: router.beforeEach((to, from, next) => { const hasToken = getToken(); // console.log(hasToke
阅读全文
摘要:1、 let yy = new Date().getFullYear(); //获取年 let mm = new Date().getMonth() + 1; //获取月 let dd = new Date().getDate(); //获取日 if (mm >= 1 && mm <= 9) mm
阅读全文
摘要:1、在 echarts 中,只能用 number,不能用字符串,假设后端返回过来的为: 2、 要把 "0.00%" 变成数字,且保留2位小数,则需要: function toDecimal2(x) { const f = parseFloat(x); let s = f.toString(); le
阅读全文
摘要:在想要复制的内容模块外面,加上text 标签即可: <text selectable="true">{{item.id}}</text>
阅读全文
摘要:1、需要的效果如下: 2、template: <template> <view class="content"> <view class="containers"> <view class="title"> <view class="head-left"></view> <view class="h
阅读全文