Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
1a78f809
Commit
1a78f809
authored
Oct 28, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邀请组件
parent
06e69514
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
index.vue
pages/index/index.vue
+8
-5
Integral.vue
views/Integral.vue
+1
-1
No files found.
pages/index/index.vue
View file @
1a78f809
...
@@ -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
);
});
});
...
...
views/Integral.vue
View file @
1a78f809
...
@@ -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
">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment