From 41c8136fb5d03346ee309a8f93b685be61b177cf Mon Sep 17 00:00:00 2001 From: mhsnet Date: Wed, 14 Aug 2024 12:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=94=B6=E7=AB=AF=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/deviceList/index.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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], - // }) + // 打开成功 }, }) }