From 5e31dde2839bf2e5ed5316b537bc598da6ecbe9f Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Sat, 17 Jan 2026 19:06:05 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E5=A4=9A=E4=BB=BD=E7=9B=B2?= =?UTF-8?q?=E7=9B=92=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/gift/receive.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg_user/views/gift/receive.vue b/pkg_user/views/gift/receive.vue index 3ee25da..6081372 100644 --- a/pkg_user/views/gift/receive.vue +++ b/pkg_user/views/gift/receive.vue @@ -45,7 +45,10 @@ export default { }, computed: { showGift() { - return !this.giftCard.isExpire || !!this.giftCard.isUserReceive || (this.giftCard.isBind === 1 && this.giftCard.giftProducts[0].isCurrentUser === 1) + const card = this.giftCard || {} + const giftProducts = card.giftProducts || [] + const hasCurrentUserGift = giftProducts.some(item => item.isCurrentUser === 1) + return !card.isExpire || !!card.isUserReceive || (card.isBind === 1 && hasCurrentUserGift) } }, onShow() {