重新修改登录逻辑
This commit is contained in:
@ -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'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user