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

443 lines
6.7 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 {
color: #8a796a;
font-size: 23rpx;
line-height: 1.4;
}
.cover-card {
position: relative;
height: 340rpx;
margin-bottom: 26rpx;
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-actions {
display: flex;
flex: 0 0 auto;
flex-direction: column;
gap: 10rpx;
}
.cover-btn,
.cover-remove {
display: flex;
align-items: center;
justify-content: center;
min-width: 164rpx;
min-height: 62rpx;
padding: 0 20rpx;
border-radius: 20rpx;
font-size: 24rpx;
font-weight: 900;
}
.cover-btn {
background: #fff8ed;
color: #6d4d35;
}
.cover-remove {
background: rgba(255, 253, 248, 0.18);
color: #fffdf8;
}
.form-card,
.rule-card {
padding: 12rpx 0;
overflow: hidden;
}
.form-card {
box-shadow: 0 18rpx 36rpx rgba(83, 64, 44, 0.08);
}
.form-header {
display: flex;
justify-content: space-between;
padding: 26rpx 26rpx 8rpx;
}
.form-header view {
display: flex;
flex-direction: column;
gap: 6rpx;
}
.form-kicker {
color: #92734f;
font-size: 22rpx;
font-weight: 900;
}
.form-title {
color: #8d8175;
font-size: 23rpx;
}
.field {
min-height: 108rpx;
padding: 12rpx 24rpx;
}
.field-label,
.label-with-help {
width: 180rpx;
min-width: 180rpx;
}
.field input,
.field-value,
.intro-editor {
min-height: 70rpx;
padding: 0 22rpx;
border: 1rpx solid #eadfd2;
border-radius: 18rpx;
background: #fff8f2;
line-height: 70rpx;
}
.intro-editor {
position: relative;
flex: 1;
min-height: 156rpx;
padding: 18rpx 22rpx 42rpx;
line-height: 1.5;
}
.intro-editor textarea {
width: 100%;
height: 104rpx;
color: #3d3128;
font-size: 26rpx;
line-height: 1.5;
}
.intro-placeholder {
color: #b4a79b;
}
.intro-count {
position: absolute;
right: 22rpx;
bottom: 12rpx;
color: #b2a396;
font-size: 20rpx;
line-height: 1;
}
.label-with-help {
display: flex;
align-items: center;
}
.label-with-help .field-label {
min-width: 0;
}
.help-badge {
display: flex;
align-items: center;
justify-content: center;
width: 28rpx;
height: 28rpx;
margin-left: 8rpx;
border-radius: 50%;
background: #e5eee9;
color: #4e7165;
font-size: 20rpx;
font-weight: 800;
line-height: 28rpx;
}
.loading-state {
padding: 48rpx 24rpx;
color: #7b7167;
text-align: center;
}
.section {
margin-top: 24rpx;
}
.section-title {
margin: 0 0 16rpx;
color: #3f382f;
font-size: 30rpx;
font-weight: 800;
}
.tag-setting-card {
display: flex;
flex-direction: column;
gap: 18rpx;
padding: 20rpx 24rpx;
}
.tag-form-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 150rpx;
gap: 12rpx;
}
.tag-input {
min-width: 0;
height: 70rpx;
padding: 0 18rpx;
border: 1rpx solid #eadfd2;
border-radius: 14rpx;
background: #fff8f2;
color: #3d3128;
font-size: 26rpx;
}
.tag-save-btn {
width: 100%;
min-width: 0;
}
.tag-edit-tip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
color: #7b7167;
font-size: 22rpx;
}
.tag-clear {
color: #2f6b55;
}
.tag-list {
display: grid;
gap: 12rpx;
}
.tag-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
}
.tag-preview {
display: inline-flex;
align-items: center;
min-width: 0;
max-width: 100%;
min-height: 54rpx;
padding: 0 16rpx;
overflow: hidden;
border: 1rpx solid;
border-radius: 999rpx;
font-size: 24rpx;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-actions {
display: flex;
flex: 0 0 auto;
gap: 16rpx;
color: #2f6b55;
font-size: 22rpx;
font-weight: 800;
}
.tag-actions .danger {
color: #c36a6a;
}
.tag-empty {
color: #8c8177;
font-size: 24rpx;
}
.rule-card {
display: flex;
flex-direction: column;
gap: 18rpx;
}
.preset-grid,
.weekday-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16rpx;
}
.weekday-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.preset-chip,
.weekday-chip {
min-height: 72rpx;
display: flex;
align-items: center;
justify-content: center;
border: 2rpx solid #e3ddd2;
border-radius: 12rpx;
background: #fffaf2;
color: #5f564c;
font-size: 24rpx;
font-weight: 700;
}
.preset-chip.active,
.weekday-chip.active {
border-color: #75a78e;
background: #e5f2eb;
color: #2f6b55;
}
.field-block {
display: flex;
flex-direction: column;
gap: 12rpx;
}
.field-title {
color: #6f665c;
font-size: 24rpx;
font-weight: 800;
}
.exception-btn {
width: 100%;
margin-top: 8rpx;
}
.exception-list {
display: flex;
flex-direction: column;
gap: 16rpx;
margin-top: 16rpx;
}
.exception-card {
display: flex;
flex-direction: column;
gap: 8rpx;
color: #3f382f;
font-size: 26rpx;
}
.exception-remark {
color: #7b7167;
font-size: 24rpx;
}