微信小程序 摄像头 && 录音授权
进入程序弹出是否授权
app.js文件 onShow 事件里面写入
wx.getSetting({
success(res) {
if (!res.authSetting['scope.camera']) { //获取摄像头权限
wx.authorize({
scope: '
微信小程序 摄像头 && 录音授权
app.js文件 onShow 事件里面写入
wx.getSetting({
success(res) {
if (!res.authSetting['scope.camera']) { //获取摄像头权限
wx.authorize({
scope: '