Commit ae4c5cc8 authored by Damon's avatar Damon

fix: 相机授权问题

parent 03c1bdb6
(function () {
let NODE_ENV = 'prod'; // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null;
let VERSION_NUMBER = '1.3.16';//版本号
let VERSION_NUMBER = '1.3.17';//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
if (process.env.NODE_ENV === "development") {
if (NODE_ENV === 'dev') {
......
......@@ -268,12 +268,6 @@
t()
},
cameraError(e) {
const {
errMsg
} = e.detail
if (errMsg !== 'insertCamera:fail auth deny') {
return
}
this.showSettingModal('camera')
},
//获取位置
......@@ -329,9 +323,12 @@
success(res) {
if (res.confirm) {
self.openSetting()
} else if(res.cancel) {
if (type === 'camera' || type === 'location') self.goBack()
}
},
fail() {}
fail() {
}
})
},
openSetting() {
......
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