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
f14d39db
Commit
f14d39db
authored
Sep 23, 2025
by
spc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into dev-lg
parents
c8b15c57
8761576f
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1758 additions
and
1941 deletions
+1758
-1941
user.js
api/user.js
+4
-1
monthGift.vue
components/pointRightsCom/monthGift.vue
+5
-5
home.json
mock/home.json
+526
-612
integral.json
mock/integral.json
+597
-841
my.json
mock/my.json
+18
-6
pages.json
pages.json
+7
-0
heliaixinTools.vue
pages/heliaixinTools/heliaixinTools.vue
+58
-0
middlePage.vue
pages/middlePage/middlePage.vue
+13
-11
pageCfg.js
stores/pageCfg.js
+530
-458
My.vue
views/My.vue
+0
-7
No files found.
api/user.js
View file @
f14d39db
...
...
@@ -47,3 +47,6 @@ export const fetchMemberInfo = () => api.get('/c/user/memberInfo');
export
const
updateBabyInfo
=
(
data
)
=>
api
.
post
(
'/c/user/saveBaby'
,
data
);
export
const
fetchUserJSON
=
()
=>
api
.
get
(
'/c/front/content'
,{
type
:
'my'
});
/** 查询用户是否参与生育补贴和鹤礼2.0*/
export
const
checkParticipation
=
(
data
)
=>
api
.
get
(
'/c/fertility/index'
,
data
);
\ No newline at end of file
components/pointRightsCom/monthGift.vue
View file @
f14d39db
...
...
@@ -2976,35 +2976,35 @@
background: linear-gradient(135deg, #503404, #6a4505);
color: #fff;
box-shadow: 0 2rpx 8rpx rgba(80, 52, 4, 0.3);
opacity: 0.7;
//
opacity: 0.7;
}
&.buy-btn-purchased-platinum {
background: linear-gradient(135deg, #284a6c, #3a5e80);
color: #fff;
box-shadow: 0 2rpx 8rpx rgba(40, 74, 108, 0.3);
opacity: 0.7;
//
opacity: 0.7;
}
&.buy-btn-purchased-diamond {
background: linear-gradient(135deg, #503404, #6a4505);
color: #fff;
box-shadow: 0 2rpx 8rpx rgba(80, 52, 4, 0.3);
opacity: 0.7;
//
opacity: 0.7;
}
&.buy-btn-purchased-starlight {
background: linear-gradient(135deg, #503404, #6a4505);
color: #fff;
box-shadow: 0 2rpx 8rpx rgba(80, 52, 4, 0.3);
opacity: 0.7;
//
opacity: 0.7;
}
&.buy-btn-purchased-starshine {
background: linear-gradient(135deg, #f7d1a0, #f9dca8);
color: #000;
box-shadow: 0 2rpx 8rpx rgba(247, 209, 160, 0.3);
opacity: 0.7;
//
opacity: 0.7;
}
&.buy-btn-locked-gold {
...
...
mock/home.json
View file @
f14d39db
This diff is collapsed.
Click to expand it.
mock/integral.json
View file @
f14d39db
This diff is collapsed.
Click to expand it.
mock/my.json
View file @
f14d39db
...
...
@@ -234,6 +234,24 @@
}],
"tool"
:
[
[{
"link"
:
{
"extra"
:
{},
"type"
:
3
,
"url"
:
"https://momuat.feihe.com/activity-platform/marketingActivity?source=xmhmini"
},
"title"
:
"生育补贴"
,
"desc"
:
"生育补贴"
,
"bgUrl"
:
"my/icon_sybt_lab.png"
},
{
"link"
:
{
"extra"
:
{},
"type"
:
3
,
"url"
:
"https://momuat.feihe.com/activity-platform/craneGiftActivity?source=xmhmini"
},
"title"
:
"鹤礼爱心"
,
"desc"
:
"鹤礼爱心"
,
"bgUrl"
:
"my/icon_hlax_lab.png"
},
{
"link"
:
{
"extra"
:
{},
"type"
:
1
,
...
...
@@ -323,12 +341,6 @@
],
"specialAttentionOptions"
:
[
"过敏"
,
"长肉"
,
"肠道"
,
"消化"
,
"脑发育"
],
"activeInfo"
:
[{
"img"
:
"https://course.feihe.com/momclub-picture/my/20250915002.png"
,
"extra"
:
{},
"type"
:
1
,
"title"
:
"915专题活动"
,
"url"
:
"/activity0915/act0915/act0915"
},
{
"img"
:
"https://course.feihe.com/momclub-picture/my/activeImg0911_1.png"
,
"extra"
:
{
"envVersion"
:
"release"
,
...
...
pages.json
View file @
f14d39db
...
...
@@ -216,6 +216,13 @@
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/heliaixinTools/heliaixinTools"
,
"style"
:
{
"navigationBarTitleText"
:
"鹤礼爱心"
}
}
],
"subPackages"
:
[
...
...
pages/heliaixinTools/heliaixinTools.vue
0 → 100644
View file @
f14d39db
<
template
>
<view
class=
"hlaxPage"
>
<view
class=
"hlax_bg"
></view>
<image
class=
"hlax_bg"
:src=
"$baseUrl + 'heliaixinTool/hlax_bg.png'"
mode=
"aspectFill"
/>
<image
class=
"hlax_btn"
:src=
"$baseUrl + 'heliaixinTool/btn_go_see.png'"
v-if=
"toolCfg.link?.go_see"
@
click=
"onTips"
/>
</view>
</
template
>
<
script
setup
>
import
{
ref
,
onMounted
,
getCurrentInstance
,
computed
}
from
"vue"
;
import
{
usePageCfgStore
}
from
"@/stores/pageCfg"
;
const
{
proxy
}
=
getCurrentInstance
();
const
$baseUrl
=
proxy
.
$baseUrl
;
const
pageCfgStore
=
usePageCfgStore
();
const
toolCfg
=
computed
(()
=>
pageCfgStore
?.
toolList
.
find
((
item
)
=>
item
.
title
==
"鹤礼爱心"
)
||
{}
);
onMounted
(()
=>
{})
//点击去查看按钮提示
const
onTips
=
()
=>
{
console
.
log
(
"toolCfg:::"
,
toolCfg
);
uni
.
showToast
({
title
:
'可去'
+
toolCfg
.
value
?.
link
?.
channelName
+
'渠道查看'
,
icon
:
"none"
})
}
</
script
>
<
style
lang=
"less"
scoped
>
.hlax_bg {
position: absolute;
width: 750rpx;
height: 1624rpx;
top: 0rpx;
left: 0rpx;
}
.hlax_btn {
position: absolute;
width: 465rpx;
height: 120rpx;
top: 1454rpx;
left: 143rpx;
}
</
style
>
\ No newline at end of file
pages/middlePage/middlePage.vue
View file @
f14d39db
...
...
@@ -16,7 +16,7 @@ const $baseUrl = proxy.$baseUrl
const
jumpFailed
=
ref
(
false
)
const
errorMessage
=
ref
(
''
)
const
jumpParams
=
ref
({})
const
bgImg
=
ref
(
''
)
const
bgImg
=
ref
(
'
middlePage/middleBg.png
'
)
// const bgImgObj = {
// 'sy': 'thirdJumpMiddlePage/v1/syJumpPageBg.jpg'
...
...
@@ -39,15 +39,17 @@ onMounted(() => {
type
:
options
.
type
,
embedded
:
options
.
embedded
,
}
setTimeout
(()
=>
{
// 执行跳转
executeJump
()
},
30
)
})
// 执行跳转
const
executeJump
=
()
=>
{
const
jumpData
=
{
type
:
jumpParams
.
value
.
type
*
1
,
type
:
jumpParams
.
value
.
type
*
1
,
url
:
jumpParams
.
value
.
path
,
extra
:
{
appId
:
jumpParams
.
value
.
appId
,
...
...
@@ -70,20 +72,20 @@ const retryJump = () => {
<
style
lang=
"less"
scoped
>
.third-jump-page {
background: white;
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
padding: 40rpx;
overflow: hidden;
position: absolute;
}
.bg-img {
width: 100%;
width: 750rpx;
height: 1624rpx;
position: absolute;
top: 0;
bottom: 0;
left: 0;
margin: auto;
z-index: 1;
}
</
style
>
stores/pageCfg.js
View file @
f14d39db
import
{
defineStore
}
from
"pinia"
;
import
{
fetchUserJSON
}
from
"@/api/user"
;
import
{
defineStore
}
from
"pinia"
;
import
{
fetchUserJSON
,
checkParticipation
}
from
"@/api/user"
;
import
{
useUserStore
}
from
"./user"
;
// 渠道名称配置
export
const
CHANNELS
=
{
hl2dsTM
:
'天猫'
,
hl2dsJD
:
'京东'
,
hl2dsDY
:
'抖音'
,
hl2dsPDD
:
'拼多多'
,
hl2dsVIP
:
'唯品会'
,
hl2dsKS
:
'快手'
,
hl2dsWS
:
'微商城'
,
hl2dsTMC
:
'猫超'
,
hl2dsXHS
:
'小红书'
};
// 获取渠道名称
export
function
getChannelName
(
code
)
{
return
CHANNELS
[
code
]
||
'线上报名'
;
}
export
const
usePageCfgStore
=
defineStore
(
"pageCfg"
,
{
state
:
()
=>
{
...
...
@@ -17,7 +43,9 @@ export const usePageCfgStore = defineStore("pageCfg", {
},
actions
:
{
async
fetchCfg
()
{
const
{
data
}
=
await
fetchUserJSON
();
const
{
data
}
=
await
fetchUserJSON
();
// const data = {
// "wheelOptionsYZ": [
...
...
@@ -455,6 +483,50 @@ export const usePageCfgStore = defineStore("pageCfg", {
if
(
!
data
)
return
;
this
.
toolList
=
data
?.
tool
?.[
0
]
||
[];
//-----------这部分是专门判断"生育补贴"和"鹤礼爱心"的逻辑-------------
const
memberId
=
useUserStore
().
userInfo
?.
memberId
;
const
res
=
await
checkParticipation
()
console
.
log
(
"生育补贴和鹤礼爱心是否参与::::"
,
res
);
if
(
memberId
==
'not_login'
||
!
res
.
data
?.
fertilityJoined
)
{
//未登录或者未参与,就删除生育补贴配置项,不展示
this
.
toolList
=
this
.
toolList
.
filter
(
item
=>
item
.
title
!==
"生育补贴"
);
}
if
(
memberId
!=
'not_login'
&&
res
.
data
?.
v2Joined
)
{
//已登录并且已报名
if
(
res
.
data
?.
channel
==
"DS"
)
{
//DS:表示线上报名,跳转链接换成本地页面的路径,并且有去查看按钮
let
channelName
=
getChannelName
(
res
.
data
?.
dsPlatform
);
this
.
toolList
=
this
.
toolList
.
map
(
item
=>
item
.
title
===
"鹤礼爱心"
?
{
...
item
,
link
:
{
...
item
.
link
,
type
:
1
,
// type=1跳转本地页面
url
:
"/pages/heliaixinTools/heliaixinTools"
,
go_see
:
true
,
//有“去查看”按钮
channelName
:
channelName
,
//报名渠道的名称
}
}
:
item
);
}
else
{
//线下报名,正常跳转,不用处理
}
}
else
{
//未登录或者未报名,跳转链接换成本地页面的链接
this
.
toolList
=
this
.
toolList
.
map
(
item
=>
item
.
title
===
"鹤礼爱心"
?
{
...
item
,
link
:
{
...
item
.
link
,
type
:
1
,
// type=1跳转本地页面
url
:
"/pages/heliaixinTools/heliaixinTools"
}
}
:
item
);
}
console
.
log
(
"toolList---------::"
,
this
.
toolList
)
//-----------这部分是专门判断"生育补贴"和"鹤礼爱心"的逻辑-------------
this
.
contentCfg
=
data
.
contentCfg
;
this
.
wheelOptionsYL
=
data
.
wheelOptionsYL
;
this
.
wheelOptionsYZ
=
data
.
wheelOptionsYZ
;
...
...
views/My.vue
View file @
f14d39db
...
...
@@ -282,13 +282,6 @@ const handleToolClick = async (item) => {
// }
}
};
//跳转到ai取名页面
// const toAiNaming = () => {
// jump({
// type: JumpType.INNER,
// url: "/pages/naming/naming",
// })
// };
// 编辑个人资料
const
handleEditProfile
=
(
e
)
=>
{
...
...
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