调整预约日期时间选择入口样式

This commit is contained in:
2026-07-23 17:56:45 +08:00
parent ffc6c7afca
commit 1aaaac986d
4 changed files with 41 additions and 6 deletions
@@ -22,8 +22,8 @@
</view>
<view class="field">
<text class="field-label required">预约日期</text>
<picker mode="date" value="{{form.appointmentDate}}" bindchange="onDateChange">
<view class="field-value">{{form.appointmentDate}}</view>
<picker class="date-native-picker" mode="date" value="{{form.appointmentDate}}" bindchange="onDateChange">
<view class="field-value date-value">{{form.appointmentDate}}</view>
</picker>
</view>
<view class="field">
@@ -62,7 +62,7 @@
<picker class="time-native-picker" mode="time" value="{{timePickerValue || form.appointmentTime || '00:00'}}" start="00:00" end="23:59" disabled="{{pageMaskVisible || timePickerConfirming}}" bindchange="onNativeTimeChange">
<view class="field-value time-value {{form.appointmentTime ? '' : 'placeholder'}}">
<view>
<text>{{form.appointmentTime || timeSelectTip}}</text>
<text class="{{form.appointmentTime ? 'time-main-text' : 'time-placeholder-text'}}">{{form.appointmentTime || timeSelectTip}}</text>
<text wx:if="{{form.appointmentTime}}" class="time-range">{{form.appointmentDate}} · {{selectedArtist.name}} · {{form.durationMinutes}}分钟</text>
</view>
<text class="time-arrow">›</text>
@@ -269,6 +269,8 @@
align-items: center;
justify-content: space-between;
gap: 16rpx;
border-color: #cfe1d8;
background: #eef7f2;
}
.time-value > view {
@@ -279,15 +281,39 @@
gap: 6rpx;
}
.time-main-text {
color: #2f2923;
font-size: 30rpx;
font-weight: 900;
line-height: 1.2;
}
.time-placeholder-text {
color: #7f8b84;
font-size: 28rpx;
font-weight: 800;
line-height: 1.2;
}
.time-value.placeholder {
color: #aaa096;
}
.date-native-picker,
.time-native-picker {
display: block;
min-width: 0;
flex: 1;
}
.date-value {
border-color: #cfe1d8;
background: #eef7f2;
color: #2f2923;
font-size: 30rpx;
font-weight: 900;
}
.time-range {
overflow: hidden;
color: #9a9288;