摘要: 1、引入weapp-qrcode.js ` Core code comes from https://github.com/davidshimjs/qrcodejs var QRCode; (function () { /** Get the type by string length @priva 阅读全文
posted @ 2021-05-28 14:18 学脚本的小垃圾 阅读(833) 评论(0) 推荐(0) 编辑
摘要: wx.stopPullDownRefresh(); 阅读全文
posted @ 2021-05-28 14:11 学脚本的小垃圾 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 1、把方法写在utils中 const copyText = e => { wx.setClipboardData({ data: e.currentTarget.dataset.text, success: function (res) { wx.getClipboardData({ succes 阅读全文
posted @ 2021-05-28 14:09 学脚本的小垃圾 阅读(514) 评论(0) 推荐(0) 编辑
摘要: // 校验身份证号 checkIdCardNumber(v) { if (!v) { Toast.fail('身份证号不能为空', 2) return false * } else if (v.toString().length !== 18) { Toast.fail('请输入18位有效的身份证号 阅读全文
posted @ 2021-05-28 13:59 学脚本的小垃圾 阅读(1061) 评论(0) 推荐(0) 编辑