Commit d756052c authored by zhengke's avatar zhengke

修改

parent eb6a468c
...@@ -155,6 +155,12 @@ ...@@ -155,6 +155,12 @@
<text class="price" :style="{ color: mc }">-¥{{ couponPrice.toFixed(2) }}</text> <text class="price" :style="{ color: mc }">-¥{{ couponPrice.toFixed(2) }}</text>
</view> </view>
</view> </view>
<view class="filed" v-if="mchs.length>0&&mchs[0].is_deduction_commission">
<view class="left">佣金抵扣</view>
<view class="right">
<text class="price" :style="{ color: mc }">-¥{{ mchs[0].deduction_commission }}</text>
</view>
</view>
<view class="filed" v-if="integral.can_use"> <view class="filed" v-if="integral.can_use">
<view class="left">积分抵扣</view> <view class="left">积分抵扣</view>
<view class="right"> <view class="right">
...@@ -301,6 +307,8 @@ ...@@ -301,6 +307,8 @@
ShoppingCartIdList: [], ShoppingCartIdList: [],
BuyerMessage: '', BuyerMessage: '',
showReviceModal: false, showReviceModal: false,
//抵扣金额
deduction_commission:0
}; };
}, },
onLoad(option) { onLoad(option) {
...@@ -393,6 +401,7 @@ ...@@ -393,6 +401,7 @@
form.Use_Integral = that.formdata.Use_Integral; form.Use_Integral = that.formdata.Use_Integral;
form.ShoppingCartIdList = that.ShoppingCartIdList; form.ShoppingCartIdList = that.ShoppingCartIdList;
form.AnchorName = uni.getStorageSync("AnchorName") ? uni.getStorageSync("AnchorName").AnchorName : ''; //直播名称 form.AnchorName = uni.getStorageSync("AnchorName") ? uni.getStorageSync("AnchorName").AnchorName : ''; //直播名称
form.DeductionCommission = that.deduction_commission;
that.request2({ that.request2({
url: '/api/AppletOrder/SetAppletGoodsOrderInfo', url: '/api/AppletOrder/SetAppletGoodsOrderInfo',
data: form data: form
...@@ -580,6 +589,7 @@ ...@@ -580,6 +589,7 @@
this.goodPrice += parseFloat(x.total_goods_price); this.goodPrice += parseFloat(x.total_goods_price);
this.expressPrice += parseFloat(x.express_price); this.expressPrice += parseFloat(x.express_price);
this.couponPrice += parseFloat(x.coupon.coupon_discount || 0.0); this.couponPrice += parseFloat(x.coupon.coupon_discount || 0.0);
this.deduction_commission += parseFloat(x.deduction_commission || 0);
if (x.integral.can_use) { if (x.integral.can_use) {
this.integral.can_use = true; this.integral.can_use = true;
this.integral.use = false; this.integral.use = false;
......
...@@ -126,7 +126,11 @@ ...@@ -126,7 +126,11 @@
</view> </view>
<view class="field"> <view class="field">
<view class="label">优惠</view> <view class="label">优惠</view>
<view class="content right">-¥{{ orders.CouponMoney }}</view> <view class="content right">-¥{{ orders.CouponMoney }}</view>
</view>
<view class="field" v-if="orders.DeductionCommission>0">
<view class="label">佣金抵扣</view>
<view class="content right">-¥{{ orders.DeductionCommission }}</view>
</view> </view>
<view style="width: 100%;height: 1px;background: #f5f5f5;margin: 5px 0;"></view> <view style="width: 100%;height: 1px;background: #f5f5f5;margin: 5px 0;"></view>
<view class="field"> <view class="field">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment