Bladeren bron

修复userInfoData空属性问题,修复buyState空属性问题

guessPrice
=chenming 5 jaren geleden
bovenliggende
commit
ac7c8d1d89
2 gewijzigde bestanden met toevoegingen van 12 en 6 verwijderingen
  1. +6
    -4
      496_dongfengqichen/pages/component/service/index.js
  2. +6
    -2
      496_dongfengqichen/pages/userMsg/userMsg.js

+ 6
- 4
496_dongfengqichen/pages/component/service/index.js Bestand weergeven

@@ -54,10 +54,12 @@ Component({
})
},
placingControl: function () {
if (app.globalData.getBuyState.success != this.data.buyState) {
this.setData({
buyState: app.globalData.getBuyState.success
})
if (app.globalData.getBuyState){
if (app.globalData.getBuyState.success != this.data.buyState) {
this.setData({
buyState: app.globalData.getBuyState.success
})
}
}
this.setData({
placing: !this.data.placing

+ 6
- 2
496_dongfengqichen/pages/userMsg/userMsg.js Bestand weergeven

@@ -199,11 +199,15 @@ Component({
if(this.data.userData.avatarUrl){
console.log("userData")
app.globalData.userInfoData.avatarUrl = this.data.userData.avatarUrl;
userInfoData.avatarUrl = this.data.userData.avatarUrl;
if(userInfoData){
userInfoData.avatarUrl = this.data.userData.avatarUrl;
}
}
if(this.data.userData.nickName){
app.globalData.userInfoData.nickName = this.data.userData.nickName;
userInfoData.nickName = this.data.userData.nickName;
if(userInfoData){
userInfoData.nickName = this.data.userData.nickName;
}
}
wx.setStorageSync('userInfoData', userInfoData)
}

Laden…
Annuleren
Opslaan