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
dc98b393
Commit
dc98b393
authored
Oct 31, 2025
by
jt
Browse files
Options
Browse Files
Download
Plain Diff
x
parents
aec73058
566b24d2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
18 deletions
+69
-18
InvitePrizePanel.vue
components/integralArea/InvitePrizePanel.vue
+25
-1
index.vue
pages/index/index.vue
+4
-1
sharepage.vue
pages/invate/sharepage.vue
+27
-4
Integral.less
views/Integral.less
+1
-1
Integral.vue
views/Integral.vue
+12
-11
No files found.
components/integralArea/InvitePrizePanel.vue
View file @
dc98b393
...
...
@@ -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 @
dc98b393
...
...
@@ -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"
/>
<!-- 任务完成弹窗 -->
...
...
@@ -172,6 +172,7 @@ const checkAndUpdateTaskResult = async () => {
};
onMounted
(
async
()
=>
{
// globalStore.isShowInvitePrizePanel = true;return
// globalStore.isShowTaskComplete = true;//?????????
//任务奖品
await
checkAndUpdateTaskResult
();
...
...
@@ -190,6 +191,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 @
dc98b393
...
...
@@ -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 {
...
...
views/Integral.less
View file @
dc98b393
...
...
@@ -948,7 +948,7 @@
.goods-item {
background-color: #ffffff;
position: relative;
width: 33
3
rpx;
width: 33
2
rpx;
height: 459rpx;
.goods-item-container {
...
...
views/Integral.vue
View file @
dc98b393
...
...
@@ -338,8 +338,7 @@
<text class="
benefit_points
" :class="`item-${itemIndex
}
`">{{ benefit.credits
}}
积分</text>
<!-- 兑换按钮 -->
<view class="
exchange_button
" :class="`item-${itemIndex
}
`"
@click="
handleExchangeClick
(
benefit
,
index
)
">
<view class="
exchange_button
" :class="`item-${itemIndex
}
`">
<text class="
exchange_text
">兑换</text>
</view>
</template>
...
...
@@ -390,17 +389,19 @@
<
text
class
=
"title-text1"
>
{{
goodItem
?.
goodsName
}}
<
/text
>
<
/view
>
<
text
class
=
"price-text"
><
text
class
=
"num"
>
{{
<
text
v
-
if
=
"Number(goodItem?.urlType) !== 2"
class
=
"price-text"
><
text
class
=
"num"
>
{{
goodItem
?.
credits
}}
<
/text>积分</
text
>
<!--
<
text
v
-
if
=
"Number(goodItem?.priceSale) && Number(goodItem?.credits)"
class
=
"num0"
>
低至
{{
goodItem
?.
credits
}}
<
text
class
=
"price-text0"
>
积分
<
/text><tex
t
class
=
"price-text1"
>+<
/text><text class="price-text0">¥</
text
>
{{
goodItem
?.
priceSale
}}
<
/text
>
<
text
v
-
else
-
if
=
"Number(goodItem?.priceSale)"
class
=
"price-text"
><
text
class
=
"num"
>
¥
{{
goodItem
?.
priceSale
}}
<
/text></
text
>
<
text
v
-
else
-
if
=
"Number(goodItem?.credits)"
class
=
"price-text"
><
text
class
=
"num"
>
{{
goodItem
?.
credits
}}
<
/text>积分</
text
>
-->
<
template
v
-
else
>
<
text
v
-
if
=
"Number(goodItem?.priceMarket) && Number(goodItem?.credits)"
class
=
"num0"
>
低至
{{
goodItem
?.
credits
}}
<
text
class
=
"price-text0"
>
积分
<
/text><tex
t
class
=
"price-text1"
>+<
/text><text class="price-text0">¥</
text
>
{{
goodItem
?.
priceMarket
/
100
}}
<
/text
>
<
text
v
-
else
-
if
=
"Number(goodItem?.priceSale)"
class
=
"price-text"
><
text
class
=
"num"
>
¥
{{
goodItem
?.
priceMarket
/
100
}}
<
/text></
text
>
<
text
v
-
else
-
if
=
"Number(goodItem?.credits)"
class
=
"price-text"
><
text
class
=
"num"
>
{{
goodItem
?.
credits
}}
<
/text>积分</
text
>
<
/template
>
<
/view
>
<
/view
>
...
...
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