检测流程图片

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>
<view class=""> <view class="">
<view style="margin-bottom: 5px;">{{ item.content }}</view> <view style="margin-bottom: 5px; box-sizing: border-box;padding-left: 10%">{{ item.content }}</view>
<view v-if="item.images" > <view style="display: flex" v-if="item.images" >
<view v-for="it in item.images.split(',')"> <!-- <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> </view>
@ -511,7 +512,29 @@
} }
}) })
this.detailData = res.data 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.isOnline = res.data.isOnline
this.orderStatus = res.data.orderStatus this.orderStatus = res.data.orderStatus
this.payMoney = res.data.goodsPrice / 100 this.payMoney = res.data.goodsPrice / 100
@ -825,8 +848,8 @@
.times { .times {
width: 30%; width: 30%;
font-size: 12px; font-size: 14px;
font-weight: 400; font-weight: 600;
color: #999999; color: #999999;
margin-left: 25px; margin-left: 25px;
} }
@ -1073,9 +1096,9 @@
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
padding-left: 10px; padding-left: 6px;
color: #0D2E8D; color: #0D2E8D;
font-size: 22px; font-size: 40px;
font-weight: bold; font-weight: bold;
} }
</style> </style>

View File

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