优惠券相关更新

This commit is contained in:
GaoHao
2024-11-23 10:05:04 +08:00
parent ecb615e9c8
commit 28950f0ad1
5 changed files with 146 additions and 42 deletions

View File

@@ -235,6 +235,7 @@
}
let isNum = 0;
let isProductItem;
// 确认订单
if ( this.type == 'confirm_order_product' ) {
product.forEach(item => {
@@ -245,6 +246,7 @@
}
}
})
if ( this.payAmount < (isProductItem.memberPrice > 0 ? isProductItem.memberPrice : isProductItem.salePrice)) {
uni.showToast({
title: `当前金额不足商品抵扣`,
@@ -264,6 +266,7 @@
}
}
})
if ( this.payAmount < (isProductItem.memberPrice > 0 ? isProductItem.memberPrice : isProductItem.price)) {
uni.showToast({
title: `当前金额不足商品抵扣`,
@@ -273,7 +276,13 @@
}
}
if ( !isProductItem ) {
uni.showToast({
title: `当前订单无可抵扣商品`,
icon: "none",
})
return;
}
// let productNum = 0;
// product.map(item => {
// productNum += item.number