|
|
@@ -283,13 +283,15 @@ Page({ |
|
|
|
// } |
|
|
|
console.log(app.globalData.userInfoData); |
|
|
|
if (app.globalData.userInfoData) { |
|
|
|
this.data.userData.avatarUrl = app.globalData.userInfoData.avatarUrl; |
|
|
|
this.data.userData.nickName = app.globalData.userInfoData.nickName; |
|
|
|
this.data.userData.userLevel = app.globalData.userInfoData.userLevel; |
|
|
|
this.setData({ |
|
|
|
isLogin: true, |
|
|
|
userData: this.data.userData |
|
|
|
}) |
|
|
|
if (app.globalData.userInfoData.avatarUrl){ |
|
|
|
this.data.userData.avatarUrl = app.globalData.userInfoData.avatarUrl; |
|
|
|
this.data.userData.nickName = app.globalData.userInfoData.nickName; |
|
|
|
this.data.userData.userLevel = app.globalData.userInfoData.userLevel; |
|
|
|
this.setData({ |
|
|
|
isLogin: true, |
|
|
|
userData: this.data.userData |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |