|
|
|
@ -43,15 +43,15 @@ const getData = async () => {
|
|
|
|
|
// 发送请求后,重置标记
|
|
|
|
|
isLoading.value = false
|
|
|
|
|
data.list.forEach((e) => {
|
|
|
|
|
// if (e.orderDetails) {
|
|
|
|
|
// e.orderDetails.forEach((q) => {
|
|
|
|
|
// const arr = JSON.parse(q.product.photo)
|
|
|
|
|
// const imgUrl = serviceDomain + arr[0].url
|
|
|
|
|
// q.imgUrl = imgUrl
|
|
|
|
|
// })
|
|
|
|
|
// } else {
|
|
|
|
|
// e.orderDetails = []
|
|
|
|
|
// }
|
|
|
|
|
if (e.orderDetails) {
|
|
|
|
|
e.orderDetails.forEach((q) => {
|
|
|
|
|
const arr = JSON.parse(q.product.photo)
|
|
|
|
|
const imgUrl = serviceDomain + arr[0].url
|
|
|
|
|
q.imgUrl = imgUrl
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
e.orderDetails = []
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// 数组追加
|
|
|
|
|
orderList.value.push(...data.list)
|
|
|
|
@ -110,7 +110,7 @@ const onRefresherrefresh = async () => {
|
|
|
|
|
<view class="product-name">{{ item2.product?.name }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="predict-weight">预估重量:{{ item.predictWeight?.desc }}</view>
|
|
|
|
|
<!-- <view class="predict-weight">预估重量:{{ item.predictWeight?.desc }}</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view class="foot">
|
|
|
|
|
<view class="appointment-time"> 预约时间: {{ item.appointmentTime }}</view>
|
|
|
|
|