付延余
2023-03-22 82fa9121ff649bb681fc55e482fe405c5ce0d4d0
pages/driver-page/drvier-my/drvier-my.vue
@@ -38,10 +38,14 @@
               <u--input border="none" inputAlign="right" disabled disabledColor="#fff"></u--input>
            </u-form-item>
            <u-form-item labelWidth="20%" label="车辆照片" ref="item1">
               <u--image :showLoading="true" :src="BaseUrl + userInfo.carImg" width="80px" height="80px" @click="imageClick(1)"></u--image>
               <u--image :showLoading="true" :src="userInfo.carImg != null ? BaseUrl + userInfo.carImg : ''" width="80px" height="80px" @click="imageClick(1)">
                  <view slot="error" style="font-size: 24rpx;">加载失败</view>
               </u--image>
            </u-form-item>
            <u-form-item labelWidth="25%" label="行驶证照片" ref="item1">
               <u--image :showLoading="true" :src="BaseUrl + userInfo.drivingImg" width="80px" height="80px" @click="imageClick(2)"></u--image>
               <u--image :showLoading="true" :src="userInfo.drivingImg != null ? BaseUrl + userInfo.drivingImg : ''" width="80px" height="80px" @click="imageClick(2)">
                  <view slot="error" style="font-size: 24rpx;">加载失败</view>
               </u--image>
            </u-form-item>
         </u--form>
         <view class="push-information-button">
@@ -53,7 +57,7 @@
      <!-- 图片预览弹出框 -->
      <view class="previewImage-container">
         <u-popup :show="previewImageShow" mode="center" @close="previewImageClose" @open="previewImageOpen">
            <u--image :src="BaseUrl + previewImageSrc" width="400px" height="400px"></u--image>
            <u--image :src="previewImageSrc!=null?BaseUrl + previewImageSrc:''" width="400px" height="400px"></u--image>
         </u-popup>
      </view>
@@ -105,7 +109,8 @@
            carImg: '',
            drivingImg: '',
            axleNum: '',
            weight: ''
            weight: '',
            userId: ''
         },
         src: '',
         fileList1: [],
@@ -134,11 +139,9 @@
            title: '加载中...'
         });
         this.$reqGet('getUserEntity').then(res => {
            console.log(res, '司机详情');
            uni.hideLoading();
            this.userInfo = res.data;
            Object.keys(this.editUserInfo).map(item => {
               console.log(res.data[item]);
               if (res.data[item]) {
                  this.editUserInfo[item] = res.data[item];
               }