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
803d409c
Commit
803d409c
authored
Aug 05, 2025
by
weishengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(My): 移除未使用的代码块
- 注释掉获取宝宝信息的代码 - 删除与产检提醒、喂养记录和生长测评相关的冗余逻辑 - 简化了 handleToolClick 函数,移除了不必要的条件判断
parent
970912f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
59 deletions
+1
-59
My.vue
views/My.vue
+1
-59
No files found.
views/My.vue
View file @
803d409c
...
@@ -187,7 +187,7 @@ const handleToolClick = async (item) => {
...
@@ -187,7 +187,7 @@ const handleToolClick = async (item) => {
// 跳转产检提醒页面判断
// 跳转产检提醒页面判断
let
listData
=
userStore
.
babyInfo
?
userStore
.
babyInfo
.
allBabyBaseInfo
:
[]
//
let listData = userStore.babyInfo ? userStore.babyInfo.allBabyBaseInfo : []
if
(
item
.
title
===
"医生问诊"
)
{
if
(
item
.
title
===
"医生问诊"
)
{
if
(
!
cfgStatus
.
value
.
isRegister
)
return
;
if
(
!
cfgStatus
.
value
.
isRegister
)
return
;
...
@@ -220,63 +220,6 @@ const handleToolClick = async (item) => {
...
@@ -220,63 +220,6 @@ const handleToolClick = async (item) => {
},
},
},
},
});
});
}
else
if
(
item
.
title
===
"产检提醒"
){
if
(
!
cfgStatus
.
value
.
isRegister
)
return
;
if
(
listData
.
length
>
0
){
const
hasPregnancy
=
listData
.
some
(
item
=>
item
.
babyStage
===
1
&&
item
.
selected
===
true
)
console
.
log
(
hasPregnancy
,
'hasPregnancy'
)
if
(
hasPregnancy
){
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
});
}
else
{
uni
.
showToast
({
title
:
"需要是孕中状态才可以进入哦"
,
icon
:
"none"
,
});
}
}
else
{
uni
.
showToast
({
title
:
"需要是孕中状态才可以进入哦"
,
icon
:
"none"
,
});
}
}
else
if
(
item
.
title
===
"喂养记录"
)
{
if
(
!
cfgStatus
.
value
.
isRegister
)
return
;
if
(
listData
.
length
>
0
)
{
const
hasBirth
=
listData
.
some
(
item
=>
item
.
babyStage
===
2
&&
item
.
selected
===
true
)
console
.
log
(
hasBirth
,
listData
,
'hasBirth'
)
if
(
hasBirth
)
{
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
});
}
else
{
uni
.
showToast
({
title
:
"需要已生育宝宝的状态才可以进入哦"
,
icon
:
"none"
,
});
}
}
else
{
uni
.
showToast
({
title
:
"需要已生育宝宝的状态才可以进入哦"
,
icon
:
"none"
,
});
}
}
else
if
(
item
.
title
===
'生长测评'
){
if
(
!
cfgStatus
.
value
.
isRegister
)
return
;
if
(
listData
.
length
>
0
){
const
hasPregnancy
=
listData
.
some
(
item
=>
item
.
babyStage
===
2
&&
item
.
selected
===
true
)
if
(
hasPregnancy
){
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
});
}
else
{
uni
.
showToast
({
title
:
"需要已生育宝宝的状态才可以进入哦"
,
icon
:
"none"
,
});
}
}
else
{
uni
.
showToast
({
title
:
"需要已生育宝宝的状态才可以进入哦"
,
icon
:
"none"
,
});
}
}
else
{
}
else
{
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
});
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
});
// const extra = item.link.extra;
// const extra = item.link.extra;
...
@@ -287,7 +230,6 @@ const handleToolClick = async (item) => {
...
@@ -287,7 +230,6 @@ const handleToolClick = async (item) => {
// }
// }
}
}
};
};
//跳转到ai取名页面
//跳转到ai取名页面
// const toAiNaming = () => {
// const toAiNaming = () => {
// jump({
// jump({
...
...
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