Commit a7f8c2d9 authored by youjie's avatar youjie

优惠金额

parent 4c26373c
......@@ -66,10 +66,10 @@
</view>
</view>
</view>
<view v-if="maxCouponDiscount>0" class="jz_LineDetaYJDKQ" style="padding: 0rpx 0 0 0;">
<view v-if="TotalDiscount>0" class="jz_LineDetaYJDKQ" style="padding: 0rpx 0 0 0;">
<view class="jz_LineDetaYJ">
<view class="jz_LineDetaYJL">原价 ¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}/人起</view>
<view class="jz_LineDetaYJR">已减{{maxCouponDiscount}}</view>
<view class="jz_LineDetaYJR">已减{{TotalDiscount}}</view>
</view>
<view v-if="couponList.length>0" class="jz_LineDetaRDKQ">
<view>共{{couponList.length}}张抵扣券</view>
......@@ -1276,10 +1276,11 @@
img:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528736165089.png'
},
],
stepNumber: 0,
UnfOddNumber: 0,
discountPrice: 0,
Discounts: 1,
stepNumber: 0,//当前完成单数
UnfOddNumber: 0,//剩余完成订单数 可成为vip
discountPrice: 0,//优惠后金额
Discounts: 1,//福利项
TotalDiscount: 0,//合计优惠金额
};
},
watch: {
......@@ -1471,6 +1472,7 @@
})
let money = this.$utils.getretailer()?this.currentPrice.b2BPrice:this.currentPrice.b2CPrice
let maxCouponDiscount = this.maxCouponDiscount
this.TotalDiscount = this.maxCouponDiscount
if(this.stepNumber<5){
this.discountPrice = money-this.maxCouponDiscount
}else{
......@@ -1485,7 +1487,7 @@
console.log(Number(discountPrice)-100,'-----其他线')
}
console.log(maxCouponDiscount,'------已减')
this.maxCouponDiscount = maxCouponDiscount.toFixed(2)
this.TotalDiscount = maxCouponDiscount.toFixed(2)
}
}
},
......
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