Browse Source

bug修改

1004749546@qq.com 4 năm trước cách đây
mục cha
commit
7577c205e9
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      pages/order/orderDetail.vue

+ 5 - 2
pages/order/orderDetail.vue

@@ -22,15 +22,18 @@
 				<u-cell-item title="手机号" :arrow="false">
 					{{orderInfo.customerMobile}}
 				</u-cell-item>
-				<u-cell-item title="支付方式" :arrow="false">
+				<u-cell-item v-if="orderInfo.payType" title="支付方式" :arrow="false">
 					{{orderInfo.payType}}
 				</u-cell-item>
 				<u-cell-item title="应付金额" :arrow="false">
 					¥{{orderInfo.payableAmount}}
 				</u-cell-item>
-				<u-cell-item title="优惠" :arrow="false">
+				<u-cell-item title="优惠金额" :arrow="false">
 					{{orderInfo.couponAmount?orderInfo.couponAmount:0}}
 				</u-cell-item>
+				<u-cell-item v-if="orderInfo.orderCoupons && orderInfo.orderCoupons.length" title="优惠券" :arrow="false">
+					{{orderInfo.orderCoupons[0].couponTitle}}
+				</u-cell-item>
 				<u-cell-item title="实付金额" :arrow="false">
 					<text class="order-price">¥{{orderInfo.payStatus=='paid' ? orderInfo.paymentAmount : 0}}</text>
 				</u-cell-item>