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
6f176047
Commit
6f176047
authored
Sep 10, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3个工具去掉授权
parent
d40e0452
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
home.json
mock/home.json
+6
-0
Home.vue
views/Home.vue
+1
-1
My.vue
views/My.vue
+3
-2
No files found.
mock/home.json
View file @
6f176047
...
...
@@ -120,6 +120,12 @@
},
"channelTabListMianTitle"
:
"有声频道"
,
"swiperList"
:
[
{
"videoUrl"
:
"homepage/homeSwiper/V1/9_1.mp4"
,
"link"
:
{},
"title"
:
"教师节banner"
,
"url"
:
"homepage/homeSwiper/V1/9.gif"
},
{
"img"
:
"homepage/homeSwiper/V1/7.jpg"
,
"link"
:
{
...
...
views/Home.vue
View file @
6f176047
...
...
@@ -58,7 +58,7 @@
<swiper-item
v-for=
"(item, index) in toolList.tools"
:key=
"index"
:class=
"['swiperItem',
{ 'active': currentIndex === index }]">
<view
class=
"tool"
>
<button
v-if=
"homeStore && !homeStore.isLogin && item.title!='星妈起名' && item.title!='体质测试'"
<button
v-if=
"homeStore && !homeStore.isLogin && item.title!='星妈起名'
&& item.title!='喂养工具' && item.title!='产检提醒' && item.title!='宝宝生长测评'
&& item.title!='体质测试'"
open-type=
"getPhoneNumber"
@
getphonenumber=
"onGetPhoneNumber"
class=
"sq_btn"
></button>
<image
class=
"tool_bg"
:src=
"$baseUrl + item.icon"
@
tap=
"handleToolClick(item)"
>
</image>
...
...
views/My.vue
View file @
6f176047
...
...
@@ -100,8 +100,9 @@
<view
class=
"tool-list"
>
<view
class=
"tool-item"
v-for=
"item in toolList"
:key=
"item.title"
@
click=
"handleToolClick(item)"
>
<image
class=
"tool-icon"
:src=
"$baseUrl + item.bgUrl"
mode=
"aspectFit"
/>
<!-- || item.title == '产检提醒' || item.title == '喂养记录' || item.title == '生长测评' -->
<button
v-if=
"(item.title == '医生问诊'
|| item.title == '产检提醒' || item.title == '喂养记录' || item.title == '生长测评'
) && !cfgStatus.isRegister"
v-if=
"(item.title == '医生问诊') && !cfgStatus.isRegister"
class=
"tool-btn-register"
type=
"primary"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getRealtimePhoneNumber"
/>
</view>
...
...
@@ -268,7 +269,7 @@ const handleToolClick = async (item) => {
}
// 三个工具校验是否授权
else
if
(
item
.
title
===
"生长测评"
||
item
.
title
===
"喂养记录"
||
item
.
title
===
"产检提醒"
)
{
if
(
!
cfgStatus
.
value
.
isRegister
)
return
;
//
if (!cfgStatus.value.isRegister) return;
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
});
}
else
{
...
...
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