优化新建预约时间选择

This commit is contained in:
2026-06-27 16:12:00 +08:00
parent c671ec264c
commit 72fcb123d4
3 changed files with 388 additions and 23 deletions
@@ -81,6 +81,41 @@
gap: 12rpx;
}
.time-value {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
}
.time-value > view {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 6rpx;
}
.time-value.placeholder {
color: #aaa096;
}
.time-range {
overflow: hidden;
color: #9a9288;
font-size: 22rpx;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.time-arrow {
flex: 0 0 auto;
color: #b78b63;
font-size: 38rpx;
line-height: 1;
}
.manual-badge {
flex: 0 0 auto;
padding: 4rpx 12rpx;
@@ -181,6 +216,15 @@
box-shadow: 0 -18rpx 40rpx rgba(41, 31, 23, 0.16);
}
.time-modal {
width: 100%;
max-height: 82vh;
padding: 28rpx 28rpx calc(28rpx + env(safe-area-inset-bottom));
border-radius: 28rpx 28rpx 0 0;
background: #fffaf4;
box-shadow: 0 -18rpx 40rpx rgba(41, 31, 23, 0.16);
}
.modal-head {
display: flex;
align-items: center;
@@ -199,6 +243,13 @@
font-weight: 900;
}
.modal-subtitle {
display: block;
margin-top: 8rpx;
color: #8d8278;
font-size: 24rpx;
}
.modal-close {
position: relative;
display: flex;
@@ -349,6 +400,87 @@
text-align: center;
}
.time-list {
max-height: 620rpx;
padding-right: 2rpx;
}
.time-group {
margin-bottom: 28rpx;
}
.time-group:last-child {
margin-bottom: 0;
}
.time-group-title {
display: block;
margin-bottom: 14rpx;
color: #4d453e;
font-size: 26rpx;
font-weight: 900;
}
.time-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14rpx;
}
.time-chip {
display: flex;
min-height: 88rpx;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4rpx;
border: 2rpx solid #eadfd2;
border-radius: 18rpx;
background: #fff;
color: #302923;
box-shadow: 0 8rpx 18rpx rgba(92, 66, 43, 0.06);
transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.time-chip:active {
transform: scale(0.98);
}
.time-chip.active {
border-color: #c9874d;
background: #fff2df;
color: #9f5f2d;
}
.time-chip text:first-child {
font-size: 28rpx;
font-weight: 900;
line-height: 1.2;
}
.time-chip text:last-child {
color: #8c8177;
font-size: 20rpx;
line-height: 1.2;
}
.time-chip.active text:last-child {
color: #a26428;
}
.time-empty {
min-height: 220rpx;
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx 20rpx;
border-radius: 18rpx;
background: #f7efe7;
color: #8c8177;
font-size: 26rpx;
text-align: center;
}
.manual-panel {
margin-top: 12rpx;
padding: 20rpx;