Fix:4453 【旅居商城小程序】商品的送礼封面选择弹窗需剔除【团购】类的礼品卡封面
This commit is contained in:
@@ -410,7 +410,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getGiftCardSendOrderConfirm(params).then(res => {
|
getGiftCardSendOrderConfirm(params).then(res => {
|
||||||
this.coverList = res.data.giftCardTemplates.map(e => e.id).includes(res.data.specialGiftCardTemplate.id) ? [...res.data.giftCardTemplates] : [...res.data.giftCardTemplates, res.data.specialGiftCardTemplate]
|
const temp = this.isGroupBuy ? res.data.giftCardTemplates : res.data.giftCardTemplates.filter(e => e.isTravelGroup === 0)
|
||||||
|
this.coverList = res.data.giftCardTemplates.map(e => e.id).includes(res.data.specialGiftCardTemplate.id) ? [...temp] : [...temp, res.data.specialGiftCardTemplate]
|
||||||
this.giftNotice = res.data.giftCardGiftNotice
|
this.giftNotice = res.data.giftCardGiftNotice
|
||||||
this.orderKey = res.data.orderKey
|
this.orderKey = res.data.orderKey
|
||||||
this.goodsInfo = res.data.cartInfo[0]
|
this.goodsInfo = res.data.cartInfo[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user