|
|
@@ -60,7 +60,7 @@
|
|
|
<text :class="['status', `status-${item.orderStatus}`]" v-if="currentStatusTab == 2">{{ getrefundText(item.refundType )}}</text>
|
|
|
</view>
|
|
|
<view class="order-item">
|
|
|
- <u-image width="120rpx" height="120rpx" border-radius="12rpx" :src="item.productImage || `${$config.apiUrl}/${item.productImage.split(',')[0]}`" mode="aspectFill"></u-image>
|
|
|
+ <u-image width="120rpx" height="120rpx" border-radius="12rpx" :src="getProductImage(item.productImage)" mode="aspectFill"></u-image>
|
|
|
<!-- <image class="goods-image" :src="item.image" mode="aspectFill"></image> -->
|
|
|
<view class="item-details">
|
|
|
<view class="item-title">{{ item.packageName }}</view>
|
|
|
@@ -150,6 +150,19 @@ export default {
|
|
|
};
|
|
|
return statusMap[refundType] || '';
|
|
|
},
|
|
|
+ getProductImage(productImage) {
|
|
|
+ if (!productImage) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ const firstImage = String(productImage).split(',')[0];
|
|
|
+ if (!firstImage) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ if (/^https?:\/\//.test(firstImage)) {
|
|
|
+ return firstImage;
|
|
|
+ }
|
|
|
+ return `${this.$config.apiUrl}/${firstImage}`;
|
|
|
+ },
|
|
|
onSearch(value) {
|
|
|
this.$refs[`listScroll`].reloadList({
|
|
|
queryName: value,
|