瀏覽代碼

功能优化

guessPrice
sui 5 年之前
父節點
當前提交
9060d6c482
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. +7
    -2
      496_dongfengqichen/pages/myCenter/myCenter.js

+ 7
- 2
496_dongfengqichen/pages/myCenter/myCenter.js 查看文件

this.data.userData.nickName = app.globalData.userInfoData.nickName; this.data.userData.nickName = app.globalData.userInfoData.nickName;
this.data.userData.userLevel = app.globalData.userInfoData.userLevel; this.data.userData.userLevel = app.globalData.userInfoData.userLevel;
this.setData({ this.setData({
isLogin: true,
userData: this.data.userData userData: this.data.userData
}) })
} }
wx.setStorageSync('userInfoData', app.globalData.userInfoData); wx.setStorageSync('userInfoData', app.globalData.userInfoData);
} }
this.setData({ this.setData({
userData: this.data.userData,
isLogin: true
userData: this.data.userData
}) })
if (!app.globalData.userInfoData){
this.setData({
isLogin: true
})
}
} }
} }
},this) },this)

Loading…
取消
儲存