Fix:4664 【旅居商城小程序】团购选择其他优惠券无法生效,选择以后又自动改回默认的优惠券了
This commit is contained in:
@@ -251,7 +251,7 @@ export default {
|
|||||||
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
|
this.couponTitle = this.couponList['usable']?.[this.couponIndex]?.couponTitle
|
||||||
if(this.isGroupBuy) {
|
if(this.isGroupBuy) {
|
||||||
await this.computedTravelGroupPrice(true)
|
await this.computedTravelGroupPrice(false)
|
||||||
} else {
|
} else {
|
||||||
await this.computedPrice(this.goodsInfo.cartNum, 1)
|
await this.computedPrice(this.goodsInfo.cartNum, 1)
|
||||||
}
|
}
|
||||||
@@ -333,7 +333,11 @@ export default {
|
|||||||
}
|
}
|
||||||
this.couponId = item.id
|
this.couponId = item.id
|
||||||
this.couponTitle = item.couponTitle
|
this.couponTitle = item.couponTitle
|
||||||
this.computedPrice(this.goodsInfo.cartNum, 1)
|
if(this.isGroupBuy) {
|
||||||
|
this.computedTravelGroupPrice(false)
|
||||||
|
} else {
|
||||||
|
this.computedPrice(this.goodsInfo.cartNum, 1)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
makeAgain() {
|
makeAgain() {
|
||||||
const params = {
|
const params = {
|
||||||
|
|||||||
Reference in New Issue
Block a user