登录页自定义头部

This commit is contained in:
姚亚男
2021-11-02 12:46:10 +08:00
parent d47efbc451
commit 612f6538dc
10 changed files with 66 additions and 19 deletions
+7 -2
View File
@@ -136,7 +136,7 @@ Page({
wx.removeStorage({
key: 'avatarUrl'
})
wx.redirectTo({
wx.navigateTo({
url: '../login/login',
})
})
@@ -176,6 +176,11 @@ Page({
name: userInfo.name,
phone: userInfo.phone.substr(0, 3) + '-' + userInfo.phone.substr(3, 4) + '-' + userInfo.phone.substr(7, 4)
})
}else{
this.setData({
name: '',
phone: '未知手机号'
})
}
if (avatarUrl) {
this.setData({
@@ -183,4 +188,4 @@ Page({
})
}
}
})
})