优惠券计算更新
This commit is contained in:
@@ -464,8 +464,8 @@
|
||||
const maxPointDiscount = ref(0)
|
||||
//积分可抵扣最大金额
|
||||
const maxMoney = computed(() => {
|
||||
return cartStore.orderCostSummary.goodsRealAmount - cartStore.orderCostSummary
|
||||
.couponDeductionAmount
|
||||
return cartStore.orderCostSummary.finalPayAmount + cartStore.orderCostSummary
|
||||
.pointDeductionAmount
|
||||
})
|
||||
|
||||
async function getMaxPointsDiscount() {
|
||||
@@ -553,11 +553,8 @@
|
||||
favorablelist.value = back_favorablelist.filter(v => v.name != '新客立减')
|
||||
return
|
||||
}
|
||||
if (!consumeDiscountRes.isUse) {
|
||||
favorablelist.value = back_favorablelist.filter(v => v.name != '新客立减')
|
||||
return
|
||||
}
|
||||
if (consumeDiscountRes && consumeDiscountRes.isUse) {
|
||||
|
||||
if (consumeDiscountRes) {
|
||||
newUserDiscount.value = consumeDiscountRes.amount
|
||||
cartStore.newUserDiscount = consumeDiscountRes.amount || 0
|
||||
cartStore.consumeDiscount = consumeDiscountRes
|
||||
|
||||
Reference in New Issue
Block a user