qingyiay
2023-07-17 17427143356e8a410552cb44120a02eb6eb35540
pages/driver-page/drvier-my/drvier-my.vue
@@ -495,16 +495,19 @@
            });
            this.$reqGet('getUserEntity').then(res => {
               uni.hideLoading();
               this.userInfo = res.data;
               this.editUserInfo = this.userInfo = res.data;
               this.editUserInfo.password = ""
               uni.setStorageSync('carImg', this.userInfo.carImg);
               uni.setStorageSync('drivingImg', this.userInfo.drivingImg);
               uni.setStorageSync('bodyofcarJpg', this.userInfo.bodyofcarJpg)
               if (this.fileList1.length == 0) {
                  this.fileList1.push({
                     url: `${BaseUrl}${this.userInfo.carImg}`
                  });
                  })
               }
               if (this.fileList2.length == 0) {
                  if (!this.userInfo.drivingImg) return
                  this.fileList2.push({
                     url: `${BaseUrl}${this.userInfo.drivingImg}`
                  });
@@ -524,12 +527,6 @@
                     });
                  }
               }
               Object.keys(this.editUserInfo).map(item => {
                  if (res.data[item]) {
                     this.editUserInfo[item] = res.data[item];
                     this.editUserInfo.password = ''
                  }
               });
            });
         },
         // 修改按钮点击