Browse Source

fix[litemall-wx-api, litemall-wx]: 订单的优惠券优惠价格显示

Junling Bu 6 years ago
parent
commit
5c1a8f6268

+ 1 - 0
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/service/WxOrderService.java

@@ -207,6 +207,7 @@ public class WxOrderService {
         orderVo.put("mobile", order.getMobile());
         orderVo.put("address", order.getAddress());
         orderVo.put("goodsPrice", order.getGoodsPrice());
+        orderVo.put("couponPrice", order.getCouponPrice());
         orderVo.put("freightPrice", order.getFreightPrice());
         orderVo.put("actualPrice", order.getActualPrice());
         orderVo.put("orderStatusText", OrderUtil.orderStatusText(order));

+ 4 - 0
litemall-wx/pages/ucenter/orderDetail/orderDetail.wxml

@@ -60,6 +60,10 @@
           <text class="label">运费:</text>
           <text class="txt">¥{{orderInfo.freightPrice}}</text>
         </view>
+        <view class="t">
+          <text class="label">优惠:</text>
+          <text class="txt">¥-{{orderInfo.couponPrice}}</text>
+        </view>
       </view>
       <view class="pay-fee">
         <text class="label">实付:</text>

+ 1 - 1
litemall-wx/pages/ucenter/orderDetail/orderDetail.wxss

@@ -227,7 +227,7 @@ page {
 }
 
 .order-bottom .total {
-  height: 106rpx;
+  height: 130rpx;
   padding-top: 20rpx;
   border-bottom: 1px solid #f4f4f4;
 }

+ 4 - 0
renard-wx/pages/ucenter/orderDetail/orderDetail.wxml

@@ -60,6 +60,10 @@
           <text class="label">运费:</text>
           <text class="txt">¥{{orderInfo.freightPrice}}</text>
         </view>
+        <view class="t">
+          <text class="label">优惠:</text>
+          <text class="txt">¥-{{orderInfo.couponPrice}}</text>
+        </view>
       </view>
       <view class="pay-fee">
         <text class="label">实付:</text>

+ 1 - 1
renard-wx/pages/ucenter/orderDetail/orderDetail.wxss

@@ -227,7 +227,7 @@ page {
 }
 
 .order-bottom .total {
-  height: 106rpx;
+  height: 130rpx;
   padding-top: 20rpx;
   border-bottom: 1px solid #f4f4f4;
 }