| | |
| | | <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> |
| | |
| | | }); |
| | | 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}` |
| | | }); |
| | |
| | | }); |
| | | } |
| | | } |
| | | Object.keys(this.editUserInfo).map(item => { |
| | | if (res.data[item]) { |
| | | this.editUserInfo[item] = res.data[item]; |
| | | this.editUserInfo.password = '' |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | // 修改按钮点击 |
| | |
| | | }, |
| | | imageClickCarBody(url) { |
| | | this.previewImageSrc = url; |
| | | this.$nextTick(() => { |
| | | this.previewImageShow = true; |
| | | }); |
| | | }, |
| | | beforeRead() { |
| | | this.changeisUploadimg(true); |
| | |
| | | .editDriverPopup-container { |
| | | .u-popup { |
| | | .u-transition { |
| | | height: 75%; |
| | | height: 80%; |
| | | |
| | | .u-popup__content { |
| | | overflow: scroll !important; |