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
292ab52f
Commit
292ab52f
authored
Oct 31, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
766666
parent
410b9271
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
6 deletions
+55
-6
InvitePrizePanel.vue
components/integralArea/InvitePrizePanel.vue
+25
-1
index.vue
pages/index/index.vue
+3
-1
sharepage.vue
pages/invate/sharepage.vue
+27
-4
No files found.
components/integralArea/InvitePrizePanel.vue
View file @
292ab52f
...
...
@@ -42,7 +42,7 @@
<
script
setup
>
import
{
defineProps
,
defineEmits
}
from
'vue'
;
import
{
jump
}
from
'../../utils'
;
import
{
jump
,
JumpType
}
from
'../../utils'
;
// Props 定义
const
props
=
defineProps
({
...
...
@@ -61,6 +61,14 @@ const props = defineProps({
prizeImage
:
{
type
:
String
,
default
:
''
},
prizeType
:
{
type
:
String
,
default
:
''
},
memberId
:
{
type
:
String
,
default
:
''
}
});
...
...
@@ -85,6 +93,22 @@ const handleRecordClick = () => {
// 查看奖品按钮点击事件
const
handlePrizeClick
=
()
=>
{
console
.
log
(
'查看奖品按钮点击'
);
if
(
props
.
prizeType
===
'credits'
)
{
const
urlStr
=
'https://mom.feihe.com/member/mine/newPointDetail?crmId={crmid}&appCode=XMH'
;
const
url
=
urlStr
.
replace
(
"{crmid}"
,
props
.
memberId
);
console
.
log
(
'积分明细链接:=='
,
url
)
jump
({
type
:
3
,
url
:
url
})
}
else
{
jump
({
type
:
2
,
url
:
'/subPackages/xmhMainProcess/mine/index'
,
extra
:
{
envVersion
:
"release"
,
appId
:
"wx4205ec55b793245e"
}
//, embedded: true }
});
}
emit
(
'prize'
);
};
</
script
>
...
...
pages/index/index.vue
View file @
292ab52f
...
...
@@ -9,7 +9,7 @@
<!-- 邀请奖品弹窗 -->
<InvitePrizePanel
:visible=
"globalStore.isShowInvitePrizePanel"
:inviteCount=
"globalStore.inviteCount"
:prizeName=
"globalStore.prizeName"
:prizeImage=
"globalStore.prizeImage"
@
close=
"handleCloseInvitePrizePanel"
:prizeName=
"globalStore.prizeName"
:prizeImage=
"globalStore.prizeImage"
:prizeType=
"globalStore.prizeType"
:memberId=
"globalStore.memberId"
@
close=
"handleCloseInvitePrizePanel"
@
record=
"handleInvitePrizePanelRecord"
@
prize=
"handleInvitePrizePanelPrize"
/>
<!-- 任务完成弹窗 -->
...
...
@@ -190,6 +190,8 @@ onMounted(async () => {
globalStore
.
inviteCount
=
res
.
data
?.
invitedCount
;
globalStore
.
prizeName
=
unclaimedPrize
?.
prizeName
;
globalStore
.
prizeImage
=
unclaimedPrize
?.
prizeImageUrl
;
globalStore
.
prizeType
=
unclaimedPrize
?.
prizeType
;
globalStore
.
memberId
=
res
.
data
?.
memberId
;
}
}
...
...
pages/invate/sharepage.vue
View file @
292ab52f
...
...
@@ -20,9 +20,11 @@
<!-- 邀请奖品弹窗 -->
<InvitePrizePanel
:visible=
"isShowInvitePrizePanel"
:inviteCount=
"1"
:prizeName=
"'奖品名称奖品名称'"
:prizeImage=
"''"
:inviteCount=
"inviteCount"
:prizeName=
"prizeName"
:prizeImage=
"prizeImage"
:prizeType=
"prizeType"
:memberId=
"memberId"
@
close=
"handleCloseInvitePrizePanel"
@
record=
"handleInvitePrizePanelRecord"
@
prize=
"handleInvitePrizePanelPrize"
...
...
@@ -90,6 +92,8 @@ const isShowInvitePrizePanel = ref(false);
const
inviteCount
=
ref
(
0
);
const
prizeName
=
ref
(
''
);
const
prizeImage
=
ref
(
''
);
const
prizeType
=
ref
(
''
);
const
memberId
=
ref
(
''
);
// 获取邀请码和unionId
const
initInviteParams
=
()
=>
{
...
...
@@ -149,6 +153,8 @@ const initPage = async () => {
//获取邀请码和奖励
const
res
=
await
integralStore
.
getOriginInviteHome
();
memberId
.
value
=
res
.
data
?.
memberId
;
console
.
log
(
'res--sharepage:'
,
res
);
// const unionId = uni.getStorageSync('unionId');
...
...
@@ -166,7 +172,8 @@ const initPage = async () => {
isShowInvitePrizePanel
.
value
=
true
;
inviteCount
.
value
=
res
.
data
?.
invitedCount
;
prizeName
.
value
=
unclaimedPrize
?.
prizeName
;
prizeImage
.
value
=
res
.
data
?.
prizeImageUrl
;
prizeImage
.
value
=
unclaimedPrize
?.
prizeImageUrl
;
prizeType
.
value
=
unclaimedPrize
?.
prizeType
;
}
if
(
isLogin
.
value
)
{
...
...
@@ -338,6 +345,22 @@ const gotoIntegral = () => {
});
};
const
handleCloseInvitePrizePanel
=
()
=>
{
isShowInvitePrizePanel
.
value
=
false
;
};
const
handleInvitePrizePanelRecord
=
()
=>
{
console
.
log
(
'查看邀请记录'
);
isShowInvitePrizePanel
.
value
=
false
;
// 这里可以添加跳转到邀请记录页面的逻辑
};
const
handleInvitePrizePanelPrize
=
()
=>
{
console
.
log
(
'查看奖品'
);
isShowInvitePrizePanel
.
value
=
false
;
// 这里可以添加跳转到奖品页面的逻辑
};
// // 分享配置
// onShareAppMessage(() => {
// return {
...
...
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