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
eb0f1699
Commit
eb0f1699
authored
Aug 22, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66666
parent
6014c4be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
9 deletions
+28
-9
shengrili.vue
components/quanyi/shengrili.vue
+9
-1
Integral.vue
views/Integral.vue
+19
-8
No files found.
components/quanyi/shengrili.vue
View file @
eb0f1699
...
...
@@ -192,8 +192,16 @@ onMounted(async () => {
islogin
.
value
=
true
}
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
&&
userStore
.
babyInfo
?.
allBabyBaseInfo
.
length
>
0
){
hasBaby
.
value
=
true
;
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
some
(
baby
=>
baby
.
babyStage
==
2
))
{
hasBaby
.
value
=
true
;
}
else
{
hasBaby
.
value
=
false
;
return
;
}
}
else
{
hasBaby
.
value
=
false
;
return
;
...
...
views/Integral.vue
View file @
eb0f1699
...
...
@@ -1585,17 +1585,28 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
//babyStage 宝宝阶段 0备用 1孕中 2出生 ,null无数据
const
gotoAddBaby
=
()
=>
{
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
length
==
3
){
//判断状态并切换
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
some
(
baby
=>
baby
.
babyStage
==
2
))
{
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
some
(
baby
=>
baby
.
babyStage
===
2
))
{
navigateTo
(
"/pages/person/person?type=add"
);
}
else
{
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
length
==
3
){
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
some
(
baby
=>
baby
.
babyStage
==
1
))
{
const
baby
=
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
find
(
baby
=>
baby
.
babyStage
==
1
);
if
(
baby
)
{
navigateTo
(
`/pages/person/person?type=edit&id=${baby.id
}
`
);
}
}
else
{
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
some
(
baby
=>
baby
.
babyStage
==
0
)){
//跳转2状态的编辑页
const
baby
=
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
find
(
baby
=>
baby
.
babyStage
==
0
);
if
(
baby
)
{
navigateTo
(
`/pages/person/person?type=edit&id=${baby.id
}
`
);
}
}
}
}
else
{
navigateTo
(
"/pages/person/person?type=add"
);
}
}
else
{
navigateTo
(
"/pages/person/person?type=add"
);
}
}
}
...
...
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