Browse Source

Merge branch 'deploy' of http://git.chelingzhu.com/chelingzhu-web/qhsxKx-mini-html into deploy

lilei 4 years ago
parent
commit
100edb0a9e
1 changed files with 5 additions and 2 deletions
  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>