From e02959720b4cfa38ff9d573c4a722e5ae2fa44ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 3 Mar 2023 17:27:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/CommodityDetails/CommodityDetails.vue | 23 ++++++++++++--------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pages/CommodityDetails/CommodityDetails.vue b/pages/CommodityDetails/CommodityDetails.vue index 0e87db0..f0b1603 100644 --- a/pages/CommodityDetails/CommodityDetails.vue +++ b/pages/CommodityDetails/CommodityDetails.vue @@ -597,16 +597,19 @@ } else { this.couponListfalse.push(e) } - if (this.couponId == e.couponId) { - if (this.totalPrice >= e.couponConsumePrice) { - this.Paidinprice = (this.totalPrice - e.couponPrice).toFixed(2) - this.coupon = e - } else { - this.Paidinprice = null - this.couponId = null - this.coupon = null - } - } + this.Paidinprice = null + this.couponId = null + this.coupon = null + // if (this.couponId == e.couponId) { + // if (this.totalPrice >= e.couponConsumePrice) { + // this.Paidinprice = (this.totalPrice - e.couponPrice).toFixed(2) + // this.coupon = e + // } else { + // this.Paidinprice = null + // this.couponId = null + // this.coupon = null + // } + // } }) } },