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
7f6392f8
Commit
7f6392f8
authored
Jul 17, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
666666
parent
e2c5cc76
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
354 additions
and
7 deletions
+354
-7
BabyFeedSwitchPopup.vue
components/BabyFeedSwitchPopup.vue
+2
-1
DatePickerPopup.vue
components/DatePickerPopup.vue
+327
-0
shengzhangTools.vue
pages/shengzhangTools/shengzhangTools.vue
+25
-6
timeBg.png
static/shengzhangTool/timeBg.png
+0
-0
No files found.
components/BabyFeedSwitchPopup.vue
View file @
7f6392f8
...
...
@@ -265,4 +265,5 @@ const closePopup = () => {
opacity: 0.7;
}
}
</
style
>
\ No newline at end of file
</
style
>
components/DatePickerPopup.vue
0 → 100644
View file @
7f6392f8
This diff is collapsed.
Click to expand it.
pages/shengzhangTools/shengzhangTools.vue
View file @
7f6392f8
...
...
@@ -52,13 +52,13 @@
<!-- 测评信息区域 -->
<view
class=
"test-info-section"
>
<view
class=
"test-date-row"
>
<text
class=
"label"
>
本次测评日期
</text>
<view
class=
"date-container"
@
click=
"showDatePicker"
>
<text
class=
"date-value"
>
2025-06-06
</text>
<image
class=
"edit-icon"
src=
"/static/shengzhangTool/editIcon.png"
mode=
"aspectFit"
></image>
<view
class=
"test-date-row"
>
<text
class=
"label"
>
本次测评日期
</text>
<view
class=
"date-container"
@
click=
"showDatePicker"
>
<text
class=
"date-value"
>
{{
selectedDate
}}
</text>
<image
class=
"edit-icon"
src=
"/static/shengzhangTool/editIcon.png"
mode=
"aspectFit"
></image>
</view>
</view>
</view>
<!-- 分割线 -->
<image
class=
"divider-line"
src=
"/static/shengzhangTool/line.png"
mode=
"aspectFit"
></image>
...
...
@@ -189,12 +189,20 @@
v-model:selectedIndex=
"currentFeedIndex"
@
change=
"onFeedChange"
/>
<!-- 日期选择弹窗 -->
<DatePickerPopup
v-model:visible=
"showDatePickerPopup"
v-model:selectedDate=
"selectedDate"
@
change=
"onDateChange"
/>
</
template
>
<
script
setup
>
import
{
onMounted
,
ref
}
from
'vue'
;
import
BabySwitchPopup
from
'@/components/BabySwitchPopup.vue'
import
BabyFeedSwitchPopup
from
'@/components/BabyFeedSwitchPopup.vue'
import
DatePickerPopup
from
'@/components/DatePickerPopup.vue'
const
swiperData
=
ref
([{
bannerImg
:
'/static/shengzhangTool/banner1.png'
},
{
bannerImg
:
'/static/shengzhangTool/banner2.png'
},
{
bannerImg
:
'/static/shengzhangTool/banner3.png'
}]);
...
...
@@ -254,8 +262,19 @@ const generateRange = (min, max, step = 0.1) => {
return
range
}
// 日期选择器相关状态
const
showDatePickerPopup
=
ref
(
false
)
const
selectedDate
=
ref
(
'2025-06-06'
)
const
showDatePicker
=
()
=>
{
console
.
log
(
'显示日期选择器'
)
showDatePickerPopup
.
value
=
true
}
// 处理日期选择变化
const
onDateChange
=
(
date
)
=>
{
console
.
log
(
'选择了日期:'
,
date
)
selectedDate
.
value
=
date
}
const
showFeedingPopup
=
()
=>
{
...
...
static/shengzhangTool/timeBg.png
0 → 100644
View file @
7f6392f8
1.57 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