qingyiay
2023-07-26 f3288edb3b2f0e0e89cc28d719a1f83462459f33
pages/driver-page/drvier-my/drvier-my.vue
@@ -117,12 +117,12 @@
                     <view class="label-text">车头车尾车身照片</view>
                  </view>
                  <view class="img-container"
                     v-for="item in userInfo.bodyofcarJpg?userInfo.bodyofcarJpg.split(','):[]">
                     v-for="item in userInfo.bodyCarImg">
                     <u--image :showLoading="true"
                        :src="item.url ? item.url : ''"
                        :src="BaseUrl+item"
                        width="80px"
                        height="80px"
                        @click="imageClickCarBody(item.url)">
                        @click="imageClickCarBody(item)">
                        <view slot="error"
                           style="font-size: 24rpx;">加载失败</view>
                     </u--image>
@@ -495,16 +495,22 @@
            });
            this.$reqGet('getUserEntity').then(res => {
               uni.hideLoading();
               this.userInfo = res.data;
               this.editUserInfo = this.userInfo = res.data;
               this.userInfo.bodyCarImg = this.userInfo.bodyofcarJpg ? this.userInfo.bodyofcarJpg.split(',') :
                  [];
               console.log(this.userInfo.bodyCarImg);
               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 +530,6 @@
                     });
                  }
               }
               Object.keys(this.editUserInfo).map(item => {
                  if (res.data[item]) {
                     this.editUserInfo[item] = res.data[item];
                     this.editUserInfo.password = ''
                  }
               });
            });
         },
         // 修改按钮点击
@@ -548,6 +548,9 @@
         },
         imageClickCarBody(url) {
            this.previewImageSrc = url;
            this.$nextTick(() => {
               this.previewImageShow = true;
            });
         },
         beforeRead() {
            this.changeisUploadimg(true);
@@ -891,7 +894,7 @@
      .editDriverPopup-container {
         .u-popup {
            .u-transition {
               height: 75%;
               height: 80%;
               .u-popup__content {
                  overflow: scroll !important;