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
@@ -204,13 +204,14 @@ export default {
selectCoupon(id) {
this.couponId = id
this.selectItem = this.list.find(e => e.id === id) || {}
this.$emit('max', this.selectItem)
// this.$emit('select', this.selectItem)
this.list.map(item => {
item.checked = id === item.id
})
},
setCoupon() {
if (this.current === 1) return
console.log(this.current, '====1=======');
uni.setStorageSync('couponId', this.couponId)
this.$emit('change', this.selectItem || {})
this.$emit('ok', this.couponId)