对齐新增预约页面演示稿设计

This commit is contained in:
2026-10-20 15:50:29 +08:00
parent c952a913e8
commit 274c6af30b
9 changed files with 723 additions and 34 deletions
@@ -793,3 +793,542 @@
font-size: 21rpx;
line-height: 58rpx;
}
.appointment-page {
padding-top: 24rpx;
background: #f3f7f4;
color: #17211f;
}
.appointment-hero {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 18rpx;
margin: 0 0 30rpx;
}
.appointment-hero-copy {
display: flex;
min-width: 0;
flex-direction: column;
}
.appointment-eyebrow {
color: #247b63;
font-size: 22rpx;
font-weight: 800;
line-height: 1.3;
}
.appointment-title {
margin-top: 6rpx;
color: #17211f;
font-size: 52rpx;
font-weight: 900;
line-height: 1.15;
}
.appointment-date-pill {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 8rpx;
min-height: 58rpx;
padding: 0 16rpx;
border: 2rpx solid #e7ece9;
border-radius: 26rpx;
background: #fff;
color: #52645d;
font-size: 22rpx;
white-space: nowrap;
}
.date-pill-icon {
color: #247b63;
font-size: 25rpx;
}
.appointment-page .form-card {
margin-bottom: 24rpx;
padding: 28rpx 30rpx 24rpx;
border: 2rpx solid #e7ece9;
border-radius: 38rpx;
background: #fff;
box-shadow: 0 8rpx 26rpx rgba(41, 73, 62, 0.04);
}
.section-heading {
align-items: center;
margin: 0 0 20rpx;
}
.section-title-row {
display: flex;
align-items: baseline;
}
.section-title-main {
color: #17211f;
font-size: 28rpx;
font-weight: 800;
}
.section-caption {
color: #71807a;
font-size: 20rpx;
line-height: 1.4;
}
.required-mark {
margin-left: 5rpx;
color: #e98669;
font-size: 24rpx;
font-weight: 800;
}
.link-action {
min-width: 144rpx;
max-width: none;
height: 58rpx;
padding: 0 18rpx;
border: 2rpx solid #cbdcd5;
border-radius: 22rpx;
background: #fbfdfc;
color: #247b63;
font-size: 21rpx;
font-weight: 700;
line-height: 54rpx;
}
.field-card {
display: flex;
width: 100%;
min-height: 124rpx;
align-items: center;
gap: 22rpx;
padding: 20rpx 22rpx;
border: 2rpx dashed #cbdcd5;
border-radius: 30rpx;
background: #fbfdfc;
text-align: left;
line-height: 1.35;
box-sizing: border-box;
}
button.full{
width: 100%;
box-sizing: border-box;
margin: 0; /* 清除小程序button自带左右margin */
}
.field-icon {
display: flex;
width: 76rpx;
height: 76rpx;
flex: 0 0 76rpx;
align-items: center;
justify-content: center;
border-radius: 24rpx;
background: #e5f4ed;
color: #247b63;
font-size: 34rpx;
}
.style-entry-image {
object-fit: cover;
}
.field-text {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
}
.field-label {
width: auto;
color: #71807a;
font-size: 21rpx;
font-weight: 600;
line-height: 1.35;
}
.field-value {
display: block;
min-width: 0;
flex: 0 0 auto;
margin-top: 5rpx;
overflow: hidden;
color: #17211f;
font-size: 27rpx;
font-weight: 800;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.field-value.placeholder {
color: #9aa9a3;
font-weight: 600;
}
.field-meta {
display: block;
margin-top: 5rpx;
color: #71807a;
font-size: 20rpx;
line-height: 1.35;
}
.chevron {
flex: 0 0 auto;
color: #91a29a;
font-size: 40rpx;
line-height: 1;
}
.style-entry-card {
min-height: 122rpx;
}
.style-number-row {
gap: 18rpx;
margin-top: 22rpx;
}
.number-field {
display: flex;
min-width: 0;
height: auto;
flex: 1;
flex-direction: column;
align-items: stretch;
gap: 8rpx;
border: 0;
color: #52645d;
font-size: 21rpx;
}
.number-field .field-label {
width: auto;
flex: 0 0 auto;
color: #52645d;
font-size: 21rpx;
font-weight: 700;
}
.number-input-wrap {
display: flex;
height: 82rpx;
align-items: center;
gap: 8rpx;
padding: 0 18rpx;
border: 2rpx solid #dce6e1;
border-radius: 24rpx;
background: #fbfdfc;
}
.number-input-wrap input {
min-width: 0;
height: 78rpx;
flex: 1;
color: #17211f;
font-size: 25rpx;
font-weight: 700;
text-align: left;
}
.number-unit {
color: #71807a;
font-size: 20rpx;
}
.style-remark-field {
display: flex;
flex-direction: column;
gap: 10rpx;
padding: 20rpx 0 0;
border-bottom: 0;
}
.style-remark-field .field-label {
width: auto;
}
.style-remark-field textarea {
box-sizing: border-box;
width: 100%;
min-height: 144rpx;
padding: 16rpx 20rpx;
border: 2rpx solid #dce6e1;
border-radius: 24rpx;
background: #fbfdfc;
color: #17211f;
font-size: 23rpx;
line-height: 1.5;
}
.style-hint {
padding: 20rpx 0 0;
color: #82928a;
font-size: 19rpx;
line-height: 1.45;
}
.appointment-info-section .section-heading {
margin-bottom: 20rpx;
}
.appointment-field-card {
margin-top: 16rpx;
}
.appointment-field-card:first-of-type {
margin-top: 0;
}
.customer-section {
padding-bottom: 26rpx !important;
}
.customer-section .section-heading {
margin-bottom: 18rpx;
}
.customer-entry {
gap: 14rpx;
align-items: stretch;
}
.customer-fields {
display: grid;
min-width: 0;
flex: 1;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 12rpx;
}
.customer-entry .customer-name-input,
.customer-entry .customer-phone-input {
box-sizing: border-box;
width: 100%;
min-width: 0;
height: 88rpx;
margin: 0;
padding: 0 16rpx;
border: 2rpx solid #dce6e1;
border-radius: 24rpx;
background: #fbfdfc;
color: #17211f;
font-size: 22rpx;
}
.customer-library-btn {
display: flex;
width: 88rpx;
min-width: 88rpx;
max-width: 88rpx;
height: 88rpx;
align-items: center;
justify-content: center;
border-radius: 24rpx;
background: #e1f2eb;
color: #247b63;
}
.customer-library-icon {
font-size: 38rpx;
line-height: 1;
}
.customer-suggestion-list {
border-color: #e7ece9;
border-radius: 22rpx;
}
.customer-suggestion {
min-height: 72rpx;
border-color: #e7ece9;
color: #17211f;
font-size: 22rpx;
}
.customer-suggestion text:last-child {
color: #71807a;
font-size: 21rpx;
}
.customer-selected-tip {
margin-top: 12rpx;
color: #247b63;
font-size: 20rpx;
}
.selected-style-card {
min-height: 112rpx;
border-color: #cbdcd5;
border-radius: 30rpx;
background: #fbfdfc;
}
.selected-style-title {
color: #17211f;
}
.selected-style-meta {
color: #71807a;
}
.switch-manual-action {
border-radius: 18rpx;
background: #e1f2eb;
color: #247b63;
}
.appointment-page .fixed-bottom {
padding-top: 20rpx;
border-top: 2rpx solid #e7ece9;
background: rgba(255, 255, 255, 0.97);
}
.appointment-page .primary-btn {
background: #17211f;
box-shadow: 0 10rpx 22rpx rgba(23, 33, 31, 0.16);
}
.appointment-page .secondary-btn {
border-color: #dce6e1;
background: #f3f7f4;
color: #52645d;
}
.appointment-page .modal-mask {
z-index: 130;
background: rgba(16, 29, 25, 0.44);
}
.appointment-page .time-modal,
.manual-style-sheet {
border-radius: 34rpx 34rpx 0 0;
background: #fff;
box-shadow: 0 -20rpx 48rpx rgba(24, 48, 40, 0.14);
}
.appointment-page .modal-title {
color: #17211f;
}
.appointment-page .modal-subtitle {
color: #71807a;
}
.appointment-page .time-mode-switch {
background: #f1f5f3;
}
.appointment-page .time-mode-switch button.active {
background: #dff1e9;
color: #247b63;
box-shadow: none;
}
.appointment-page .time-chip.active {
border-color: #9ccdbb;
background: #d9f0e6;
color: #247b63;
}
.appointment-page .time-confirm-btn {
background: #17211f;
}
.manual-style-sheet {
display: flex;
width: 100%;
height: 70vh;
max-height: 82vh;
flex-direction: column;
overflow: hidden;
padding: 28rpx 28rpx calc(24rpx + env(safe-area-inset-bottom));
}
.manual-style-content {
height: 0;
min-height: 0;
flex: 1;
padding: 8rpx 0 20rpx;
}
.manual-style-content .style-name-input {
box-sizing: border-box;
height: 82rpx;
border-color: #dce6e1;
border-radius: 24rpx;
background: #fbfdfc;
}
.manual-style-content .image-action {
height: 82rpx;
border-radius: 24rpx;
background: #e1f2eb;
color: #247b63;
font-size: 21rpx;
line-height: 82rpx;
}
.manual-style-hint {
display: block;
margin-top: 18rpx;
color: #71807a;
font-size: 21rpx;
line-height: 1.5;
}
.manual-style-footer {
flex: 0 0 auto;
padding-top: 16rpx;
border-top: 2rpx solid #e7ece9;
}
.manual-style-confirm {
width: 100%;
height: 84rpx;
border-radius: 24rpx;
background: #17211f;
color: #fff;
font-size: 26rpx;
font-weight: 800;
line-height: 84rpx;
}
.manual-style-library-link {
height: 64rpx;
margin: 10rpx auto 0;
color: #247b63;
font-size: 22rpx;
line-height: 64rpx;
}
@media (max-width: 360px) {
.appointment-title {
font-size: 44rpx;
}
.appointment-date-pill {
gap: 5rpx;
padding: 0 10rpx;
font-size: 19rpx;
}
.customer-fields {
grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
gap: 8rpx;
}
.customer-name-input,
.customer-phone-input {
padding: 0 12rpx;
font-size: 20rpx;
}
}