Ver código fonte

fix(order-detail): 修复退款状态显示和物流信息条件判断

调整退款状态为3时的显示逻辑
修改物流信息卡片的显示条件状态值
移除不再使用的订单状态映射
ylong 1 semana atrás
pai
commit
eefa7bf681
1 arquivos alterados com 4 adições e 5 exclusões
  1. 4 5
      pages-car/pages/order-detail.vue

+ 4 - 5
pages-car/pages/order-detail.vue

@@ -2,7 +2,8 @@
     <view class="order-detail-page">
         <!-- 顶部状态栏 -->
         <view class="status-header">
-            <view class="status-text">{{ statusText }}</view>
+            <view class="status-text" v-if="orderInfo.refundStatus == 3">已申请退款</view>
+            <view class="status-text" v-else>{{ statusText }}</view>
             <view class="status-desc" v-if="orderInfo.status == '2'">
                 订单编号:{{ orderInfo.orderId }}
                 <image src="/pages-mine/static/copy.png" class="copy-icon" @click="copyOrderNo" mode="aspectFit">
@@ -45,7 +46,7 @@
 
         <!-- 物流信息 -->
         <view class="info-card express-card"
-            v-if="['3', '4', '8', '12', '10'].includes(String(orderInfo.status)) && orderInfo.waybillCode"
+            v-if="['3', '4', '5'].includes(String(orderInfo.status)) && orderInfo.waybillCode"
             @click.stop="viewLogistics">
             <view class="icon-box">
                 <u-icon name="car" color="#38C148" size="48"></u-icon>
@@ -91,7 +92,7 @@
                 <view class="row">
                     <text>商品金额</text>
                     <text class="goods-total">¥{{ (orderInfo.totalMoney - (orderInfo.expressMoney || 0)).toFixed(2)
-                    }}</text>
+                        }}</text>
                 </view>
                 <template v-if="orderInfo.discountList && orderInfo.discountList.length > 0">
                     <view class="row" v-for="(discount, index) in orderInfo.discountList" :key="'discount_' + index">
@@ -199,8 +200,6 @@ export default {
                 '3': '已发货',
                 '4': '交易完成',
                 '5': '已取消',
-                '6': '退款中',
-                '7': '交易关闭'
             };
             return map[String(this.orderInfo.status)] || '未知状态';
         },