diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index 5ce8cc6..53aebb0 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -373,7 +373,9 @@ export default { } getGiftCardResend(params).then(res => { 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 { coverList, template } = this.adjustCoverListForProductStory(initialCoverList, goodsInfo && goodsInfo.productInfo, res.data.specialGiftCardTemplate) this.coverList = coverList