From f3288edb3b2f0e0e89cc28d719a1f83462459f33 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 26 七月 2023 17:22:16 +0800
Subject: [PATCH] 修改发运统计错误
---
pages/driver-page/drvier-my/drvier-my.vue | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/pages/driver-page/drvier-my/drvier-my.vue b/pages/driver-page/drvier-my/drvier-my.vue
index 7f7ece3..27c9a74 100644
--- a/pages/driver-page/drvier-my/drvier-my.vue
+++ b/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;
--
Gitblit v1.9.1