소스 검색

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

lilei 4 년 전
부모
커밋
100edb0a9e
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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>