摘要: return( nowTime: this.$moment(new Date()).format('HH:mm:ss'), nowDay: this.formatDate(), nowWeek: this.getWeekDate(), ) methods:{ // 年月日 formatDate()  阅读全文
posted @ 2022-02-07 15:19 笨笨白 阅读(85) 评论(0) 推荐(0) 编辑
摘要: html.json.code-snippets 以下是两个配置: { /*常用window监听*/ "Print to window.addEventListener": { "scope": "javascript,typescript", "prefix": "add", "body": ["w 阅读全文
posted @ 2021-12-01 08:57 笨笨白 阅读(261) 评论(0) 推荐(0) 编辑
摘要: import cookies from 'weapp-cookie' // 点击登录按钮 formSubmit: function(e) { const params = { password: this.base64Encodes(this.form.password), tenantName: 阅读全文
posted @ 2021-11-30 17:31 笨笨白 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 一般页面跳转: uni.navigateTo({ url: '/pages/questions/practice/index', }) 传参页面跳转 uni.navigateTo({ url: '/pages/questions/practice/index? name’ + typeName , 阅读全文
posted @ 2021-11-29 17:40 笨笨白 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1. formRules: { newPassword: [ { required: true, message: '请输入新密码', trigger: 'blur' } ], oldPassword: [ { required: true, message: '请输入当前密码', trigger: 阅读全文
posted @ 2021-08-23 17:28 笨笨白 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1. <el-select v-if="isEdit" v-model="form.employerIds" multiple filterable remote reserve-keyword placeholder="请输入关键词" @change="changeEmployerIds" :re 阅读全文
posted @ 2021-08-23 16:59 笨笨白 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1. <div class="avatar" style="text-align: center;"> <img :src="avatarUrl ? avatarUrl : defaultAvatar" alt="用户头像图片"> <p style="margin-top: 10px;"> <el- 阅读全文
posted @ 2021-08-23 16:48 笨笨白 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1. <el-button type="" @click="upload">导入学员</el-button> 2. upload(){ this.$refs['files'].click() } 3. <input style="display: none" ref="files" @change= 阅读全文
posted @ 2021-08-23 16:43 笨笨白 阅读(75) 评论(0) 推荐(0) 编辑
摘要: changeVal(){ this.$forceUpdate() }, 阅读全文
posted @ 2021-08-23 16:39 笨笨白 阅读(19) 评论(0) 推荐(0) 编辑
摘要: import qs from 'qs' /** * 错题查询 * @param {} params */ export const questions = (data) => { return request({ url: `${url}/questions/error-questions`, me 阅读全文
posted @ 2021-06-09 15:18 笨笨白 阅读(46) 评论(0) 推荐(0) 编辑