Fix:4779 【商城小程序】商品送礼:点击“再送一份”,礼包封面选择弹窗会显示团购类的礼包封面
This commit is contained in:
@@ -373,7 +373,9 @@ export default {
|
|||||||
}
|
}
|
||||||
getGiftCardResend(params).then(res => {
|
getGiftCardResend(params).then(res => {
|
||||||
this.isPayOk = false
|
this.isPayOk = false
|
||||||
const initialCoverList = [...res.data.giftCardTemplates, res.data.specialGiftCardTemplate]
|
const temp = res.data.giftCardTemplates.filter(e => e.isTravelGroup === 0)
|
||||||
|
const hasSpecial = res.data.giftCardTemplates.map(e => e.id).includes(res.data.specialGiftCardTemplate.id)
|
||||||
|
const initialCoverList = hasSpecial ? [...temp] : [...temp, res.data.specialGiftCardTemplate]
|
||||||
const goodsInfo = res.data.cartInfo[0]
|
const goodsInfo = res.data.cartInfo[0]
|
||||||
const { coverList, template } = this.adjustCoverListForProductStory(initialCoverList, goodsInfo && goodsInfo.productInfo, res.data.specialGiftCardTemplate)
|
const { coverList, template } = this.adjustCoverListForProductStory(initialCoverList, goodsInfo && goodsInfo.productInfo, res.data.specialGiftCardTemplate)
|
||||||
this.coverList = coverList
|
this.coverList = coverList
|
||||||
|
|||||||
Reference in New Issue
Block a user