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
e8609ce3
Commit
e8609ce3
authored
Sep 24, 2025
by
chenkai@duiba.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增东北真行乡村振兴篇+我的页面工具显示优化
parent
8761576f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
home.json
mock/home.json
+18
-6
pageCfg.js
stores/pageCfg.js
+7
-5
No files found.
mock/home.json
View file @
e8609ce3
...
@@ -113,7 +113,24 @@
...
@@ -113,7 +113,24 @@
},
},
"channelTabListMianTitle"
:
"有声频道"
,
"channelTabListMianTitle"
:
"有声频道"
,
"swiperList"
:
[{
"swiperList"
:
[{
"videoUrl"
:
"homepage/homeSwiper/V1/dbzx.mp4"
,
"videoUrl"
:
""
,
"link"
:
{
"extra"
:
{
"envVersion"
:
"release"
,
"appId"
:
"wx4205ec55b793245e"
},
"type"
:
2
,
"url"
:
"/subPackages/shopMainList/topicNew/index?id=1001146"
},
"title"
:
"双节28会员日"
,
"url"
:
"homepage/homeSwiper/V1/13.jpg"
},
{
"videoUrl"
:
"homepage/homeSwiper/V1/lfdxs.mp4"
,
"link"
:
{},
"title"
:
"东北真行乡村振兴篇"
,
"url"
:
"homepage/homeSwiper/V1/lfdxs.jpg"
},
{
"videoUrl"
:
"homepage/homeSwiper/V1/dbzx1.mp4"
,
"link"
:
{},
"link"
:
{},
"title"
:
"东北真行"
,
"title"
:
"东北真行"
,
"url"
:
"homepage/homeSwiper/V1/dbzx.jpeg"
"url"
:
"homepage/homeSwiper/V1/dbzx.jpeg"
...
@@ -139,11 +156,6 @@
...
@@ -139,11 +156,6 @@
"type"
:
1
,
"type"
:
1
,
"title"
:
"北纬47°鲜活溯源之旅"
,
"title"
:
"北纬47°鲜活溯源之旅"
,
"url"
:
"homepage/homeSwiper/V1/7.jpg"
"url"
:
"homepage/homeSwiper/V1/7.jpg"
},
{
"videoUrl"
:
"homepage/homeSwiper/V1/12.mp4"
,
"link"
:
{},
"title"
:
"妈妈天生女主角"
,
"url"
:
"homepage/homeSwiper/V1/12.jpg"
}],
}],
"childrenInfoList"
:
[
"childrenInfoList"
:
[
[{
[{
...
...
stores/pageCfg.js
View file @
e8609ce3
...
@@ -482,20 +482,20 @@ export const usePageCfgStore = defineStore("pageCfg", {
...
@@ -482,20 +482,20 @@ export const usePageCfgStore = defineStore("pageCfg", {
if
(
!
data
)
return
;
if
(
!
data
)
return
;
this
.
toolList
=
data
?.
tool
?.[
0
]
||
[];
let
tools
=
data
?.
tool
?.[
0
]
||
[];
//-----------这部分是专门判断"生育补贴"和"鹤礼爱心"的逻辑-------------
//-----------这部分是专门判断"生育补贴"和"鹤礼爱心"的逻辑-------------
const
memberId
=
useUserStore
().
userInfo
?.
memberId
;
const
memberId
=
useUserStore
().
userInfo
?.
memberId
;
const
res
=
await
checkParticipation
()
const
res
=
await
checkParticipation
()
console
.
log
(
"生育补贴和鹤礼爱心是否参与::::"
,
res
);
console
.
log
(
"生育补贴和鹤礼爱心是否参与::::"
,
res
);
if
(
memberId
==
'not_login'
||
!
res
.
data
?.
fertilityJoined
)
{
//未登录或者未参与,就删除生育补贴配置项,不展示
if
(
memberId
==
'not_login'
||
!
res
.
data
?.
fertilityJoined
)
{
//未登录或者未参与,就删除生育补贴配置项,不展示
t
his
.
toolList
=
this
.
toolList
.
filter
(
item
=>
item
.
title
!==
"生育补贴"
);
t
ools
=
tools
.
filter
(
item
=>
item
.
title
!==
"生育补贴"
);
}
}
if
(
memberId
!=
'not_login'
&&
res
.
data
?.
v2Joined
)
{
//已登录并且已报名
if
(
memberId
!=
'not_login'
&&
res
.
data
?.
v2Joined
)
{
//已登录并且已报名
if
(
res
.
data
?.
channel
==
"DS"
)
{
//DS:表示线上报名,跳转链接换成本地页面的路径,并且有去查看按钮
if
(
res
.
data
?.
channel
==
"DS"
)
{
//DS:表示线上报名,跳转链接换成本地页面的路径,并且有去查看按钮
let
channelName
=
getChannelName
(
res
.
data
?.
dsPlatform
);
let
channelName
=
getChannelName
(
res
.
data
?.
dsPlatform
);
t
his
.
toolList
=
this
.
toolList
.
map
(
item
=>
t
ools
=
tools
.
map
(
item
=>
item
.
title
===
"鹤礼爱心"
?
{
item
.
title
===
"鹤礼爱心"
?
{
...
item
,
...
item
,
link
:
{
link
:
{
...
@@ -512,7 +512,7 @@ export const usePageCfgStore = defineStore("pageCfg", {
...
@@ -512,7 +512,7 @@ export const usePageCfgStore = defineStore("pageCfg", {
}
}
}
else
{
//未登录或者未报名,跳转链接换成本地页面的链接
}
else
{
//未登录或者未报名,跳转链接换成本地页面的链接
t
his
.
toolList
=
this
.
toolList
.
map
(
item
=>
t
ools
=
tools
.
map
(
item
=>
item
.
title
===
"鹤礼爱心"
?
{
item
.
title
===
"鹤礼爱心"
?
{
...
item
,
...
item
,
link
:
{
link
:
{
...
@@ -524,7 +524,9 @@ export const usePageCfgStore = defineStore("pageCfg", {
...
@@ -524,7 +524,9 @@ export const usePageCfgStore = defineStore("pageCfg", {
item
item
);
);
}
}
console
.
log
(
"toolList---------::"
,
this
.
toolList
)
console
.
log
(
"tools---------::"
,
tools
)
this
.
toolList
=
tools
;
//-----------这部分是专门判断"生育补贴"和"鹤礼爱心"的逻辑-------------
//-----------这部分是专门判断"生育补贴"和"鹤礼爱心"的逻辑-------------
this
.
contentCfg
=
data
.
contentCfg
;
this
.
contentCfg
=
data
.
contentCfg
;
...
...
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