This commit is contained in:
曹辉 2023-03-03 17:27:29 +08:00
parent 9df3d5f5b7
commit e02959720b

View File

@ -597,16 +597,19 @@
} else { } else {
this.couponListfalse.push(e) this.couponListfalse.push(e)
} }
if (this.couponId == e.couponId) { this.Paidinprice = null
if (this.totalPrice >= e.couponConsumePrice) { this.couponId = null
this.Paidinprice = (this.totalPrice - e.couponPrice).toFixed(2) this.coupon = null
this.coupon = e // if (this.couponId == e.couponId) {
} else { // if (this.totalPrice >= e.couponConsumePrice) {
this.Paidinprice = null // this.Paidinprice = (this.totalPrice - e.couponPrice).toFixed(2)
this.couponId = null // this.coupon = e
this.coupon = null // } else {
} // this.Paidinprice = null
} // this.couponId = null
// this.coupon = null
// }
// }
}) })
} }
}, },