现在手机型号:荣耀 20i 微信版本:7..0.9
登录授权代码
UserInfofunction(){
var that this
var pid = appglobalData.pid
var referral_code = appglobalData.referral_code
var task_id = appglobalDatatask_id
var is_importance = appglobalData.is_importance
var user_id = wxgetStorageSync("userInfo:user_id")
if (that.datascene && user_id
that kkk ()
} else{
wxgetSetting({
success :function res =>
if ( ! res.authSetting ['scope.userInfo'])
wx:showModal ({
title:' 提示'
content: 请允许获取您的信息',
showCancel 'false',
success : function res =>{
if (res.confirm)
wx : openSetting ({
success ; function res =>
wx : getUserInfo({
success : function res =>{
tha . tsetData({
avatar : res . userInfo . avatarUrl
name : res . userInfo . nickName
})
wx : setStorageSync('userInfo ' resuserInfo ')
that . sendServerUseInfo();
})
},
fail : function res =>{
}
})
})
} else { //点击同意授权后
that verifypid (referral_code task_id is_importance) // 获取 token 及传参
wx : setStorageSync(''userInfo' edetailuserInfo');
that . setData({
avatar : edetailuserInfo . avatarUrl
name : edetailuserInfo . nickName
})
},
})
},
网友回复
我们换手机后可以正常登录,所以判断不是官方BUG。
你让他删除小程序 再打开看看是否可以登录。如果是 肯定是你写了bug
emm...
这问题没法回答