bindGetUserInfo: function (e) {
if (e.detail.errMsg == “getUserInfo:fail auth deny”) { // 拒绝 授权 返回首页
wx.switchTab({
url: ‘…/index/index’,
})
}else{
app.globalData.userInfo = e.detail.userInfo;
var that = this;
util.toLogin(function () { //同意授权跳转签到页
wx.setStorageSync(‘Jurisdiction’, ‘1’)
{
wx.redirectTo({
url: ‘…/Clock/Clock’,
})
}
});
}
},
bindopensetting: function (e) {
if (e.detail.authSetting[‘scope.userInfo’]) {
console.log(“用户已经授权”);
var url = ‘’;
console.log(JSON.stringify(e))
console.log(‘to url:’ + url)
// wx.switchTab({
// url: ‘…/Clock/Clock’
// })
}
},
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。