优惠券相关更新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user