feat:去掉优惠券判断
This commit is contained in:
@@ -815,13 +815,6 @@ export default {
|
||||
console.log("orderInfo----", arr);
|
||||
if (arr.length) {
|
||||
if (this.isCoupon) {
|
||||
if (this.buyCouponvalue > this.couponData.balance) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "您当前优惠券金额不足",
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.show = true;
|
||||
} else if (arr[0].type == "balance" || arr[0].type == "redpacket") {
|
||||
this.show = true;
|
||||
|
||||
@@ -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