10.25修改

This commit is contained in:
2023-10-25 00:18:08 +08:00
parent f55439859b
commit 6a45185641
7 changed files with 125 additions and 16 deletions

View File

@@ -55,9 +55,12 @@
})
}
function toUserInfo() {
uni.navigateTo({
url:"/pages/user/userInfo"
})
if(is_login.value) {
uni.navigateTo({
url:"/pages/user/userInfo"
})
}
}
function getPhoneNumber (e) {
// tel_code.value = e.detail.code
@@ -81,7 +84,7 @@
const res = await api.getToken(data)
if(res.code === 200) {
if(res.data.newUser) { // 新用户,跳转登录页
toUserInfo()
toLogin()
}
else{
uni.setStorageSync('avatarUrl', res.data.avatar);//avatarUrl