微信登录,获取头像,手机号码未更新问题

This commit is contained in:
小朱 2025-04-21 17:50:30 +08:00
parent 141e0f8703
commit 9ced4484e0
2 changed files with 4 additions and 5 deletions

View File

@ -88,7 +88,7 @@
api.callOrdereApi("ebikeUser/getInfoByOpenId?openId=" + wx.data, {},
"get")
.then((info) => {
isloading.value = false;
isloading.value = false;
if (info.code == 200) {
openid.value = wx.data;
uni.setStorageSync('wechat_user', info.data);
@ -220,13 +220,12 @@
showModelMessage("您的账户已经注销,请联系管理员!");
} else {
// wx.login code
isloading.value = true;
setTimeout(() => {
isloading.value = false;
login();
setTimeout(() => {
uni.switchTab({
url: "/pages/user/home/home"
})
}, 1000);
}, 500);
}

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB