ycm 2 жил өмнө
parent
commit
04f64fe47e

+ 1 - 1
pages/order/confirmOreder/confirmOreder.js

@@ -322,7 +322,7 @@ Page({
         var that=this;
         let cid = 0
         if(that.data.couponinfo!=''&&that.data.couponinfo!=undefined){
-            cid = that.data.couponinfo.pivot.coupon_id
+            cid = that.data.couponinfo.pivot.id
         }
         app.api.useApi(app.globalData.baseAppUrl + "api/orders", {
             order_no: that.data.order_no,

+ 4 - 4
pages/order/detail/detail.wxml

@@ -185,7 +185,7 @@
         <view class="orderMessage b-bottom">
             <view class="items flex ju-b ">
                 <view class="les">订单金额</view>
-                <view class="lr">¥{{orderinfo.total_price}}</view>
+                <view class="lr">¥{{orderinfo.total_price+orderinfo.coupon_money}}</view>
             </view>
 
             <view class="items flex ju-b">
@@ -196,14 +196,14 @@
             <!-- <view class="items flex ju-b ">
                 <view class="les">运费扣减</view>
                 <view class="lr color">-¥10</view>
-            </view>
+            </view> -->
 
             <view class="items flex ju-b ">
                 <view class="les">优惠抵扣</view>
-                <view class="lr color">-¥10</view>
+                <view class="lr color">-¥{{orderinfo.coupon_money}}</view>
             </view>
 
-            <view class="items flex ju-b ">
+            <!-- <view class="items flex ju-b ">
                 <view class="les">客服调整</view>
                 <view class="lr color">-¥10</view>
             </view> -->