| @@ -95,6 +95,7 @@ Page({ | |||
| this.data.userData.nickName = app.globalData.userInfoData.nickName; | |||
| this.data.userData.userLevel = app.globalData.userInfoData.userLevel; | |||
| this.setData({ | |||
| isLogin: true, | |||
| userData: this.data.userData | |||
| }) | |||
| } | |||
| @@ -395,9 +396,13 @@ Page({ | |||
| wx.setStorageSync('userInfoData', app.globalData.userInfoData); | |||
| } | |||
| this.setData({ | |||
| userData: this.data.userData, | |||
| isLogin: true | |||
| userData: this.data.userData | |||
| }) | |||
| if (!app.globalData.userInfoData){ | |||
| this.setData({ | |||
| isLogin: true | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| },this) | |||