feat:去掉优惠券判断
This commit is contained in:
@@ -1063,18 +1063,7 @@ export default {
|
||||
console.log("selectTempl", selectTempl);
|
||||
if (this.isShowCart == 1 || this.isCoupon) {
|
||||
params["specsId"] = selectTempl;
|
||||
console.log("----------", params, this.isCoupon, this.orderInfo.buyDeductionValue, this.orderInfo.quantity, this.curAmount);
|
||||
|
||||
const buyCouponvalue = Number((this.orderInfo.buyDeductionValue * (this.orderInfo.quantity || 1)).toFixed(2)) || 0;
|
||||
|
||||
if (this.isCoupon && buyCouponvalue > this.curAmount) {
|
||||
uni.showToast({
|
||||
title: `您当前优惠券金额不足`,
|
||||
icon: "none", // 可选 success/loading/none
|
||||
duration: 2000, // 持续时长,单位ms
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify(
|
||||
params
|
||||
|
||||
Reference in New Issue
Block a user