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
40699575
Commit
40699575
authored
Sep 02, 2025
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: backup
parent
2f99e2c5
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4193 additions
and
4019 deletions
+4193
-4019
popup-tip.vue
components/popup-tip/popup-tip.vue
+8
-1
feedingIndex.vue
pages/feedingIndex/feedingIndex.vue
+4143
-4008
postnatalCheckUp.vue
pages/postnatalCheckUp/postnatalCheckUp.vue
+24
-3
shengzhangTestResult.vue
pages/shengzhangTestResult/shengzhangTestResult.vue
+16
-6
shengzhangTools.vue
pages/shengzhangTools/shengzhangTools.vue
+2
-1
No files found.
components/popup-tip/popup-tip.vue
View file @
40699575
...
...
@@ -161,7 +161,14 @@ const onAdd = () => {
modifyState
()
break
;
case
'3'
:
uni
.
navigateBack
()
if
(
getCurrentPages
().
length
>
1
)
{
uni
.
navigateBack
()
}
else
{
uni
.
reLaunch
({
url
:
'/pages/index/index'
})
}
break
;
default
:
break
;
...
...
pages/feedingIndex/feedingIndex.vue
View file @
40699575
This diff is collapsed.
Click to expand it.
pages/postnatalCheckUp/postnatalCheckUp.vue
View file @
40699575
...
...
@@ -114,7 +114,9 @@
</view>
<!-- 提示弹窗 -->
<popup-tip
v-if=
"isTip"
type=
"2"
@
statusChange=
"onBabyChange"
@
close=
"isTip = false"
></popup-tip>
<popup-tip
v-if=
"isTip"
type=
"2"
@
statusChange=
"onBabyChange"
@
afterPhone=
"isShowRegisterLayer = true"
:isNotLogin=
"isNotLogin"
@
close=
"isTip = false"
></popup-tip>
<RegisterLayer
v-model=
"isShowRegisterLayer"
@
confirm=
"onRegisterConfirm"
/>
<!-- 使用封装后的日期选择器组件 -->
<DatePicker
v-model:visible=
"visible"
:default-date=
"time"
@
confirm=
"handleDateConfirm"
/>
...
...
@@ -151,6 +153,7 @@ import {
}
from
'../../api/obstetric.js'
;
// 导入日期选择器组件
import
DatePicker
from
'@/components/DatePicker.vue'
import
RegisterLayer
from
'@/components/RegisterLayer.vue'
const
{
proxy
}
=
getCurrentInstance
();
...
...
@@ -169,6 +172,8 @@ const isWxNotification = ref(true)
// 提示弹窗
const
isTip
=
ref
(
false
)
const
isNotLogin
=
ref
(
false
);
const
isShowRegisterLayer
=
ref
(
false
)
// 弹窗控制
const
showPicker
=
ref
(
false
)
...
...
@@ -563,8 +568,19 @@ const onBabyChange = () => {
publicFn
()
}
// 公共函数
const
publicFn
=
()
=>
{
console
.
log
(
"🚀 ~ onShow ~ userStore:"
,
userStore
.
babyInfo
)
const
publicFn
=
async
()
=>
{
await
userStore
.
loadUserInfo
()
console
.
log
(
"🚀 ~ onShow ~ userStore:"
,
userStore
.
userInfo
)
isNotLogin
.
value
=
false
;
if
(
userStore
?.
userInfo
?.
memberId
&&
userStore
?.
userInfo
?.
memberId
==
"not_login"
||
!
userStore
.
userInfo
)
{
isNotLogin
.
value
=
true
;
}
const
babyInfo
=
userStore
.
babyInfo
if
(
babyInfo
&&
babyInfo
.
babyStage
==
1
)
{
isTip
.
value
=
false
...
...
@@ -578,6 +594,11 @@ const publicFn = () => {
isTip
.
value
=
true
}
}
const
onRegisterConfirm
=
async
()
=>
{
isShowRegisterLayer
.
value
=
false
;
await
userStore
.
loadBabyInfo
()
publicFn
()
}
onShow
(
async
()
=>
{
await
userStore
.
loadBabyInfo
()
console
.
log
(
'宝宝信息加载完成:'
,
userStore
.
babyInfo
)
...
...
pages/shengzhangTestResult/shengzhangTestResult.vue
View file @
40699575
...
...
@@ -307,7 +307,7 @@
</
template
>
<
script
setup
>
import
{
ref
,
onMounted
}
from
'vue'
import
{
ref
,
onMounted
,
getCurrentInstance
}
from
'vue'
import
{
onLoad
,
onShareAppMessage
}
from
"@dcloudio/uni-app"
;
import
{
useShengzhangStore
}
from
'../../stores/shengzhangResult.js'
;
import
{
formatDate
,
jump
,
JumpType
}
from
'../../utils/index.js'
;
...
...
@@ -320,7 +320,8 @@ import md from '../../md';
const
isRecords
=
ref
(
false
);
const
shareText
=
ref
(
''
)
const
{
proxy
}
=
getCurrentInstance
();
const
$baseUrl
=
proxy
.
$baseUrl
;
onLoad
((
options
)
=>
{
isRecords
.
value
=
options
.
isRecords
;
// activeTab.value = isRecords.value ? 'history' : 'latest';
...
...
@@ -699,9 +700,9 @@ const backFailHandler = () => {
onShareAppMessage
(()
=>
{
return
{
title
:
shareText
.
value
,
title
:
shareText
.
value
||
"生长测评:精准评估宝宝发育水平"
,
path
:
`/pages/shengzhangTestResult/shengzhangTestResult`
,
imageUrl
:
''
imageUrl
:
$baseUrl
+
"share/shengzhang.png"
,
}
})
...
...
@@ -713,7 +714,16 @@ onMounted(async () => {
xcxPage
:
"测评结果页"
,
pageName
:
"测评结果页"
});
const
userStore
=
useUserStore
();
console
.
log
(
userStore
.
babyInfo
?.
content
?.
id
+
'--------------------'
,
shengzhangStore
?.
getGrowthCurveDataInfoHeight
?.
userDataPoints
)
if
(
!
userStore
.
babyInfo
?.
content
?.
id
||
!
shengzhangStore
?.
getGrowthCurveDataInfoHeight
?.
userDataPoints
){
jump
({
type
:
JumpType
.
INNER
,
url
:
"/pages/shengzhangTools/shengzhangTools"
})
return
;
}
//获取历史记录
const
historyListData
=
await
getGrowthHistoryList
();
...
...
@@ -761,7 +771,7 @@ onMounted(async () => {
}
}
const
userStore
=
useUserStore
();
const
babyId
=
userStore
.
babyInfo
?.
content
?.
id
;
const
babyDataHeight
=
{
...
...
pages/shengzhangTools/shengzhangTools.vue
View file @
40699575
...
...
@@ -802,14 +802,15 @@ const babyRefresh = async () => {
const
userStore
=
useUserStore
();
const
babyInfo
=
userStore
.
babyInfo
;
isNotLogin
.
value
=
false
;
isTip
.
value
=
false
if
(
userStore
?.
userInfo
?.
memberId
&&
userStore
?.
userInfo
?.
memberId
==
"not_login"
||
!
userStore
.
userInfo
)
{
isNotLogin
.
value
=
true
;
}
console
.
log
(
babyInfo
?.
babyStage
+
'--------------------'
,
babyInfo
)
if
(
babyInfo
&&
babyInfo
.
babyStage
==
2
)
{
isTip
.
value
=
false
await
refreshBabyInfo
();
...
...
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