Commit 623dc73b by 谢中龙

修改bug

parent d717d299
...@@ -76,6 +76,13 @@ wxService.page({ ...@@ -76,6 +76,13 @@ wxService.page({
}, },
//打开摄像头 扫码 //打开摄像头 扫码
onTapScanQrcode(){ onTapScanQrcode(){
if (!this.data.guiderCanScanQrcode){
wx.showToast({
title: '对不起,您无该权限!',
icon : 'none'
});
return ;
}
wx.scanCode({ wx.scanCode({
success : res => { success : res => {
let result = res.result; let result = res.result;
......
...@@ -655,6 +655,7 @@ class WXService extends Http { ...@@ -655,6 +655,7 @@ class WXService extends Http {
config.data.shareTitle = envInfo.shareTitle; config.data.shareTitle = envInfo.shareTitle;
config.data.speadProductsBanner = envInfo.speadProductsBanner; config.data.speadProductsBanner = envInfo.speadProductsBanner;
config.data.canUseWechatAddress = envInfo.canUseWechatAddress; config.data.canUseWechatAddress = envInfo.canUseWechatAddress;
config.data.guiderCanScanQrcode = envInfo.guiderCanScanQrcode;
//默认 //默认
config.data.loading = true; config.data.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment