Browse Source

bug修复

guessPrice
suizhijia 5 years ago
parent
commit
52d3c5afac
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      496_dongfengqichen/pages/userMsg/userMsg.js

+ 13
- 1
496_dongfengqichen/pages/userMsg/userMsg.js View File

@@ -213,6 +213,19 @@ Component({
})
return;
}
if(
!this.data.provinceDataArr ||
!this.data.provinceDataArr[0] ||
!this.data.provinceDataArr[0][this.data.provinceDataValue[0]] ||
!this.data.provinceDataArr[1] ||
!this.data.provinceDataArr[1][this.data.provinceDataValue[1]] ||
!this.data.storeArr ||
!this.data.storeArr[this.data.storeValue] ||
!this.data.storeArr[this.data.storeValue].agent_code ||
!this.data.storeArr[this.data.storeValue].agent_detail
){
return;
}
this.data.submitData.province = this.data.provinceDataArr[0][this.data.provinceDataValue[0]];
this.data.submitData.city = this.data.provinceDataArr[1][this.data.provinceDataValue[1]];
this.data.submitData.agent_code = this.data.storeArr[this.data.storeValue].agent_code;
@@ -236,7 +249,6 @@ Component({
if(this.data.userData){
var userInfoData = wx.getStorageSync("userInfoData");
if(this.data.userData.avatarUrl){
console.log("userData")
app.globalData.userInfoData.avatarUrl = this.data.userData.avatarUrl;
if(userInfoData){
userInfoData.avatarUrl = this.data.userData.avatarUrl;

Loading…
Cancel
Save