diff --git a/src/pages/deviceList/index.vue b/src/pages/deviceList/index.vue index 6e73d42..00f6b95 100644 --- a/src/pages/deviceList/index.vue +++ b/src/pages/deviceList/index.vue @@ -120,15 +120,13 @@ const fnFullSltdChg = () => { // 获取屏幕边界到安全区域距离 // 微信扫码 const fnScan = async () => { - // 只允许从相机扫码 - wx.scanCode({ - onlyFromCamera: true, + uni.navigateToMiniProgram({ + appId: 'wx630bc4f43990c80c', + path: '/pages/scan/scan', + envVersion: 'develop', + //envVersion: 'trial', success(res) { - console.log('scan:', res) - let pathArr = res.path.split('=') - // uni.redirectTo({ - // url: '/pages/selectAction/selectAction?devCode=' + pathArr[1], - // }) + // 打开成功 }, }) }