Fix:3296 【礼品功能】未登录状态,点击领取礼包,登录前闪过礼包已被领取的页面,登录后显示的是待领取状态
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="dialog-conent">
|
||||
<view class="dialog-conent" v-if="isLogin">
|
||||
<view class="gift-card-modal" >
|
||||
<image class="bg-image" :src="card.cover" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image>
|
||||
<view class="image-wrap" v-if="!card.isReceive">
|
||||
@@ -24,13 +24,13 @@
|
||||
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
|
||||
</button>
|
||||
</view>
|
||||
<view v-if="!isReceive && card.giftProducts[0].isCurrentUser === 1" @click="toOrder" style="z-index: 10">
|
||||
<view v-if="!isReceive && card && card.giftProducts[0] && card.giftProducts[0].isCurrentUser === 1" @click="toOrder" style="z-index: 10">
|
||||
<view class="address-btn v12-white-text v12-primary">
|
||||
您已领取礼包
|
||||
</view>
|
||||
<view class="v12-text-center v12-font-26 v12-primary-text v12-mt-3">查看礼包详情>></view>
|
||||
</view>
|
||||
<view v-if="isReceive && card.giftProducts[0].isCurrentUser === 0" @click="toHome" style="z-index: 10">
|
||||
<view v-if="isReceive && card && card.giftProducts[0] && card.giftProducts[0].isCurrentUser === 0" @click="toHome" style="z-index: 10">
|
||||
<view class="address-btn v12-white-text v12-primary">
|
||||
礼包已被领取
|
||||
</view>
|
||||
@@ -50,6 +50,7 @@
|
||||
|
||||
<script>
|
||||
import { getGiftCardSendNotice, getGiftCardReceive } from '@/api/gift'
|
||||
import cookie from "@/utils/store/cookie";
|
||||
import { getAddressList } from '@/api/user'
|
||||
import giftTips from './giftTips.vue'
|
||||
import AddressDialog from './AddressDialog.vue'
|
||||
@@ -84,6 +85,9 @@ export default {
|
||||
computed: {
|
||||
isReceive() {
|
||||
return this.card.recipientsNum === this.card.receiveNum
|
||||
},
|
||||
isLogin() {
|
||||
return !!cookie.get('login_status');
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Reference in New Issue
Block a user