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
abdc6cad
Commit
abdc6cad
authored
Jul 31, 2025
by
spc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/fh/20250528_FHQ1
into dev
parents
adb98700
7e74e717
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
5 deletions
+58
-5
postnatalCheckUp.vue
pages/postnatalCheckUp/postnatalCheckUp.vue
+28
-3
productionDetails.vue
pages/productionDetails/productionDetails.vue
+30
-2
No files found.
pages/postnatalCheckUp/postnatalCheckUp.vue
View file @
abdc6cad
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
</view>
</view>
</view>
</view>
<!-- 按钮 -->
<!-- 按钮 -->
<!-- <button open-type="openSetting">提醒</button> -->
<view
class=
"postnatal-con-btn"
>
<view
class=
"postnatal-con-btn"
>
<view
class=
"btn-item"
v-for=
"({ name, imageSrc, type }, index) in btnList"
:key=
"index"
<view
class=
"btn-item"
v-for=
"({ name, imageSrc, type }, index) in btnList"
:key=
"index"
@
click=
"onBtn(type)"
>
@
click=
"onBtn(type)"
>
...
@@ -155,6 +156,9 @@ const babyId = ref(userStore.babyInfo?.content?.id)
...
@@ -155,6 +156,9 @@ const babyId = ref(userStore.babyInfo?.content?.id)
const
back_btn
=
ref
(
''
)
const
back_btn
=
ref
(
''
)
// 是否授权
const
isWxNotification
=
ref
(
true
)
// 弹窗控制
// 弹窗控制
const
showPicker
=
ref
(
false
)
const
showPicker
=
ref
(
false
)
// 提醒时间选项
// 提醒时间选项
...
@@ -283,7 +287,8 @@ const onBtn = (type) => {
...
@@ -283,7 +287,8 @@ const onBtn = (type) => {
// type 0 提醒 1 报告单 2 日历
// type 0 提醒 1 报告单 2 日历
switch
(
type
)
{
switch
(
type
)
{
case
0
:
case
0
:
showPicker
.
value
=
true
// 如果授权就不弹出提醒
showPicker
.
value
=
isWxNotification
.
value
?
true
:
false
break
;
break
;
case
1
:
case
1
:
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -309,6 +314,7 @@ const handleChange = (e) => {
...
@@ -309,6 +314,7 @@ const handleChange = (e) => {
}
}
// 确认选择
// 确认选择
const
handleConfirm
=
()
=>
{
const
handleConfirm
=
()
=>
{
selectedValue
.
value
=
options
[
pickerValue
.
value
].
id
;
selectedValue
.
value
=
options
[
pickerValue
.
value
].
id
;
console
.
log
(
selectedValue
.
value
,
homeInfo
.
value
.
wxTemplateId
,
babyId
.
value
)
console
.
log
(
selectedValue
.
value
,
homeInfo
.
value
.
wxTemplateId
,
babyId
.
value
)
close
();
close
();
...
@@ -362,6 +368,8 @@ const getWxNotificationFn = async (notificationDate, wxTemplateId, babyId) => {
...
@@ -362,6 +368,8 @@ const getWxNotificationFn = async (notificationDate, wxTemplateId, babyId) => {
icon
:
'none'
icon
:
'none'
})
})
}
}
// 获取用户授权信息
getSettingFn
()
}
}
// 修改产检时间
// 修改产检时间
const
onEditTime
=
async
()
=>
{
const
onEditTime
=
async
()
=>
{
...
@@ -409,8 +417,25 @@ const postnatalJSONFn = async () => {
...
@@ -409,8 +417,25 @@ const postnatalJSONFn = async () => {
});
});
}
}
}
}
// 获取用户授权信息
const
getSettingFn
=
()
=>
{
wx
.
getSetting
({
withSubscriptions
:
true
,
success
(
res
)
{
// console.log(res.authSetting, '授权信息')
console
.
log
(
res
.
subscriptionsSetting
,
'订阅信息'
)
if
(
res
.
subscriptionsSetting
.
itemSettings
){
isWxNotification
.
value
=
false
console
.
log
(
"🚀 ~ success ~ isWxNotification111:"
,
isWxNotification
.
value
)
}
else
{
isWxNotification
.
value
=
true
console
.
log
(
"🚀 ~ success ~ isWxNotification222:"
,
isWxNotification
.
value
)
}
}
})
}
onShow
(()
=>
{
onShow
(()
=>
{
getSettingFn
()
// 获取banner图
// 获取banner图
postnatalJSONFn
()
postnatalJSONFn
()
// 获取信息
// 获取信息
...
@@ -615,7 +640,7 @@ onShow(() => {
...
@@ -615,7 +640,7 @@ onShow(() => {
/* 弹窗容器样式 */
/* 弹窗容器样式 */
.picker-layer-panel {
.picker-layer-panel {
width: 100vw;
width: 100vw;
height:
46vh
;
height:
745rpx
;
background: #f6f8fa;
background: #f6f8fa;
border-top-left-radius: 24rpx;
border-top-left-radius: 24rpx;
border-top-right-radius: 24rpx;
border-top-right-radius: 24rpx;
...
...
pages/productionDetails/productionDetails.vue
View file @
abdc6cad
...
@@ -174,6 +174,9 @@ import { useUserStore } from "@/stores/user";
...
@@ -174,6 +174,9 @@ import { useUserStore } from "@/stores/user";
const
userStore
=
useUserStore
();
const
userStore
=
useUserStore
();
const
babyId
=
ref
(
userStore
.
babyInfo
?.
content
?.
id
)
const
babyId
=
ref
(
userStore
.
babyInfo
?.
content
?.
id
)
// 是否授权
const
isWxNotification
=
ref
(
true
)
// 提醒选择器相关状态
// 提醒选择器相关状态
const
showPicker
=
ref
(
false
)
const
showPicker
=
ref
(
false
)
const
options
=
[
const
options
=
[
...
@@ -414,7 +417,8 @@ const onRemind = () => {
...
@@ -414,7 +417,8 @@ const onRemind = () => {
if
(
checkupDate
<
currentDate
)
{
if
(
checkupDate
<
currentDate
)
{
return
;
return
;
}
}
showPicker
.
value
=
true
;
// 如果授权就不弹出提醒
showPicker
.
value
=
isWxNotification
.
value
?
true
:
false
}
}
// 提醒关闭
// 提醒关闭
...
@@ -466,6 +470,8 @@ const getWxNotificationFn = async (notificationDate, wxTemplateId, babyId) => {
...
@@ -466,6 +470,8 @@ const getWxNotificationFn = async (notificationDate, wxTemplateId, babyId) => {
icon
:
'none'
icon
:
'none'
})
})
}
}
// 获取用户授权信息
getSettingFn
()
}
}
// 完成检查
// 完成检查
const
onComplete
=
()
=>
{
const
onComplete
=
()
=>
{
...
@@ -557,12 +563,34 @@ const getDetailFn = async (id) => {
...
@@ -557,12 +563,34 @@ const getDetailFn = async (id) => {
});
});
}
}
}
}
// 获取用户授权信息
const
getSettingFn
=
()
=>
{
wx
.
getSetting
({
withSubscriptions
:
true
,
success
(
res
)
{
// console.log(res.authSetting, '授权信息')
console
.
log
(
res
.
subscriptionsSetting
,
'订阅信息'
)
if
(
res
.
subscriptionsSetting
.
itemSettings
){
isWxNotification
.
value
=
false
console
.
log
(
"🚀 ~ success ~ isWxNotification111:"
,
isWxNotification
.
value
)
}
else
{
isWxNotification
.
value
=
true
console
.
log
(
"🚀 ~ success ~ isWxNotification222:"
,
isWxNotification
.
value
)
}
}
})
}
// 获取传过来的参数
// 获取传过来的参数
onLoad
((
options
)
=>
{
onLoad
((
options
)
=>
{
console
.
log
(
options
)
console
.
log
(
options
)
// 获取传过来的参数:id
editId
.
value
=
options
.
id
editId
.
value
=
options
.
id
// 获取用户授权信息
getSettingFn
()
// 获取详情
getDetailFn
(
options
.
id
)
getDetailFn
(
options
.
id
)
})
})
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
@@ -902,7 +930,7 @@ onLoad((options) => {
...
@@ -902,7 +930,7 @@ onLoad((options) => {
/* 弹窗容器样式 */
/* 弹窗容器样式 */
.picker-layer-panel {
.picker-layer-panel {
width: 100vw;
width: 100vw;
height:
52vh
;
height:
745rpx
;
background: #f6f8fa;
background: #f6f8fa;
border-top-left-radius: 24rpx;
border-top-left-radius: 24rpx;
border-top-right-radius: 24rpx;
border-top-right-radius: 24rpx;
...
...
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