优化预约表单并支持散客预约
This commit is contained in:
@@ -269,8 +269,12 @@
|
||||
}
|
||||
|
||||
.time-modal {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 76vh;
|
||||
max-height: 82vh;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
padding: 28rpx 28rpx calc(28rpx + env(safe-area-inset-bottom));
|
||||
border-radius: 28rpx 28rpx 0 0;
|
||||
background: #fffaf4;
|
||||
@@ -337,10 +341,17 @@
|
||||
}
|
||||
|
||||
.time-list {
|
||||
max-height: 620rpx;
|
||||
height: 0;
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
padding-right: 2rpx;
|
||||
}
|
||||
|
||||
.time-wheel {
|
||||
min-height: 260rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.time-group {
|
||||
margin-bottom: 28rpx;
|
||||
}
|
||||
@@ -427,3 +438,358 @@
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.appointment-page .form-card {
|
||||
margin-bottom: 18rpx;
|
||||
padding: 20rpx 24rpx 10rpx;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16rpx;
|
||||
margin: 0 0 18rpx;
|
||||
}
|
||||
|
||||
.section-title-main,
|
||||
.section-caption {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.section-title-main {
|
||||
color: #302a24;
|
||||
font-size: 30rpx;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.section-caption {
|
||||
margin-top: 5rpx;
|
||||
color: #9a9288;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
|
||||
.link-action {
|
||||
flex: 0 0 auto;
|
||||
height: 60rpx;
|
||||
padding: 0 17rpx;
|
||||
border: 1rpx solid #d7b38e;
|
||||
border-radius: 14rpx;
|
||||
background: #fff7ed;
|
||||
color: #9f5f2d;
|
||||
font-size: 22rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
|
||||
.style-name-row,
|
||||
.style-image-preview-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14rpx;
|
||||
}
|
||||
|
||||
.style-name-input {
|
||||
min-width: 0;
|
||||
height: 78rpx;
|
||||
flex: 1;
|
||||
padding: 0 18rpx;
|
||||
border: 1rpx solid #e7e0d7;
|
||||
border-radius: 15rpx;
|
||||
background: #fff;
|
||||
color: #29241f;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.image-action,
|
||||
.remove-image-action {
|
||||
flex: 0 0 auto;
|
||||
height: 72rpx;
|
||||
padding: 0 18rpx;
|
||||
border-radius: 14rpx;
|
||||
background: #edf4f1;
|
||||
color: #2f6f62;
|
||||
font-size: 23rpx;
|
||||
line-height: 72rpx;
|
||||
}
|
||||
|
||||
.style-image-preview-row {
|
||||
justify-content: flex-start;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
|
||||
.style-image-preview {
|
||||
width: 112rpx;
|
||||
height: 112rpx;
|
||||
border-radius: 14rpx;
|
||||
background: #eee9e2;
|
||||
}
|
||||
|
||||
.remove-image-action {
|
||||
height: 58rpx;
|
||||
background: #f5f0e9;
|
||||
color: #756e66;
|
||||
font-size: 21rpx;
|
||||
line-height: 58rpx;
|
||||
}
|
||||
|
||||
.selected-style-note {
|
||||
margin-top: 12rpx;
|
||||
color: #4f766d;
|
||||
font-size: 23rpx;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.style-number-row {
|
||||
display: flex;
|
||||
gap: 18rpx;
|
||||
margin-top: 18rpx;
|
||||
}
|
||||
|
||||
.number-field {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
height: 88rpx;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
border-bottom: 1rpx solid #eee8df;
|
||||
}
|
||||
|
||||
.number-field .field-label {
|
||||
width: auto;
|
||||
flex: 0 0 auto;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.number-field input {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
color: #302923;
|
||||
font-size: 27rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.number-unit {
|
||||
flex: 0 0 auto;
|
||||
color: #9a9288;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.style-remark-field {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14rpx;
|
||||
padding: 18rpx 0 8rpx;
|
||||
border-bottom: 1rpx solid #eee8df;
|
||||
}
|
||||
|
||||
.style-remark-field .field-label {
|
||||
width: 124rpx;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.style-remark-field textarea {
|
||||
min-height: 86rpx;
|
||||
flex: 1;
|
||||
padding: 0;
|
||||
color: #302923;
|
||||
font-size: 25rpx;
|
||||
}
|
||||
|
||||
.style-hint {
|
||||
display: block;
|
||||
padding: 12rpx 0 16rpx;
|
||||
color: #a1978c;
|
||||
font-size: 20rpx;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.appointment-info-section .section-heading,
|
||||
.customer-section .section-heading {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.appointment-info-section .field:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.customer-section {
|
||||
padding-bottom: 22rpx !important;
|
||||
}
|
||||
|
||||
.customer-section .customer-entry {
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.customer-entry .customer-name-input {
|
||||
height: 76rpx;
|
||||
}
|
||||
|
||||
.customer-entry .customer-select-btn {
|
||||
min-width: 170rpx;
|
||||
height: 76rpx;
|
||||
line-height: 76rpx;
|
||||
}
|
||||
|
||||
.customer-phone-input {
|
||||
height: 70rpx;
|
||||
}
|
||||
|
||||
.customer-suggestion-list {
|
||||
margin-top: 10rpx;
|
||||
overflow: hidden;
|
||||
border: 1rpx solid #e8e0d7;
|
||||
border-radius: 14rpx;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.customer-suggestion {
|
||||
display: flex;
|
||||
min-height: 68rpx;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 18rpx;
|
||||
padding: 0 16rpx;
|
||||
border-bottom: 1rpx solid #f0ebe4;
|
||||
color: #39332d;
|
||||
font-size: 23rpx;
|
||||
}
|
||||
|
||||
.customer-suggestion:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.customer-suggestion text:last-child {
|
||||
color: #82796f;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
|
||||
.time-mode-switch {
|
||||
display: flex;
|
||||
gap: 8rpx;
|
||||
margin-bottom: 18rpx;
|
||||
padding: 6rpx;
|
||||
border-radius: 15rpx;
|
||||
background: #f2eee8;
|
||||
}
|
||||
|
||||
.time-mode-switch button {
|
||||
height: 58rpx;
|
||||
flex: 1;
|
||||
border-radius: 11rpx;
|
||||
color: #81786e;
|
||||
font-size: 23rpx;
|
||||
line-height: 58rpx;
|
||||
}
|
||||
|
||||
.time-mode-switch button.active {
|
||||
background: #fffdf8;
|
||||
color: #4f766d;
|
||||
font-weight: 800;
|
||||
box-shadow: 0 3rpx 8rpx rgba(58, 48, 34, 0.08);
|
||||
}
|
||||
|
||||
.time-wheel {
|
||||
width: 100%;
|
||||
height: 320rpx;
|
||||
border-top: 1rpx solid #eee7de;
|
||||
border-bottom: 1rpx solid #eee7de;
|
||||
}
|
||||
|
||||
.wheel-item {
|
||||
height: 76rpx;
|
||||
color: #302923;
|
||||
font-size: 34rpx;
|
||||
line-height: 76rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wheel-item.disabled {
|
||||
color: #c8c1b8;
|
||||
}
|
||||
|
||||
.time-wheel-caption {
|
||||
padding: 18rpx 0 8rpx;
|
||||
color: #736a60;
|
||||
font-size: 23rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.time-confirm-btn {
|
||||
width: 100%;
|
||||
height: 76rpx;
|
||||
margin-top: 12rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #4f766d;
|
||||
color: #fff;
|
||||
font-size: 26rpx;
|
||||
font-weight: 800;
|
||||
line-height: 76rpx;
|
||||
}
|
||||
|
||||
.time-chip.disabled {
|
||||
border-color: #e8e4df;
|
||||
background: #f3f1ee;
|
||||
color: #bcb5ad;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.time-chip.disabled text:last-child {
|
||||
color: #c1bab2;
|
||||
}
|
||||
|
||||
.selected-style-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14rpx;
|
||||
min-height: 104rpx;
|
||||
padding: 12rpx;
|
||||
border: 1rpx solid #d9e5df;
|
||||
border-radius: 15rpx;
|
||||
background: #f4f8f5;
|
||||
}
|
||||
|
||||
.selected-style-image {
|
||||
width: 82rpx;
|
||||
height: 82rpx;
|
||||
flex: 0 0 auto;
|
||||
border-radius: 12rpx;
|
||||
background: #e9e5df;
|
||||
}
|
||||
|
||||
.selected-style-copy {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
gap: 6rpx;
|
||||
}
|
||||
|
||||
.selected-style-title,
|
||||
.selected-style-meta {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.selected-style-title {
|
||||
color: #302923;
|
||||
font-size: 26rpx;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.selected-style-meta {
|
||||
color: #81796f;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
|
||||
.switch-manual-action {
|
||||
height: 58rpx;
|
||||
flex: 0 0 auto;
|
||||
padding: 0 14rpx;
|
||||
border-radius: 12rpx;
|
||||
background: #e7f0ec;
|
||||
color: #4f766d;
|
||||
font-size: 21rpx;
|
||||
line-height: 58rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user