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
15385b49
Commit
15385b49
authored
Jul 22, 2025
by
weishengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口字段对接
parent
84c72061
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
903 additions
and
938 deletions
+903
-938
obstetric.js
api/obstetric.js
+54
-0
addPostnatal.vue
pages/addPostnatal/addPostnatal.vue
+88
-76
myReportCard.vue
pages/myReportCard/myReportCard.vue
+145
-208
postnatalCheckUp.vue
pages/postnatalCheckUp/postnatalCheckUp.vue
+172
-493
productionCalendar.vue
pages/productionCalendar/productionCalendar.vue
+89
-105
productionDetails.vue
pages/productionDetails/productionDetails.vue
+355
-56
icon26.png
static/chanjianTool/icon26.png
+0
-0
No files found.
api/obstetric.js
0 → 100644
View file @
15385b49
// 产检提醒模块相关接口
import
requestModule
from
'./request.js'
;
const
{
api
}
=
requestModule
;
/**
* 获取产检信息
* @returns
*/
export
const
getInfo
=
(
data
)
=>
api
.
get
(
'/maternity_checkup/home'
,
data
);
/**
* 产看产检详情
* @returns
*/
export
const
getDetail
=
(
data
)
=>
api
.
get
(
'/maternityCheckup/detail'
,
data
);
/**
* 删除报告单
* @returns
*/
export
const
getDelete
=
(
data
)
=>
api
.
get
(
'/maternityCheckup/delete'
,
data
);
/**
* 产检项目列表
* @returns
*/
export
const
getExaminationItems
=
(
data
)
=>
api
.
get
(
'/maternityCheckup/examinationItems'
,
data
);
/**
* 修改产检记录
* @returns
*/
export
const
getUpdate
=
(
data
)
=>
api
.
post
(
'/maternityCheckup/update'
,
data
);
/**
*
* /**
* 新增产检记录
* @returns
*/
export
const
getAdd
=
(
data
)
=>
api
.
post
(
'/maternityCheckup/add'
,
data
);
/**
* 我的报告单列表
* @returns
*/
export
const
getReportList
=
()
=>
api
.
get
(
'/maternityCheckup/reportList'
);
\ No newline at end of file
pages/addPostnatal/addPostnatal.vue
View file @
15385b49
This diff is collapsed.
Click to expand it.
pages/myReportCard/myReportCard.vue
View file @
15385b49
This diff is collapsed.
Click to expand it.
pages/postnatalCheckUp/postnatalCheckUp.vue
View file @
15385b49
This diff is collapsed.
Click to expand it.
pages/productionCalendar/productionCalendar.vue
View file @
15385b49
...
...
@@ -12,7 +12,7 @@
{{
info
.
name
}}
</view>
<view
class=
"info-r-b"
>
怀孕
{{
info
.
week
}}
周
怀孕
{{
info
.
gestationalWeeks
}}
周
</view>
</view>
</view>
...
...
@@ -24,23 +24,23 @@
11111
</view>
<view
class=
"con-list"
>
<view
class=
"con-list-item"
v-for=
"(item, index) in info.
listData
"
>
<view
class=
"con-list-item"
v-for=
"(item, index) in info.
checkupList"
:key=
"index"
@
click=
"onDetails(item.id)
"
>
<view
class=
"item-time"
>
<view
class=
""
>
第
{{
item
.
num
}}
次产检
第
{{
item
.
index
}}
次产检
</view>
<view
class=
""
>
产检时间:
{{
item
.
tim
e
}}
产检时间:
{{
item
.
checkupDat
e
}}
</view>
</view>
<view
class=
"item-line"
>
</view>
<view
class=
"item-week"
>
孕期
{{
item
.
w
eek
}}
周
孕期
{{
item
.
pregnancyW
eek
}}
周
</view>
<view
class=
"item-proect"
>
重点:
{{
getProject
(
item
.
project
)
}}
重点:
{{
getProject
(
item
.
examinationItems
)
}}
</view>
</view>
</view>
...
...
@@ -60,106 +60,17 @@
onLoad
}
from
'@dcloudio/uni-app'
import
{
throttleTap
throttleTap
,
dateFormatter
}
from
'@/utils/index.js'
;
import
{
getInfo
}
from
'../../api/obstetric.js'
;
// 获取当前时间
const
time
=
ref
(
dateFormatter
(
new
Date
(),
'yyyy-MM-dd'
));
// 用户信息
const
info
=
ref
({
name
:
'好宝宝的妈妈'
,
head
:
'https://course.feihe.com/momclub-picture/homepage/children/children_1.png'
,
week
:
'8'
,
listData
:[
{
isAdd
:
0
,
// 1 是 0 否
id
:
2
,
time
:
'2025-05-11'
,
num
:
'二'
,
// 产检次数
week
:
'5-6'
,
// 周数
status
:
'2'
,
//待产检、已过期、已产检,
// 产检项目
project
:
[{
name
:
'测量胎儿颈部透明层厚度(NT)'
,
id
:
1
},
{
name
:
'无创产前基因检测(NIPT)(非必查)'
,
id
:
2
}
]
},
{
isAdd
:
0
,
// 1 是 0 否
id
:
2
,
time
:
'2025-05-11'
,
num
:
'二'
,
// 产检次数
week
:
'5-6'
,
// 周数
status
:
'2'
,
//待产检、已过期、已产检,
// 产检项目
project
:
[{
name
:
'测量胎儿颈部透明层厚度(NT)'
,
id
:
1
},
{
name
:
'无创产前基因检测(NIPT)(非必查)'
,
id
:
2
}
]
},
{
isAdd
:
0
,
// 1 是 0 否
id
:
2
,
time
:
'2025-05-11'
,
num
:
'二'
,
// 产检次数
week
:
'5-6'
,
// 周数
status
:
'2'
,
//待产检、已过期、已产检,
// 产检项目
project
:
[{
name
:
'测量胎儿颈部透明层厚度(NT)'
,
id
:
1
},
{
name
:
'无创产前基因检测(NIPT)(非必查)'
,
id
:
2
}
]
},
{
isAdd
:
0
,
// 1 是 0 否
id
:
2
,
time
:
'2025-05-11'
,
num
:
'二'
,
// 产检次数
week
:
'5-6'
,
// 周数
status
:
'2'
,
//待产检、已过期、已产检,
// 产检项目
project
:
[{
name
:
'测量胎儿颈部透明层厚度(NT)'
,
id
:
1
},
{
name
:
'无创产前基因检测(NIPT)(非必查)'
,
id
:
2
}
]
},
{
isAdd
:
0
,
// 1 是 0 否
id
:
2
,
time
:
'2025-05-11'
,
num
:
'二'
,
// 产检次数
week
:
'5-6'
,
// 周数
status
:
'2'
,
//待产检、已过期、已产检,
// 产检项目
project
:
[{
name
:
'测量胎儿颈部透明层厚度(NT)'
,
id
:
1
},
{
name
:
'无创产前基因检测(NIPT)(非必查)'
,
id
:
2
}
]
}
]
})
const
info
=
ref
({})
// 返回
const
backHandler
=
()
=>
{
...
...
@@ -173,8 +84,81 @@
}
// 拼接检查项目名称
const
getProject
=
(
projects
)
=>
{
return
projects
.
map
(
project
=>
project
.
n
ame
).
join
(
'、'
);
return
projects
.
map
(
project
=>
project
.
itemN
ame
).
join
(
'、'
);
}
// 跳转产检详情页面
const
onDetails
=
(
id
)
=>
{
uni
.
navigateTo
({
url
:
`/pages/productionDetails/productionDetails?id=
${
id
}
`
})
}
// 获取信息接口
const
getInfoFn
=
async
(
date
)
=>
{
console
.
log
(
'获取信息'
,
date
)
// 获取信息
// const {code,success, message, data } = await getInfo({queryDate:date})
const
{
code
,
success
,
message
,
data
}
=
{
code
:
200
,
success
:
true
,
message
:
'成功'
,
data
:
{
gestationalWeeks
:
'8'
,
// 几周
dueDate
:
'2025-10-20'
,
// 预产期
// 轮播数据
bannerList
:
[{
imageUrl
:
'https://course.feihe.com/momclub-picture/contentLibrary/1003/banner-cl0.png'
,
jumpUrl
:
`https://www.baidu.com`
},
{
imageUrl
:
'https://course.feihe.com/momclub-picture/contentLibrary/1003/banner-cl1.png'
,
jumpUrl
:
`https://www.baidu.com`
},
{
imageUrl
:
'https://course.feihe.com/momclub-picture/contentLibrary/1003/banner-cl2.png'
,
jumpUrl
:
`https://www.baidu.com`
}
],
// 产检记录
checkupList
:
[{
type
:
0
,
// 1 是 0 否
id
:
1
,
checkupDate
:
'2025-8-22'
,
index
:
'一'
,
// 产检次数
pregnancyWeek
:
'5-6'
,
// 周数
status
:
'待产检'
,
//待产检、已过期、已产检,
// 产检项目
examinationItems
:
[{
itemName
:
'测量胎儿颈部透明层厚度(NT)'
,
id
:
1
},
{
itemName
:
'无创产前基因检测(NIPT)(非必查)'
,
id
:
2
}
]
}]
}
}
if
(
success
)
{
info
.
value
=
data
}
else
{
uni
.
showToast
({
title
:
message
,
icon
:
"none"
,
});
}
}
onLoad
(()
=>
{
// 获取信息
getInfoFn
(
time
.
value
)
})
</
script
>
<
style
lang=
"less"
scoped
>
.production-calendar {
...
...
pages/productionDetails/productionDetails.vue
View file @
15385b49
This diff is collapsed.
Click to expand it.
static/chanjianTool/icon26.png
0 → 100644
View file @
15385b49
2.87 KB
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