登录页自定义头部
This commit is contained in:
+7
-2
@@ -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({
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user