Fix:4819 【商城小程序】已被领取的盲盒礼包,在24小时后查看领取页面会显示为礼包已失效(24小时内、24小时后查看都应该显示为已领取的效果)

This commit is contained in:
linxi
2026-01-16 10:11:32 +08:00
parent 557fd0dfe3
commit 06bc1a740f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
</view>
<view
class="good-story"
v-if="card.isBlind !== 1 && card.giftProducts[0].productStory && card.isShowProductStory"
v-if="card.isBlind !== 1 && card.giftProducts && card.giftProducts[0].productStory && card.isShowProductStory"
:style="{
right: (card.productStoryX*2 || 0) + 'rpx',
top: (card.productStoryY*2 || 0) + 'rpx'
+2 -1
View File
@@ -45,7 +45,8 @@ export default {
},
computed: {
showGift() {
return !this.giftCard.isExpire || !!this.giftCard.isUserReceive || (this.giftCard.isBind === 1 && this.giftCard.giftProducts[0].isCurrentUser === 1)
const isCurrentUser = this.giftCard.giftProducts && this.giftCard.giftProducts[0].isCurrentUser === 1
return !this.giftCard.isExpire || !!this.giftCard.isUserReceive || (this.giftCard.isBlind === 1 && isCurrentUser)
}
},
onShow() {