wx.getSetting({
success: function (res) {
console.log(res)
if (res.authSetting['scope.userInfo']) {
} else {
// 用户没有授权
// 改变 isHide 的值,显示授权页面
that.setData({
isHide: true
});
}
}
});
wx.getSetting({
success: function (res) {
console.log(res)
if (res.authSetting['scope.userInfo']) {
} else {
// 用户没有授权
// 改变 isHide 的值,显示授权页面
that.setData({
isHide: true
});
}
}
});
本文标题:用户是否授权
本文链接:https://www.haomeiwen.com/subject/qxqqbqtx.html
网友评论