测试代码:
permission: function () {
wx.getSetting({
success: function (res) {
console.log(res.authSetting[‘scope.userInfo’]);
console.log(res.authSetting[‘scope.userLocation’]);
console.log(res.authSetting[‘scope.address’]);
console.log(res.authSetting[‘scope.invoiceTitle’]);
console.log(res.authSetting[‘scope.werun’]);
console.log(res.authSetting[‘scope.record’]);
console.log(res.authSetting[‘scope.writePhotosAlbum’]);
console.log(res.authSetting[‘scope.camera’]);
}
})
}
控制台显示的信息:
用wx.openSetting打开授权设置页面后也只有获取用户信息的选项求助