Fix:3219 【商城小程序】从商详页选择非最高减免金额优惠券,结算页面显示的优惠券信息是最高优惠券,与已选择的优惠券不对应
This commit is contained in:
@@ -204,6 +204,7 @@ export default {
|
|||||||
selectCoupon(id) {
|
selectCoupon(id) {
|
||||||
this.couponId = id
|
this.couponId = id
|
||||||
this.selectItem = this.list.find(e => e.id === id) || {}
|
this.selectItem = this.list.find(e => e.id === id) || {}
|
||||||
|
this.$emit('max', this.selectItem)
|
||||||
this.list.map(item => {
|
this.list.map(item => {
|
||||||
item.checked = id === item.id
|
item.checked = id === item.id
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -438,6 +438,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
isNullOrEmpty,
|
isNullOrEmpty,
|
||||||
couponMax(e) {
|
couponMax(e) {
|
||||||
|
console.log(e, 'dxdhkasjhdajks');
|
||||||
this.couponTitle = e.couponTitle
|
this.couponTitle = e.couponTitle
|
||||||
this.couponId = this.$yroute.query.couponId || uni.getStorageSync('couponId') || 0
|
this.couponId = this.$yroute.query.couponId || uni.getStorageSync('couponId') || 0
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user