改为店务小程序原生时间选择器
This commit is contained in:
@@ -283,6 +283,11 @@
|
||||
color: #aaa096;
|
||||
}
|
||||
|
||||
.time-native-picker {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.time-range {
|
||||
overflow: hidden;
|
||||
color: #9a9288;
|
||||
@@ -488,19 +493,9 @@
|
||||
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);
|
||||
}
|
||||
|
||||
.product-modal,
|
||||
.template-modal,
|
||||
.artist-modal,
|
||||
.time-modal {
|
||||
.artist-modal {
|
||||
animation: appointment-sheet-enter 0.22s ease-out both;
|
||||
}
|
||||
|
||||
@@ -852,143 +847,6 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.time-picker-panel {
|
||||
padding-top: 4rpx;
|
||||
}
|
||||
|
||||
.time-picker-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 18rpx;
|
||||
padding: 18rpx 22rpx;
|
||||
border: 1rpx solid #eadfd2;
|
||||
border-radius: 18rpx;
|
||||
background: #fffdf8;
|
||||
}
|
||||
|
||||
.time-picker-label {
|
||||
display: block;
|
||||
color: #8c8177;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.time-picker-value {
|
||||
display: block;
|
||||
min-width: 160rpx;
|
||||
color: #2f2923;
|
||||
font-size: 42rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1.1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.time-picker-head {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
margin: 20rpx 0 10rpx;
|
||||
color: #8c8177;
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.time-picker-view {
|
||||
width: 100%;
|
||||
height: 370rpx;
|
||||
overflow: hidden;
|
||||
border: 1rpx solid #eadfd2;
|
||||
border-radius: 18rpx;
|
||||
background: #fffaf4;
|
||||
}
|
||||
|
||||
.time-picker-stage {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.time-picker-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 92rpx;
|
||||
color: #c8beb2;
|
||||
font-size: 34rpx;
|
||||
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-selected-overlay {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: grid;
|
||||
height: 92rpx;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
align-items: center;
|
||||
margin-top: -46rpx;
|
||||
background: #fff2df;
|
||||
border-top: 1rpx solid #e1d4c5;
|
||||
border-bottom: 1rpx solid #e1d4c5;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.time-picker-selected-overlay text {
|
||||
color: #2f2923;
|
||||
font-size: 34rpx;
|
||||
font-weight: 900;
|
||||
line-height: 92rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.time-picker-indicator {
|
||||
height: 92rpx;
|
||||
border-top: 1rpx solid #e1d4c5;
|
||||
border-bottom: 1rpx solid #e1d4c5;
|
||||
background: rgba(255, 242, 223, 0.82);
|
||||
}
|
||||
|
||||
.time-picker-mask {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.time-picker-actions {
|
||||
margin-top: 22rpx;
|
||||
}
|
||||
|
||||
.time-confirm-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 88rpx;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-radius: 18rpx;
|
||||
background: #6f8f83;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
font-weight: 900;
|
||||
line-height: 88rpx;
|
||||
}
|
||||
|
||||
.time-confirm-btn::after {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.time-confirm-btn[disabled] {
|
||||
background: #d7d0c8;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.time-empty {
|
||||
min-height: 220rpx;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user