Fix:礼品卡第一个跟最后一个重复显示了

This commit is contained in:
linxi
2025-03-03 14:56:23 +08:00
parent 754713282b
commit 38fde39aa7
+1 -1
View File
@@ -263,7 +263,7 @@ export default {
cartId: this.cartId, cartId: this.cartId,
} }
getGiftCardSendOrderConfirm(params).then(res => { 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.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]