Commit 1a78f809 authored by 王炽's avatar 王炽

邀请组件

parent 06e69514
...@@ -190,11 +190,14 @@ onMounted(async () => { ...@@ -190,11 +190,14 @@ onMounted(async () => {
// const unionId = uni.getStorageSync('unionId'); // const unionId = uni.getStorageSync('unionId');
const unclaimedPrize = res.data?.unclaimedPrize; const unclaimedPrize = res.data?.unclaimedPrize;
if(res.success && unclaimedPrize) { if(res.success){
globalStore.isShowInvitePrizePanel = true; if(unclaimedPrize) {
globalStore.inviteCount = res.data?.invitedCount; globalStore.isShowInvitePrizePanel = true;
globalStore.prizeName = unclaimedPrize?.prizeName; globalStore.inviteCount = res.data?.invitedCount;
globalStore.prizeImage = unclaimedPrize?.prizeImageUrl; globalStore.prizeName = unclaimedPrize?.prizeName;
globalStore.prizeImage = unclaimedPrize?.prizeImageUrl;
}
} }
console.log('邀请活动首页数据:', res); console.log('邀请活动首页数据:', res);
}); });
......
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
<!-- 积分限时购 --> <!-- 积分限时购 -->
<SeckillSection :isdebug="isdebug" :itemIndex="itemIndex" @credits-sale-click="handleCreditsSaleClick" /> <SeckillSection :isdebug="isdebug" :itemIndex="itemIndex" @credits-sale-click="handleCreditsSaleClick" />
<!-- 邀请得好礼组件 --> <!-- 邀请得好礼组件 -->
<InviteGift v-if="true" class="invite_container" :itemIndex="itemIndex" @invite="handleInviteClick" <InviteGift v-if="integralStore.originInviteHome?.data" class="invite_container" :itemIndex="itemIndex" @invite="handleInviteClick"
@record="handleRecordClick" /> @record="handleRecordClick" />
<!-- 会员活动 --> <!-- 会员活动 -->
<view class="vip-active-area" v-if="vipActive?.length > 0"> <view class="vip-active-area" v-if="vipActive?.length > 0">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment