Browse Source

功能优化

guessPrice
sui 5 years ago
parent
commit
9060d6c482
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      496_dongfengqichen/pages/myCenter/myCenter.js

+ 7
- 2
496_dongfengqichen/pages/myCenter/myCenter.js View File

@@ -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)

Loading…
Cancel
Save