摘要: 由于uniapp暂无钉钉授权登录所以本文将钉钉扫码登录作为网页嵌入uniapp,最终实现钉钉扫码登录app 1. 用H5调起钉钉扫码登录 钉钉在网页端的扫码登录可参考钉钉文档:扫码登录第三方网站 - 钉钉开放平台 (dingtalk.com) // 钉钉扫码登录 dingLoginFn() { le 阅读全文
posted @ 2021-12-13 23:51 fanmengfei 阅读(1938) 评论(0) 推荐(1) 编辑
摘要: 1. 下载nvm并安装 (推荐使用nvm-setup.zip) https://github.com/coreybutler/nvm-windows/releases 2. 使用nvm命令切换node版本,即可完成安装 nvm // 会提示nvw下的相关命令 nvm ls // 查看已安装node版 阅读全文
posted @ 2021-11-25 23:38 fanmengfei 阅读(121) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="scan"> <div id="bcid"></div> <div class="back-arrow" @click="clickIndexLeft"> <van-icon name="arrow-left" color="#fff" /> </div 阅读全文
posted @ 2021-11-12 09:59 fanmengfei 阅读(1764) 评论(1) 推荐(0) 编辑
摘要: // yarn add @zxing/library 安装zxing插件 <template> <div class="page-scan"> <!--返回--> <!-- <van-nav-bar title="扫描二维码/条形码" fixed @click-left="clickIndexLef 阅读全文
posted @ 2021-11-12 09:56 fanmengfei 阅读(2525) 评论(0) 推荐(0) 编辑
摘要: 如下GET请求传递一个数组参数 let params = { statusList: ['OVERDUE', 'DELAY'] } this.$http.get('/list', params) .then(res => {}) .catch(e => {}) 不做任何处理时候,参数会变成/list 阅读全文
posted @ 2021-07-30 17:02 fanmengfei 阅读(4041) 评论(0) 推荐(0) 编辑
摘要: // watch能监听 var vue = new Vue({ data:{ a:1, b:[], c:{ d:2, e:"3" }, firstName: '' }, methods:{ clickMethod(){ this.c.f=4 // 通过点方法给对象添加属性,这时候watch监听不到变 阅读全文
posted @ 2021-07-24 10:06 fanmengfei 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 利用popstate事件和pushState方法,popstate是html5新增的一个事件,它会在浏览器历史发生变化时触发 // 跳转指定URL const toUrl = url => { window.history.pushState({target: ''Final}, '', windo 阅读全文
posted @ 2021-01-07 17:40 fanmengfei 阅读(727) 评论(0) 推荐(0) 编辑
摘要: http://e.hiphotos.baidu.com/image/pic/item/a1ec08fa513d2697e542494057fbb2fb4316d81e.jpg http://c.hiphotos.baidu.com/image/pic/item/30adcbef76094b36de8 阅读全文
posted @ 2020-12-11 20:34 fanmengfei 阅读(418) 评论(0) 推荐(0) 编辑
摘要: Object.prototype.toString.call(123).slice(8, -1) // Number // 直接输出数类型 首字母大写 Number、Array、Function等 下面是各种数据类型调用toString()方法的返回值 数据类型例子return 字符串 “foo”. 阅读全文
posted @ 2020-12-04 12:01 fanmengfei 阅读(97) 评论(0) 推荐(0) 编辑
摘要: // use PDFJS this.loadingTask =window.pdfjsLib.getDocument({ url: url, withCredentials: true, // 携带凭证 httpHeaders: {}, // 添加header cMapPacked: true, c 阅读全文
posted @ 2020-11-13 17:44 fanmengfei 阅读(1773) 评论(0) 推荐(0) 编辑