调整店务小程序时间滚轮选中态颜色

This commit is contained in:
2026-07-23 16:22:05 +08:00
parent 3d10affea3
commit c987dc4cf4
4 changed files with 24 additions and 13 deletions
@@ -241,10 +241,10 @@
</view>
<picker-view class="time-picker-view" value="{{timePickerIndices}}" bindchange="onTimePickerChange" indicator-class="time-picker-indicator" mask-class="time-picker-mask">
<picker-view-column>
<view wx:for="{{timePickerHours}}" wx:key="*this" class="time-picker-item">{{item}}</view>
<view wx:for="{{timePickerHours}}" wx:for-index="hourIndex" wx:key="*this" class="time-picker-item {{timePickerIndices[0] == hourIndex ? 'selected' : ''}}">{{item}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{timePickerMinutes}}" wx:key="*this" class="time-picker-item">{{item}}</view>
<view wx:for="{{timePickerMinutes}}" wx:for-index="minuteIndex" wx:key="*this" class="time-picker-item {{timePickerIndices[1] == minuteIndex ? 'selected' : ''}}">{{item}}</view>
</picker-view-column>
</picker-view>
<view class="time-picker-actions">
@@ -908,10 +908,16 @@
align-items: center;
justify-content: center;
height: 92rpx;
color: #312a24;
color: #c8beb2;
font-size: 34rpx;
font-weight: 900;
font-weight: 800;
line-height: 92rpx;
transition: color 160ms ease, font-weight 160ms ease;
}
.time-picker-item.selected {
color: #2f2923;
font-weight: 900;
}
.time-picker-indicator {