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

邀请组件

parent 06e69514
......@@ -190,11 +190,14 @@ onMounted(async () => {
// const unionId = uni.getStorageSync('unionId');
const unclaimedPrize = res.data?.unclaimedPrize;
if(res.success && unclaimedPrize) {
globalStore.isShowInvitePrizePanel = true;
globalStore.inviteCount = res.data?.invitedCount;
globalStore.prizeName = unclaimedPrize?.prizeName;
globalStore.prizeImage = unclaimedPrize?.prizeImageUrl;
if(res.success){
if(unclaimedPrize) {
globalStore.isShowInvitePrizePanel = true;
globalStore.inviteCount = res.data?.invitedCount;
globalStore.prizeName = unclaimedPrize?.prizeName;
globalStore.prizeImage = unclaimedPrize?.prizeImageUrl;
}
}
console.log('邀请活动首页数据:', res);
});
......
......@@ -274,7 +274,7 @@
<!-- 积分限时购 -->
<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" />
<!-- 会员活动 -->
<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