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
cb5235b5
Commit
cb5235b5
authored
Jul 25, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feedingIndex
parent
454a71dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
feedingIndex.vue
pages/feedingIndex/feedingIndex.vue
+18
-6
No files found.
pages/feedingIndex/feedingIndex.vue
View file @
cb5235b5
...
@@ -117,13 +117,15 @@
...
@@ -117,13 +117,15 @@
<view
class=
"bottle-container"
>
<view
class=
"bottle-container"
>
<image
class=
"bottle-image"
src=
"/static/feedingIndex/v1/icon_milk_bottle.png"
<image
class=
"bottle-image"
src=
"/static/feedingIndex/v1/icon_milk_bottle.png"
mode=
"aspectFit"
/>
mode=
"aspectFit"
/>
<!-- 奶量选择器 -->
<!-- 奶量选择器 -->
<picker-view
class=
"amount-picker"
:value=
"pickerValue"
@
change=
"onPickerChange"
:mask-style=
"
{opacity: 0}">
<picker-view
class=
"amount-picker"
:value=
"pickerValue"
@
change=
"onPickerChange"
:mask-style=
"
{ opacity: 0 }"
:indicator-style="indicatorStyle"
indicator-class="amount-picker"
mask-style="opacity: 0.5; border: none;">
<picker-view-column>
<picker-view-column>
<view
class=
"picker-item"
<view
class=
"picker-item"
v-for=
"(amount, index) in pickerAmounts"
:key=
"amount"
v-for=
"(amount, index) in pickerAmounts"
:key=
"amount"
:class=
"
{ active: pickerValue[0] === index }">
:class=
"
{ active: pickerValue[0] === index }">
{{
amount
}}
ml
{{
amount
}}
ml
</view>
</view>
...
@@ -268,7 +270,7 @@
...
@@ -268,7 +270,7 @@
import
{
ref
,
computed
}
from
'vue'
import
{
ref
,
computed
}
from
'vue'
const
swiperData
=
ref
([{
bannerImg
:
'/static/feedingIndex/v1/banner.png'
},
{
bannerImg
:
'/static/feedingIndex/v1/banner.png'
},
{
bannerImg
:
'/static/feedingIndex/v1/banner.png'
}]);
const
swiperData
=
ref
([{
bannerImg
:
'/static/feedingIndex/v1/banner.png'
},
{
bannerImg
:
'/static/feedingIndex/v1/banner.png'
},
{
bannerImg
:
'/static/feedingIndex/v1/banner.png'
}]);
const
indicatorStyle
=
`height: 40px; border: none;`
const
bannerHandler
=
(
item
)
=>
{
const
bannerHandler
=
(
item
)
=>
{
console
.
log
(
item
);
console
.
log
(
item
);
}
}
...
@@ -889,6 +891,7 @@ function formatTotalDuration() {
...
@@ -889,6 +891,7 @@ function formatTotalDuration() {
}
}
.amount-picker
{
.amount-picker
{
margin-top
:
40rpx
;
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
top
:
50%
;
top
:
50%
;
...
@@ -899,6 +902,15 @@ function formatTotalDuration() {
...
@@ -899,6 +902,15 @@ function formatTotalDuration() {
mask
:
none
;
mask
:
none
;
-webkit-mask
:
none
;
-webkit-mask
:
none
;
:deep
(
.amount-picker
::before
)
{
content
:
none
;
}
:deep
(
.amount-picker
::after
)
{
content
:
none
;
}
.picker-item
{
.picker-item
{
height
:
60rpx
;
height
:
60rpx
;
line-height
:
60rpx
;
line-height
:
60rpx
;
...
...
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