Fix:2405 【商城小程序】优惠详情—取消选择优惠券后,券后价显示0,应该显示当前售价

This commit is contained in:
modendeveloper
2024-09-23 21:12:20 +08:00
parent aa68c01ace
commit 787b2eada4
+1 -1
View File
@@ -148,7 +148,7 @@ export default {
return this.twoList['unusable'].length
},
computePrice() {
return this.force2Decimal(this.currentPrice - this.selectItem.couponPrice)
return this.force2Decimal(this.currentPrice - this.selectItem.couponPrice) || this.currentPrice
},
maxIndex() {
const maxIndex = this.list.reduce((a, b, c) => {