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