Sfoglia il codice sorgente

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
bug修改

1004749546@qq.com 4 anni fa
parent
commit
fc872d46d9
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 2 1
      pages/order/order.vue
  2. 2 1
      pages/order/orderDetail.vue

+ 2 - 1
pages/order/order.vue

@@ -13,7 +13,8 @@
 					</view>
 					<view>
 						<view class="order-price">
-							<text>¥{{item.paymentAmount}}</text>
+							<!-- 显示用户实付金额,未支付显示0 -->
+							<text>¥{{item.payStatus=='PAID' ?item.paymentAmount:0}}</text>
 							<text>{{item.payType}}</text>
 						</view>
 						<view>{{item.orderTime}}</view>

+ 2 - 1
pages/order/orderDetail.vue

@@ -28,8 +28,9 @@
 				<u-cell-item title="应付金额" :arrow="false">
 					¥{{orderInfo.payableAmount}}
 				</u-cell-item>
+				<!-- 已取消订单优惠金额显示0 -->
 				<u-cell-item title="优惠金额" :arrow="false">
-					{{orderInfo.couponAmount?orderInfo.couponAmount:0}}
+					{{(orderInfo.couponAmount && orderInfo.orderStatus!='CANCELED')?orderInfo.couponAmount:0}}
 				</u-cell-item>
 				<u-cell-item v-if="orderInfo.orderCoupons && orderInfo.orderCoupons.length" title="优惠券" :arrow="false">
 					{{orderInfo.orderCoupons[0].couponTitle}}