Fix:3358 【商城小程序】商详页优惠券弹窗—无法取消勾选优惠券

This commit is contained in:
linxi
2025-03-14 10:57:20 +08:00
parent 6b1dd27294
commit 26b6c14141
3 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -388,7 +388,8 @@ export default {
this.computedPrice('shipping_type');
},
async couponId(value) {
this.couponIndex = this.couponList['usable']?.findIndex(item => item.id === value)
this.couponIndex = this.couponList['usable']?.findIndex(item => item.id === +value)
this.couponTitle = this.couponList['usable']?.[this.couponIndex]?.couponTitle
await this.computedPrice('couponId')
}
},