diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index 75bd6f3..92925d7 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -263,7 +263,7 @@ export default { cartId: this.cartId, } getGiftCardSendOrderConfirm(params).then(res => { - this.coverList = [...res.data.giftCardTemplates, res.data.specialGiftCardTemplate] + this.coverList = res.data.giftCardTemplates.map(e => e.id).includes(res.data.specialGiftCardTemplate.id) ? [...res.data.giftCardTemplates] : [...res.data.giftCardTemplates, res.data.specialGiftCardTemplate] this.giftNotice = res.data.giftCardGiftNotice this.orderKey = res.data.orderKey this.goodsInfo = res.data.cartInfo[0]