baijunde 2 месяцев назад
Родитель
Сommit
3b554b8f1d
2 измененных файлов с 18 добавлено и 6 удалено
  1. 14 1
      pages/groupMeal/orders/order-blist.vue
  2. 4 5
      pages/groupMeal/orders/refund.vue

+ 14 - 1
pages/groupMeal/orders/order-blist.vue

@@ -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,

+ 4 - 5
pages/groupMeal/orders/refund.vue

@@ -51,7 +51,7 @@
 					<view class="btn" @click="onSubmit(1)">同意</view>
 				</view>
 			</view>
-			<view class="client" v-if="data.refuseReason">
+			<!-- <view class="client" v-if="data.refuseReason">
 				<view class="title">
 					<view class="message">
 						<text>商家拒绝退款</text>
@@ -62,14 +62,13 @@
 					<view class="information">
 						拒绝原因:
 						{{ data.refuseReason ==0?'商品已使用':'商品已核销' }}
-						<!-- {{ data.refuseReason && reasonList.find(item => item.value == data.refuseReason).label }} -->
 					</view>
 					<view class="information">
 						补充说明:{{ data.refuseReasonExplain }}
 					</view>
 				</view>
-			</view>
-			<view class="client" v-if="data.fundStatus == 1">
+			</view> -->
+			<!-- <view class="client" v-if="data.fundStatus == 1">
 				<view class="title">
 					<view class="message">
 						<text>商家同意退款</text>
@@ -81,7 +80,7 @@
 						您已同意退货退款,平台会将退款原路退回。
 					</view>
 				</view>
-			</view>
+			</view> -->
 		</view>
 		<!-- 拒绝原因弹窗 -->
 		<view class="popup" v-if="isRefuse">