重新修改登录逻辑

This commit is contained in:
wangxiaowei
2025-10-17 15:40:03 +08:00
parent 2f59d0e8ba
commit c3ffadfded
10 changed files with 54 additions and 43 deletions

View File

@ -254,23 +254,16 @@
},
// 跳转到个人信息
handleToProfile: async () => {
handleToProfile: () => {
if (isLogin.value) {
uni.navigateTo({
url: '/bundle/profile/profile'
})
} else {
// 登录操作
await snsapiBaseAuthorize()
const userStore = useUserStore()
if (!userStore.userInfo.mobile) {
uni.navigateTo({
url: '/pages/login/mobile'
})
} else {
userInfo.value = userStore.userInfo
isLogin.value = true
}
uni.navigateTo({
url: '/bundle/vip/benefits'
})
}
},