Files
JayuCloud/JC-Salon-WeChat/pages/appointment-form/index.wxss
T

578 lines
8.8 KiB
Plaintext

.unit {
color: #9a9288;
font-size: 24rpx;
}
.customer-select {
position: relative;
}
.customer-dropdown {
position: absolute;
top: 214rpx;
right: 0;
left: 180rpx;
z-index: 30;
max-height: 360rpx;
overflow-y: auto;
border: 1rpx solid #e5ded4;
border-radius: 18rpx;
background: #fffdf8;
box-shadow: 0 18rpx 40rpx rgba(58, 48, 34, 0.14);
}
.customer-option {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
min-height: 76rpx;
padding: 0 20rpx;
border-bottom: 1rpx solid #f0e9df;
}
.customer-option:last-child {
border-bottom: 0;
}
.customer-copy {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 6rpx;
}
.customer-name {
min-width: 0;
overflow: hidden;
color: #2a2521;
font-size: 26rpx;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.customer-phone {
color: #8c8177;
font-size: 24rpx;
}
.customer-select-tag {
flex: 0 0 auto;
padding: 4rpx 12rpx;
border-radius: 999rpx;
background: #e5eee9;
color: #55786d;
font-size: 22rpx;
font-weight: 800;
}
.muted-option {
justify-content: center;
color: #9a9288;
font-size: 24rpx;
}
.product-value {
display: flex;
align-items: center;
justify-content: space-between;
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;
border-radius: 999rpx;
background: #fff2df;
color: #a26428;
font-size: 22rpx;
font-weight: 800;
}
.textarea-field {
align-items: flex-start;
}
.capacity-tip {
display: flex;
flex-direction: column;
gap: 8rpx;
margin-top: 20rpx;
padding: 22rpx;
}
.tip-title {
color: #4e4942;
font-size: 26rpx;
font-weight: 800;
}
.tip-text {
color: #90877e;
font-size: 24rpx;
line-height: 1.5;
}
.availability-tip {
display: flex;
flex-direction: column;
gap: 8rpx;
margin-top: 16rpx;
padding: 22rpx;
}
.availability-tip.free {
background: #f3faf5;
}
.availability-tip.warn {
background: #fff8e8;
}
.availability-tip.danger {
background: #fff2f2;
}
.availability-tip.free .tip-title {
color: #4f7d62;
}
.availability-tip.warn .tip-title {
color: #a2763d;
}
.availability-tip.danger .tip-title {
color: #c36a6a;
}
.draft-tip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
margin-top: 16rpx;
padding: 18rpx 22rpx;
color: #6f655b;
font-size: 24rpx;
}
.draft-clear {
flex: 0 0 auto;
}
.modal-mask {
position: fixed;
inset: 0;
z-index: 80;
display: flex;
align-items: flex-end;
justify-content: center;
background: rgba(18, 15, 12, 0.48);
}
.product-modal {
width: 100%;
max-height: 88vh;
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);
}
.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;
justify-content: space-between;
gap: 20rpx;
margin-bottom: 20rpx;
}
.modal-title {
display: block;
}
.modal-title {
color: #27211d;
font-size: 34rpx;
font-weight: 900;
}
.modal-subtitle {
display: block;
margin-top: 8rpx;
color: #8d8278;
font-size: 24rpx;
}
.modal-close {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 48rpx;
min-width: 48rpx;
height: 48rpx;
border-radius: 50%;
border: 1rpx solid #e4d8ca;
background: #fffaf4;
color: transparent;
font-size: 0;
line-height: 0;
}
.modal-close::before,
.modal-close::after {
content: "";
position: absolute;
width: 22rpx;
height: 3rpx;
border-radius: 999rpx;
background: #61554c;
}
.modal-close::before {
transform: rotate(45deg);
}
.modal-close::after {
transform: rotate(-45deg);
}
.product-search {
height: 74rpx;
padding: 0 24rpx;
border-radius: 18rpx;
background: #f5eee6;
color: #2a2521;
font-size: 26rpx;
}
.product-list {
max-height: 440rpx;
margin-top: 20rpx;
}
.product-option {
display: flex;
align-items: stretch;
gap: 18rpx;
min-height: 156rpx;
margin-bottom: 16rpx;
padding: 14rpx;
border: 2rpx solid transparent;
border-radius: 18rpx;
background: #fff;
box-shadow: 0 10rpx 24rpx rgba(92, 66, 43, 0.08);
}
.product-option.active {
border-color: #c9874d;
background: #fff8ef;
}
.product-cover {
flex: 0 0 auto;
width: 132rpx;
height: 132rpx;
border-radius: 14rpx;
background: #efe5da;
}
.product-cover.placeholder {
display: flex;
align-items: center;
justify-content: center;
color: #b79b82;
font-size: 28rpx;
font-weight: 900;
}
.product-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: 10rpx;
}
.product-title-row {
display: flex;
align-items: center;
gap: 16rpx;
}
.product-title {
flex: 1;
min-width: 0;
overflow: hidden;
color: #2a2521;
font-size: 28rpx;
font-weight: 900;
text-overflow: ellipsis;
white-space: nowrap;
}
.product-price {
flex: 0 0 auto;
color: #c56f36;
font-size: 28rpx;
font-weight: 900;
}
.product-meta {
overflow: hidden;
color: #8c8177;
font-size: 24rpx;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-row {
display: flex;
flex-wrap: wrap;
gap: 8rpx;
min-height: 34rpx;
}
.tag-pill {
max-width: 160rpx;
padding: 4rpx 12rpx;
overflow: hidden;
border-radius: 999rpx;
background: #f3e9df;
color: #826c5b;
font-size: 22rpx;
text-overflow: ellipsis;
white-space: nowrap;
}
.product-empty {
padding: 44rpx 0;
color: #9a9288;
font-size: 26rpx;
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;
border-radius: 18rpx;
background: #f7efe7;
}
.manual-title {
display: block;
margin-bottom: 14rpx;
color: #4e4740;
font-size: 26rpx;
font-weight: 900;
}
.manual-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 180rpx;
gap: 14rpx;
}
.manual-grid.single {
grid-template-columns: minmax(0, 1fr);
margin-top: 14rpx;
}
.manual-grid input {
height: 70rpx;
padding: 0 18rpx;
border-radius: 14rpx;
background: #fffaf4;
color: #302923;
font-size: 26rpx;
}
.manual-textarea {
width: 100%;
min-height: 120rpx;
margin-top: 14rpx;
padding: 18rpx;
border-radius: 14rpx;
background: #fffaf4;
color: #302923;
font-size: 26rpx;
}
.manual-image-row {
display: flex;
align-items: center;
gap: 14rpx;
margin-top: 14rpx;
}
.manual-image {
flex: 0 0 auto;
width: 92rpx;
height: 92rpx;
border-radius: 14rpx;
background: #efe5da;
}
.manual-image.placeholder {
display: flex;
align-items: center;
justify-content: center;
color: #b79b82;
font-size: 26rpx;
font-weight: 900;
}
.image-btn {
flex: 1;
min-width: 0;
max-width: none;
}
.image-remove {
flex: 0 0 auto;
}
.manual-btn {
margin-top: 16rpx;
}
.action-row {
display: flex;
gap: 16rpx;
}
.draft-btn,
.submit-btn {
min-width: 0;
max-width: none;
}