Commit c05dcba5 by wjd

Merge branch 'jianxiang' into 'debug'

未开启相机权限弹框提示更改

See merge request iot-project-js/doorlock!41
parents 9aedeab7 f069821b
...@@ -72,11 +72,11 @@ function resolve(self){ ...@@ -72,11 +72,11 @@ function resolve(self){
}, function (err) { }, function (err) {
console.log('error', err); console.log('error', err);
plus.nativeUI.confirm(Vue.t("addDevice.openCameraTip"), (e)=>{ plus.nativeUI.confirm(Vue.t("addDevice.openCameraTip"), (e)=>{
if(e.index == 0){ if(e.index == 1){
iot.native.toAppSetting(); iot.native.toAppSetting();
} }
backTap(self); backTap(self);
},{"title": "","buttons": [Vue.t("addDevice.openCamera"),Vue.t("btn.cancel")]}); },{"title": "","buttons": [Vue.t("btn.cancel"),Vue.t("addDevice.openCamera")]});
}); });
}else{ }else{
let isFistOpenCamera = iot.storage.getMap('isFistOpenCamera'); let isFistOpenCamera = iot.storage.getMap('isFistOpenCamera');
...@@ -88,11 +88,11 @@ function resolve(self){ ...@@ -88,11 +88,11 @@ function resolve(self){
}, function (err) { }, function (err) {
console.log('error', err); console.log('error', err);
plus.nativeUI.confirm(Vue.t("addDevice.openCameraTip"), (e)=>{ plus.nativeUI.confirm(Vue.t("addDevice.openCameraTip"), (e)=>{
if(e.index == 0){ if(e.index == 1){
iot.native.toAppSetting(); iot.native.toAppSetting();
} }
backTap(self); backTap(self);
},{"title": "","buttons": [Vue.t("addDevice.openCamera"),Vue.t("btn.cancel")]}); },{"title": "","buttons": [Vue.t("btn.cancel"),Vue.t("addDevice.openCamera")]});
}); });
}else{ }else{
openScanCode(self); openScanCode(self);
......
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