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
d5d9a8c8
Commit
d5d9a8c8
authored
Jul 29, 2025
by
weishengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(pages): 优化日志输出信息
- 在多个页面中,将通用的 console.log 输出语句替换为更具描述性的日志信息 - 在 My.vue 中添加了产检提醒页面的跳转逻辑判断
parent
9e648467
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
7 deletions
+26
-7
addPostnatal.vue
pages/addPostnatal/addPostnatal.vue
+2
-1
editPostnatal.vue
pages/editPostnatal/editPostnatal.vue
+2
-1
myReportCard.vue
pages/myReportCard/myReportCard.vue
+1
-1
postnatalCheckUp.vue
pages/postnatalCheckUp/postnatalCheckUp.vue
+2
-1
productionCalendar.vue
pages/productionCalendar/productionCalendar.vue
+2
-1
productionDetails.vue
pages/productionDetails/productionDetails.vue
+1
-1
My.vue
views/My.vue
+16
-1
No files found.
pages/addPostnatal/addPostnatal.vue
View file @
d5d9a8c8
...
...
@@ -336,7 +336,7 @@ const onSave = throttleTap( async () => {
checkupItems
:
ids
,
reportImages
:
bgdImgList
.
value
}
console
.
log
(
param
,
'参数'
)
console
.
log
(
param
,
'
新增产检保存
参数'
)
showLoading
();
const
{
success
,
data
}
=
await
getAdd
(
param
);
hideLoading
();
...
...
@@ -365,6 +365,7 @@ const onSeeBtn = () => {
// 获取产检项目列表
const
getList
=
async
()
=>
{
const
{
success
,
data
,
message
}
=
await
getExaminationItems
()
console
.
log
(
success
,
data
,
message
,
'获取产检项目列表'
)
if
(
success
)
{
examinationList
.
value
=
data
}
...
...
pages/editPostnatal/editPostnatal.vue
View file @
d5d9a8c8
...
...
@@ -214,7 +214,7 @@ const onSave = throttleTap(async () => {
id
:
editId
.
value
,
checkupItems
:
ids
}
console
.
log
(
param
,
'参数'
)
console
.
log
(
param
,
'
产检项目编辑保存
参数'
)
showLoading
();
const
{
success
,
data
}
=
await
getUpdate
(
param
);
hideLoading
();
...
...
@@ -243,6 +243,7 @@ const onSave = throttleTap(async () => {
// 获取产检项目列表
const
getList
=
async
()
=>
{
const
{
success
,
data
,
message
}
=
await
getExaminationItems
()
console
.
log
(
success
,
data
,
message
,
'获取产检项目列表'
)
if
(
success
)
{
examinationList
.
value
=
data
}
...
...
pages/myReportCard/myReportCard.vue
View file @
d5d9a8c8
...
...
@@ -166,8 +166,8 @@ const getDeleteFn = async (id) => {
}
// 获取报告单
const
getReportListFn
=
async
()
=>
{
console
.
log
(
'获取报告单'
)
const
{
code
,
message
,
data
,
success
}
=
await
getReportList
()
console
.
log
(
'报告单列表'
,
code
,
message
,
data
,
success
)
if
(
success
)
{
listData
.
value
=
data
}
else
{
...
...
pages/postnatalCheckUp/postnatalCheckUp.vue
View file @
d5d9a8c8
...
...
@@ -269,11 +269,12 @@ const onEditTime = async () => {
}
// 获取信息接口
const
getInfoFn
=
async
()
=>
{
console
.
log
(
'获取信息'
)
// 获取信息
const
{
code
,
success
,
message
,
data
}
=
await
getInfo
()
console
.
log
(
'产检提醒首页获取信息'
,
code
,
success
,
message
,
datacode
,
success
,
message
,
data
)
if
(
success
)
{
homeInfo
.
value
=
data
uni
.
setStorageSync
(
'dueDate'
,
data
.
dueDate
);
}
else
{
uni
.
showToast
({
...
...
pages/productionCalendar/productionCalendar.vue
View file @
d5d9a8c8
...
...
@@ -397,9 +397,10 @@ const onDetails = (id) => {
// 获取信息接口
const
getInfoFn
=
async
()
=>
{
console
.
log
(
'获取信息'
)
// 获取信息
const
{
code
,
success
,
message
,
data
}
=
await
getInfo
()
console
.
log
(
'日历页面获取信息'
,
code
,
success
,
message
,
data
)
if
(
success
)
{
info
.
value
=
data
}
else
{
...
...
pages/productionDetails/productionDetails.vue
View file @
d5d9a8c8
...
...
@@ -523,9 +523,9 @@ const onEditTime = async (params) => {
}
// 获取详情接口
const
getDetailFn
=
async
(
id
)
=>
{
console
.
log
(
'获取信息'
,
id
)
// 获取信息
const
{
code
,
success
,
message
,
data
}
=
await
getDetail
({
id
})
console
.
log
(
'详情页面获取信息'
,
code
,
success
,
message
,
data
)
if
(
success
)
{
infoData
.
value
=
data
bgdImgList
.
value
=
data
.
reportImages
==
null
?
[]
:
data
.
reportImages
...
...
views/My.vue
View file @
d5d9a8c8
...
...
@@ -270,6 +270,9 @@ const handleToolClick = async (item) => {
buttonName
:
item
.
title
,
});
// 跳转产检提醒页面判断
const
listData
=
userStore
.
babyInfo
.
allBabyBaseInfo
||
[]
if
(
item
.
title
===
"医生问诊"
)
{
if
(
!
cfgStatus
.
value
.
isRegister
)
return
;
...
...
@@ -301,8 +304,20 @@ const handleToolClick = async (item) => {
},
},
});
}
else
if
(
item
.
title
===
"产检提醒"
){
if
(
listData
.
length
>
0
){
const
hasPregnancy
=
listData
.
some
(
item
=>
item
.
typeName
===
"孕中"
)
console
.
log
(
hasPregnancy
,
'hasPregnancy'
)
if
(
hasPregnancy
){
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
});
}
else
{
uni
.
showToast
({
title
:
"需要是孕中状态哦"
,
icon
:
"none"
,
});
}
}
}
else
{
const
extra
=
item
.
link
.
extra
;
if
(
extra
&&
extra
.
babyId
){
jump
({
type
:
item
.
link
.
type
,
url
:
item
.
link
.
url
+
'?babyId='
+
extra
.
babyId
});
...
...
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