feat:抵扣券换成数字积分
This commit is contained in:
@@ -133,12 +133,12 @@
|
||||
<!-- 优惠券信息 -->
|
||||
<view class="order_way_warp_two" v-if="isCoupon">
|
||||
<view class="price-view">
|
||||
<text class="text-32 text-zu">抵扣券余额</text>
|
||||
<text class="text-32 text-zu">数字积分余额</text>
|
||||
<text class="text-32 text-zu text-bold">{{ couponData.balance || 0 }}</text>
|
||||
</view>
|
||||
|
||||
<view class="price-view">
|
||||
<text class="text-32 text-zu">实付抵扣券 </text>
|
||||
<text class="text-32 text-zu">实付数字积分 </text>
|
||||
<text class="text-32 text-zu text-bold">{{ buyCouponvalue }}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -169,7 +169,7 @@
|
||||
<view class="price-view">
|
||||
<text class="text-32 text-zu">商品总价</text>
|
||||
<text class="text-32 text-zu text-bold" v-if="isCoupon">
|
||||
{{ `${buyCouponvalue}抵扣券+${orderInfo.amount - (orderInfo.postage || 0) +
|
||||
{{ `${buyCouponvalue}数字积分+${orderInfo.amount - (orderInfo.postage || 0) +
|
||||
(orderInfo.enterpriseAmount
|
||||
|| 0)}元` }}
|
||||
</text>
|
||||
@@ -183,8 +183,8 @@
|
||||
</view>
|
||||
|
||||
<view class="price-view" v-if="isCoupon">
|
||||
<text class="text-32 text-zu">抵扣券</text>
|
||||
<text class="text-32 text-zu text-bold">{{ buyCouponvalue }}抵扣券</text>
|
||||
<text class="text-32 text-zu">数字积分</text>
|
||||
<text class="text-32 text-zu text-bold">{{ buyCouponvalue }}数字积分</text>
|
||||
</view>
|
||||
<view class="price-view" v-if="user?.isEnterpriseUser">
|
||||
<text class="text-32 text-zu">企业用户优惠</text>
|
||||
@@ -366,8 +366,8 @@ export default {
|
||||
isCoupon: false, // 是否优惠卷
|
||||
couponData: {}, // 优惠卷数据
|
||||
allOrderInfo: {}, // 所有订单信息
|
||||
buyCouponvalue: 0, // 实付抵扣券积分
|
||||
buyCouponAmount: 0, // 实付抵扣券对应的钱
|
||||
buyCouponvalue: 0, // 实付数字积分积分
|
||||
buyCouponAmount: 0, // 实付数字积分对应的钱
|
||||
};
|
||||
},
|
||||
async onLoad(option) {
|
||||
@@ -415,12 +415,12 @@ export default {
|
||||
methods: {
|
||||
getValue,
|
||||
assembleAddress,
|
||||
// 实付抵扣券
|
||||
// 实付数字积分
|
||||
onBuyCouponvalue(currentQuantity) {
|
||||
this.buyCouponvalue = Number((this.allOrderInfo.buyDeductionValue * (currentQuantity || 1)).toFixed(2)) || 0;
|
||||
|
||||
},
|
||||
// 实付抵扣券对应的钱
|
||||
// 实付数字积分对应的钱
|
||||
onBuyCouponAmount() {
|
||||
this.buyCouponAmount = Number((this.sed.goodsNum * this.allOrderInfo.buyDeduction).toFixed(2)) || 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user