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
4063e012
Commit
4063e012
authored
Jul 29, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6666666
parent
b83d595c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
14 deletions
+28
-14
shengzhangTools.js
api/shengzhangTools.js
+2
-0
shengzhangTestResult.vue
pages/shengzhangTestResult/shengzhangTestResult.vue
+16
-8
shengzhangTools.vue
pages/shengzhangTools/shengzhangTools.vue
+7
-3
shengzhangResult.js
stores/shengzhangResult.js
+1
-1
My.vue
views/My.vue
+2
-2
No files found.
api/shengzhangTools.js
View file @
4063e012
...
...
@@ -16,4 +16,6 @@ export const assessmentSave = (data) => api.post('/c/growth/assessment/save', da
export
const
getGrowthCurveData
=
(
babyData
)
=>
api
.
post
(
'/c/growth/curve/data'
,
babyData
);
export
const
getGrowthHistoryList
=
()
=>
api
.
post
(
'/c/growth/history/list'
);
export
const
getGrowthAssessmentDetail
=
(
assessmentId
)
=>
api
.
post
(
'/c/growth/assessment/detail'
,
{
assessmentId
});
// export const fetchHomeJSON = () => api.get('/c/front/content',{type:'home'});
\ No newline at end of file
pages/shengzhangTestResult/shengzhangTestResult.vue
View file @
4063e012
...
...
@@ -297,7 +297,7 @@ import { ref, onMounted } from 'vue'
import
{
onLoad
}
from
"@dcloudio/uni-app"
;
import
{
useShengzhangStore
}
from
'../../stores/shengzhangResult.js'
;
import
{
formatDate
,
jump
,
JumpType
}
from
'../../utils/index.js'
;
import
{
getGrowthHistoryList
}
from
'../../api/shengzhangTools'
;
import
{
getGrowthHistoryList
,
getGrowthAssessmentDetail
}
from
'../../api/shengzhangTools'
;
import
ShengzhangQuxianTipsPopup
from
'../../components/shengzhangQuxianTipsPopup.vue'
;
const
isRecords
=
ref
(
false
);
...
...
@@ -433,7 +433,6 @@ const generateCurveData1 = (lineData, type, arrayName, minOrMax) =>{
point
[
type
]
=
minOrMax
===
'min'
?
element
?.[
arrayName
]?.
min
:
element
?.[
arrayName
]?.
max
data
.
push
(
point
);
});
return
data
;
}
// slightHighRange
...
...
@@ -558,13 +557,13 @@ const getYAxisLabel = () => {
*/
const
getYTicks
=
()
=>
{
if
(
activeCurveTab
.
value
===
'height'
)
{
return
[
40
,
50
,
60
,
70
,
80
,
90
,
100
]
return
[
40
,
50
,
60
,
70
,
80
,
90
,
100
,
110
,
120
,
130
,
140
,
150
,
160
,
170
]
}
else
if
(
activeCurveTab
.
value
===
'weight'
)
{
return
[
0
,
3
,
6
,
9
,
12
,
15
,
18
]
return
[
0
,
5
,
10
,
15
,
20
,
25
,
30
,
35
,
40
,
45
,
50
]
}
else
if
(
activeCurveTab
.
value
===
'head'
)
{
return
[
0
,
3
,
6
,
9
,
12
,
15
,
18
]
return
[
20
,
25
,
30
,
35
,
40
,
45
,
50
,
55
,
60
]
}
return
[
40
,
50
,
60
,
70
,
80
,
90
,
100
]
return
[
40
,
50
,
60
,
70
,
80
,
90
,
100
,
110
,
120
,
130
,
140
,
150
,
160
,
170
]
}
// 显示生长曲线提示
...
...
@@ -660,7 +659,16 @@ onMounted(async () => {
const
shengzhangStore
=
useShengzhangStore
();
if
(
isRecords
.
value
){
if
(
historyListData
.
success
){
shengzhangInfo
=
historyListData
.
data
[
0
];
if
(
historyListData
.
data
&&
historyListData
.
data
.
length
>
0
){
shengzhangInfo
=
historyListData
.
data
[
0
];
const
detailData
=
await
getGrowthAssessmentDetail
(
shengzhangInfo
.
id
);
if
(
detailData
.
success
){
shengzhangInfo
=
detailData
.
data
;
}
}
}
const
babyDataHeight
=
{
...
...
@@ -711,7 +719,7 @@ onMounted(async () => {
curveDataPostWeight
.
value
=
shengzhangStore
.
getGrowthCurveDataInfoWeight
.
curveData
;
curveDataPostHead
.
value
=
shengzhangStore
.
getGrowthCurveDataInfoHead
.
curveData
;
console
.
log
(
'curveDataPostHeight.value='
,
curveDataPostHeight
.
value
);
standardCurves
.
value
=
{
height
:
{
// slightlyLow: generateCurveData(45, 105, 'height'),
...
...
pages/shengzhangTools/shengzhangTools.vue
View file @
4063e012
...
...
@@ -25,7 +25,7 @@
<!-- 顶部宝宝信息区域 -->
<view
class=
"baby-info-section"
>
<view
class=
"baby-avatar"
>
<image
class=
"avatar-img"
:src=
"
`$
{$baseUrl}${babyAvatar}
`" mode="aspectFill">
</image>
<image
class=
"avatar-img"
:src=
"
babyAvatar ? babyAvatar : `https://course.feihe.com/momclub-picture/common/default_avatar.png
`"
mode=
"aspectFill"
></image>
</view>
<view
class=
"baby-details"
>
<view
class=
"baby-name-row"
>
...
...
@@ -231,6 +231,7 @@ import { growthHome, guideCompleted, getGrowthCurveData } from '../../api/shengz
import
{
onLoad
}
from
"@dcloudio/uni-app"
;
import
{
throttleTap
,
jump
,
JumpType
,
formatDate
}
from
'../../utils/index.js'
;
import
{
useShengzhangStore
}
from
'../../stores/shengzhangResult.js'
;
import
{
useUserStore
}
from
"@/stores/user"
;
const
swiperData
=
ref
([
{
bannerImg
:
`shengzhangTool/1001/banner1.png`
},
...
...
@@ -396,8 +397,8 @@ const submitData = throttleTap(async () => {
await
shengzhangStore
.
assessmentSave
(
submitData
);
const
data11
=
await
shengzhangStore
.
assessmentSave
(
submitData
);
console
.
log
(
'data11='
,
data11
);
const
babyDataHeight
=
{
babyId
:
babyId
.
value
,
...
...
@@ -576,6 +577,9 @@ onLoad((options) => {
})
onMounted
(
async
()
=>
{
const
userStore
=
useUserStore
();
babyId
.
value
=
userStore
.
babyInfo
?.
content
?.
id
;
console
.
log
(
'babyId.value='
,
babyId
.
value
);
const
{
data
}
=
await
growthHome
(
babyId
.
value
);
// const data = {"babyId":1234,"babyName":"小强","gender":"M","monthAge":3,"avatar":"https://momclub.feihe.com/pmall/momclub-picture/integral/1009/yuerBtn.png","birthDate":"2018-10-28 14:06:45","guideFlag":false};
...
...
stores/shengzhangResult.js
View file @
4063e012
...
...
@@ -26,8 +26,8 @@ export const useShengzhangStore = defineStore("shengzhangInfo", {
async
assessmentSave
(
submitData
)
{
const
data
=
await
assessmentSave
(
submitData
);
data
.
data
.
success
=
data
.
success
;
if
(
data
.
success
){
data
.
data
.
success
=
data
.
success
;
this
.
setShengzhangInfo
(
data
.
data
);
}
},
...
...
views/My.vue
View file @
4063e012
...
...
@@ -449,14 +449,14 @@ onMounted(async () => {
babyId
.
value
=
userStore
.
babyInfo
?.
allBabyBaseInfo
.
find
(
(
item
)
=>
item
.
selected
)?.
id
;
console
.
log
(
'babyIdsdfsdfsdfsdfsdfsdfdsfsdf='
,
babyId
.
value
);
const
a
=
{
"bgUrl"
:
"my/babytest.png"
,
"desc"
:
"生长测评"
,
"link"
:
{
"extra"
:
{
babyId
:
babyId
.
value
},
"type"
:
1
,
"url"
:
"/pages/shengzhangTools/shengzhangTools"
"url"
:
"/pages/shengzhangTools/shengzhangTools
?babyId=
"
},
"title"
:
"生长测评"
}
...
...
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