Fix:4819 【商城小程序】已被领取的盲盒礼包,在24小时后查看领取页面会显示为礼包已失效(24小时内、24小时后查看都应该显示为已领取的效果)
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
class="good-story"
|
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="{
|
:style="{
|
||||||
right: (card.productStoryX*2 || 0) + 'rpx',
|
right: (card.productStoryX*2 || 0) + 'rpx',
|
||||||
top: (card.productStoryY*2 || 0) + 'rpx'
|
top: (card.productStoryY*2 || 0) + 'rpx'
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
showGift() {
|
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() {
|
onShow() {
|
||||||
|
|||||||
Reference in New Issue
Block a user