修改支付订单时选择满减券的限制

This commit is contained in:
2024-11-13 17:36:53 +08:00
parent 9167ee9a9b
commit 1bf820be53
2 changed files with 3 additions and 2 deletions

View File

@@ -297,7 +297,8 @@
}
go.to('PAGES_ORDER_QUAN', {
orderId: order.id,
memberId: order.memberId
memberId: order.memberId,
orderPrice:payPrice.value
})
}
async function discountShow() {

View File

@@ -204,7 +204,7 @@
console.log(order.value);
const res = await $activateByOrderId(option)
canDikouGoodsArr = returnNewGoodsList(order.value.detailList || [])
res.fullReductionCoupon = res.fullReductionCoupon.filter((v) => v.use)
res.fullReductionCoupon = res.fullReductionCoupon.filter((v) => v.use&&option.orderPrice*1>=v.fullAmount*1)
res.productCoupon = res.productCoupon.map(v => {
const calcCoup = returnProductCoupon(v, canDikouGoodsArr, user.value)
return {