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
283b4331
Commit
283b4331
authored
Sep 23, 2025
by
chenkai@duiba.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生育补贴、鹤礼2.0、月月礼样式调整
parent
9efae7be
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1745 additions
and
1930 deletions
+1745
-1930
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
pageCfg.js
stores/pageCfg.js
+530
-458
My.vue
views/My.vue
+0
-7
No files found.
api/user.js
View file @
283b4331
...
...
@@ -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 @
283b4331
...
...
@@ -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 @
283b4331
This diff is collapsed.
Click to expand it.
mock/integral.json
View file @
283b4331
This diff is collapsed.
Click to expand it.
mock/my.json
View file @
283b4331
...
...
@@ -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 @
283b4331
...
...
@@ -203,6 +203,13 @@
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/heliaixinTools/heliaixinTools"
,
"style"
:
{
"navigationBarTitleText"
:
"鹤礼爱心"
}
}
],
"subPackages"
:
[
...
...
pages/heliaixinTools/heliaixinTools.vue
0 → 100644
View file @
283b4331
<
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
stores/pageCfg.js
View file @
283b4331
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 @
283b4331
...
...
@@ -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