**sendPhoto (name) {
let self = this
if (name === 'album') {
this.chooseImage(name)
} else if (name === 'camera') {
console.log(13444,wx.getSetting(),uni.getSetting())
wx.getSetting({
success: function (res) {
if (!res.authSetting['scope.camera']) { // 无权限,跳转设置权限页面
wx.authorize({
scope: 'scope.camera',
success: function () {
self.chooseImage(name)
}
})
} else {
self.chooseImage(name)
}
}
})
}
}**
此处为发起摄像头的使用,云打包的基底测试上报以下错误
Error in v-on handler: "TypeError: a.getSetting is not a function"
TypeError: a.getSetting is not a function
0 个回复