Files
JayuCloud/JY-Salon-WeChat/pages/shop-settings/index.wxss
T

560 lines
8.8 KiB
Plaintext

.page {
background:
linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(247, 240, 232, 0.96)),
linear-gradient(135deg, rgba(89, 121, 102, 0.14), rgba(181, 134, 86, 0.12));
}
.page-heading {
display: flex;
flex-direction: column;
gap: 8rpx;
margin: 4rpx 0 22rpx;
}
.page-title {
color: #2f2a25;
font-size: 36rpx;
font-weight: 900;
line-height: 1.25;
}
.page-subtitle,
.section-subtitle {
color: #8a796a;
font-size: 23rpx;
line-height: 1.4;
}
.loading-state {
padding: 48rpx 24rpx;
color: #7b7167;
text-align: center;
}
.cover-card {
position: relative;
height: 340rpx;
overflow: hidden;
border-radius: 28rpx;
background:
linear-gradient(135deg, rgba(73, 101, 85, 0.95), rgba(179, 131, 90, 0.95)),
radial-gradient(circle at 24% 22%, rgba(255, 245, 223, 0.28), transparent 36%);
box-shadow: 0 22rpx 46rpx rgba(83, 64, 44, 0.18);
}
.cover-preview,
.cover-preview image {
width: 100%;
height: 100%;
}
.cover-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10rpx;
color: rgba(255, 255, 255, 0.82);
}
.cover-empty-title {
font-size: 36rpx;
font-weight: 900;
}
.cover-empty-desc {
font-size: 23rpx;
font-weight: 600;
opacity: 0.86;
}
.cover-badge {
position: absolute;
top: 26rpx;
left: 28rpx;
z-index: 2;
padding: 8rpx 20rpx;
border-radius: 999rpx;
background: rgba(255, 244, 222, 0.88);
color: #5b4635;
font-size: 22rpx;
font-weight: 900;
}
.cover-shade {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 20rpx;
padding: 30rpx;
background:
linear-gradient(180deg, rgba(30, 24, 19, 0.02), rgba(30, 24, 19, 0.6)),
linear-gradient(110deg, rgba(48, 70, 56, 0.36), transparent 58%);
}
.cover-copy {
min-width: 0;
color: #fffdf8;
}
.cover-title,
.cover-desc {
display: block;
}
.cover-title {
overflow: hidden;
font-size: 40rpx;
font-weight: 900;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.cover-desc {
margin-top: 8rpx;
display: -webkit-box;
overflow: hidden;
max-width: 430rpx;
font-size: 24rpx;
line-height: 1.45;
opacity: 0.9;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.cover-btn {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
min-width: 164rpx;
min-height: 62rpx;
padding: 0 20rpx;
border-radius: 20rpx;
background: #fff8ed;
color: #6d4d35;
font-size: 24rpx;
font-weight: 900;
}
.section {
margin-top: 26rpx;
}
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
margin: 0 4rpx 16rpx;
}
.section-head view {
display: flex;
flex-direction: column;
gap: 6rpx;
min-width: 0;
}
.section-title {
color: #3f382f;
font-size: 30rpx;
font-weight: 800;
}
.section-subtitle {
font-size: 22rpx;
}
.section-link {
flex: 0 0 auto;
color: #c86a5c;
font-size: 24rpx;
font-weight: 900;
}
.profile-summary-card,
.tag-summary-card,
.schedule-summary-card {
overflow: hidden;
}
.profile-summary-card {
padding: 8rpx 24rpx;
}
.summary-row {
display: flex;
align-items: flex-start;
gap: 20rpx;
min-height: 92rpx;
padding: 22rpx 0;
border-bottom: 1rpx solid #eee8df;
}
.summary-row-last {
border-bottom: 0;
}
.summary-label {
flex: 0 0 140rpx;
color: #8d8175;
font-size: 24rpx;
font-weight: 700;
}
.summary-value {
min-width: 0;
flex: 1;
color: #332c27;
font-size: 26rpx;
font-weight: 900;
line-height: 1.45;
text-align: right;
}
.summary-description {
color: #6f655d;
font-size: 24rpx;
font-weight: 600;
}
.tag-summary-card {
padding: 24rpx;
}
.tag-cloud {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12rpx;
}
.tag-preview {
display: inline-flex;
align-items: center;
min-height: 52rpx;
max-width: 100%;
padding: 0 18rpx;
overflow: hidden;
border: 1rpx solid;
border-radius: 999rpx;
font-size: 24rpx;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-add {
display: inline-flex;
align-items: center;
justify-content: center;
width: 52rpx;
height: 52rpx;
border: 1rpx dashed #e2b9af;
border-radius: 50%;
color: #c86a5c;
font-size: 36rpx;
font-weight: 300;
}
.empty-inline {
padding: 12rpx 0;
color: #a0968e;
font-size: 24rpx;
}
.summary-action-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
margin-top: 20rpx;
padding-top: 16rpx;
border-top: 1rpx solid #eee8df;
color: #9a8f86;
font-size: 22rpx;
}
.summary-arrow {
flex: 0 0 auto;
color: #b7aca3;
font-size: 34rpx;
font-weight: 300;
line-height: 1;
}
.schedule-summary-card {
padding: 0 24rpx;
}
.schedule-summary-row {
display: flex;
align-items: center;
gap: 18rpx;
min-height: 120rpx;
padding: 20rpx 0;
border-bottom: 1rpx solid #eee8df;
}
.special-summary-row {
border-bottom: 0;
}
.summary-icon {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 64rpx;
height: 64rpx;
border-radius: 22rpx;
font-size: 28rpx;
font-weight: 900;
}
.schedule-icon {
background: #e5eee9;
color: #55786d;
}
.exception-icon {
background: #fff0ed;
color: #c86a5c;
}
.summary-main {
display: flex;
flex: 1;
flex-direction: column;
gap: 8rpx;
min-width: 0;
}
.summary-main .summary-value {
text-align: left;
}
.summary-meta {
overflow: hidden;
color: #9b9188;
font-size: 22rpx;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}
.sheet-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 30;
display: flex;
align-items: flex-end;
background: rgba(45, 35, 29, 0.36);
}
.schedule-sheet {
width: 100%;
max-height: 88vh;
padding: 14rpx 24rpx calc(22rpx + env(safe-area-inset-bottom));
overflow-y: auto;
border-radius: 28rpx 28rpx 0 0;
background: #fffdf8;
box-shadow: 0 -18rpx 38rpx rgba(45, 35, 29, 0.18);
}
.sheet-handle {
width: 68rpx;
height: 8rpx;
margin: 0 auto 20rpx;
border-radius: 8rpx;
background: #ddd3ca;
}
.sheet-head,
.exception-history-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
}
.sheet-head {
margin-bottom: 20rpx;
}
.sheet-title {
color: #332c27;
font-size: 32rpx;
font-weight: 900;
}
.sheet-close {
color: #a59a91;
font-size: 40rpx;
font-weight: 300;
line-height: 1;
}
.sheet-tabs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8rpx;
margin-bottom: 18rpx;
padding: 6rpx;
border-radius: 16rpx;
background: #f5efe8;
}
.sheet-tab {
padding: 14rpx;
border-radius: 12rpx;
color: #958a80;
font-size: 24rpx;
font-weight: 900;
text-align: center;
}
.sheet-tab.active {
background: #fffdf8;
color: #c86a5c;
box-shadow: 0 6rpx 14rpx rgba(67, 52, 41, 0.07);
}
.sheet-field-block {
padding: 18rpx 0;
border-bottom: 1rpx solid #eee8df;
}
.sheet-field-title {
display: block;
margin-bottom: 14rpx;
color: #6f665c;
font-size: 24rpx;
font-weight: 800;
}
.preset-grid,
.weekday-grid {
display: grid;
gap: 12rpx;
}
.preset-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.weekday-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.preset-chip,
.weekday-chip {
display: flex;
align-items: center;
justify-content: center;
min-height: 64rpx;
border: 2rpx solid #e3ddd2;
border-radius: 14rpx;
background: #fffaf2;
color: #5f564c;
font-size: 23rpx;
font-weight: 700;
}
.preset-chip.active,
.weekday-chip.active {
border-color: #75a78e;
background: #e5f2eb;
color: #2f6b55;
}
.sheet-field {
display: flex;
align-items: center;
min-height: 88rpx;
gap: 18rpx;
border-bottom: 1rpx solid #eee8df;
}
.sheet-field-label {
flex: 0 0 160rpx;
color: #625c55;
font-size: 25rpx;
font-weight: 700;
}
.sheet-field-value,
.sheet-field input {
flex: 1;
min-width: 0;
color: #3f382f;
font-size: 26rpx;
font-weight: 800;
text-align: right;
}
.sheet-field input {
height: 58rpx;
padding: 0 18rpx;
border: 1rpx solid #eadfd2;
border-radius: 16rpx;
background: #fff8f2;
font-weight: 500;
}
.sheet-save {
margin-top: 22rpx;
}
.exception-history {
margin-top: 24rpx;
padding: 18rpx;
border-radius: 18rpx;
background: #faf5ef;
}
.exception-history-head {
color: #6f665c;
font-size: 23rpx;
font-weight: 800;
}
.exception-history-head text:last-child {
color: #a0968e;
font-weight: 600;
}
.exception-history-list {
display: flex;
flex-direction: column;
gap: 12rpx;
margin-top: 14rpx;
}
.exception-history-item {
display: flex;
flex-direction: column;
gap: 6rpx;
padding-top: 12rpx;
border-top: 1rpx solid #eee5da;
color: #4f473f;
font-size: 23rpx;
font-weight: 700;
}
.exception-history-remark {
color: #9a8f86;
font-size: 21rpx;
font-weight: 500;
}