检测流程图片

This commit is contained in:
许允枞 2024-11-11 18:05:03 +08:00
parent 1dc7e70f73
commit 6a7aa58833
2 changed files with 34 additions and 10 deletions

View File

@ -103,13 +103,14 @@
</view>
<view class="">
<view style="margin-bottom: 5px;">{{ item.content }}</view>
<view v-if="item.images" >
<view v-for="it in item.images.split(',')">
<view style="margin-bottom: 5px; box-sizing: border-box;padding-left: 10%">{{ item.content }}</view>
<view style="display: flex" v-if="item.images" >
<!-- <view v-for="it in item.images.split(',')">-->
<image :src="baseImageUrl+'/'+it" style="width: 28vw; height: 12vh; margin-right: 1vw; " ></image>
<!-- <image :src="baseImageUrl+'/'+it" style="width: 28vw; height: 12vh; margin-right: 1vw; " ></image>-->
</view>
<!-- </view>-->
<u-album :urls="item.imageList" style="padding-left: 40px"></u-album>
</view>
@ -511,7 +512,29 @@
}
})
this.detailData = res.data
this.inspectionId = res.data.inspectionId
console.log('this.detailData',this.detailData)
this.detailData.stepInfos.forEach(item => {
// item.images
if (typeof item.images === 'string' && item.images.trim() !== '') {
// images
item.images = item.images.split(',');
// 使map
item.images = item.images.map(image => this.baseImageUrl + "/"+image);
// imageList
item.imageList = item.images;
} else {
// item.images
item.images = [];
item.imageList = [];
}
//
});
console.log('图片', this.detailData);
this.inspectionId = res.data.inspectionId
this.isOnline = res.data.isOnline
this.orderStatus = res.data.orderStatus
this.payMoney = res.data.goodsPrice / 100
@ -825,8 +848,8 @@
.times {
width: 30%;
font-size: 12px;
font-weight: 400;
font-size: 14px;
font-weight: 600;
color: #999999;
margin-left: 25px;
}
@ -1073,9 +1096,9 @@
display: flex;
align-items: center;
box-sizing: border-box;
padding-left: 10px;
padding-left: 6px;
color: #0D2E8D;
font-size: 22px;
font-size: 40px;
font-weight: bold;
}
</style>

View File

@ -11,6 +11,7 @@
v-model="value1"
mode="year-month"
@input="selectDate"
@cancel="show = false"
></u-datetime-picker>
<!-- 总提成金额 -->