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
a8babdb1
Commit
a8babdb1
authored
Jul 30, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feeding
parent
bbc2edb5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
483 additions
and
323 deletions
+483
-323
feedingAnalysis.vue
pages/feedingAnalysis/feedingAnalysis.vue
+259
-202
feedingIndex.vue
pages/feedingIndex/feedingIndex.vue
+69
-48
feedingRecord.vue
pages/feedingRecord/feedingRecord.vue
+153
-72
feed.js
stores/feed.js
+2
-1
No files found.
pages/feedingAnalysis/feedingAnalysis.vue
View file @
a8babdb1
This diff is collapsed.
Click to expand it.
pages/feedingIndex/feedingIndex.vue
View file @
a8babdb1
This diff is collapsed.
Click to expand it.
pages/feedingRecord/feedingRecord.vue
View file @
a8babdb1
This diff is collapsed.
Click to expand it.
stores/feed.js
View file @
a8babdb1
...
...
@@ -26,12 +26,13 @@ export const useFeedStore = defineStore("feed", {
* 处理宝宝列表数据
*/
processBabyList
(
data
)
{
if
(
data
.
allBabyBaseInfo
&&
Array
.
isArray
(
data
.
allBabyBaseInfo
))
{
// 转换接口数据格式为组件需要的格式
this
.
babyList
=
data
.
allBabyBaseInfo
.
map
(
baby
=>
({
id
:
baby
.
id
,
name
:
baby
.
babyName
||
baby
.
content
?.
babyName
||
'未命名'
,
avatar
:
baby
.
content
?.
babyAvatar
||
'/static/feedingIndex/v1/avatar.png'
,
avatar
:
baby
.
content
?.
babyAvatar
,
gender
:
baby
.
content
?.
babyGender
,
birthday
:
baby
.
content
?.
babyBirthday
,
babyStage
:
baby
.
babyStage
,
...
...
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