重构店铺设置展示与编辑流程
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
.page {
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(247, 240, 232, 0.96)),
|
||||
@@ -19,16 +18,22 @@
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.page-subtitle {
|
||||
.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;
|
||||
margin-bottom: 26rpx;
|
||||
overflow: hidden;
|
||||
border-radius: 28rpx;
|
||||
background:
|
||||
@@ -123,222 +128,120 @@
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.cover-actions {
|
||||
.cover-btn {
|
||||
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;
|
||||
background: #fff8ed;
|
||||
color: #6d4d35;
|
||||
font-size: 24rpx;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.cover-btn {
|
||||
background: #fff8ed;
|
||||
color: #6d4d35;
|
||||
.section {
|
||||
margin-top: 26rpx;
|
||||
}
|
||||
|
||||
.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 {
|
||||
.section-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 26rpx 26rpx 8rpx;
|
||||
gap: 16rpx;
|
||||
margin: 0 4rpx 16rpx;
|
||||
}
|
||||
|
||||
.form-header view {
|
||||
.section-head 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;
|
||||
.section-subtitle {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.tag-clear {
|
||||
color: #2f6b55;
|
||||
.section-link {
|
||||
flex: 0 0 auto;
|
||||
color: #c86a5c;
|
||||
font-size: 24rpx;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: grid;
|
||||
gap: 12rpx;
|
||||
.profile-summary-card,
|
||||
.tag-summary-card,
|
||||
.schedule-summary-card {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tag-item {
|
||||
.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;
|
||||
justify-content: space-between;
|
||||
gap: 12rpx;
|
||||
}
|
||||
|
||||
.tag-preview {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
min-height: 52rpx;
|
||||
max-width: 100%;
|
||||
min-height: 54rpx;
|
||||
padding: 0 16rpx;
|
||||
padding: 0 18rpx;
|
||||
overflow: hidden;
|
||||
border: 1rpx solid;
|
||||
border-radius: 999rpx;
|
||||
@@ -348,35 +251,206 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tag-actions {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
gap: 16rpx;
|
||||
color: #2f6b55;
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
.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;
|
||||
}
|
||||
|
||||
.tag-actions .danger {
|
||||
color: #c36a6a;
|
||||
}
|
||||
|
||||
.tag-empty {
|
||||
color: #8c8177;
|
||||
.empty-inline {
|
||||
padding: 12rpx 0;
|
||||
color: #a0968e;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.rule-card {
|
||||
.summary-action-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
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));
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.weekday-grid {
|
||||
@@ -385,15 +459,15 @@
|
||||
|
||||
.preset-chip,
|
||||
.weekday-chip {
|
||||
min-height: 72rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 64rpx;
|
||||
border: 2rpx solid #e3ddd2;
|
||||
border-radius: 12rpx;
|
||||
border-radius: 14rpx;
|
||||
background: #fffaf2;
|
||||
color: #5f564c;
|
||||
font-size: 24rpx;
|
||||
font-size: 23rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@@ -404,39 +478,82 @@
|
||||
color: #2f6b55;
|
||||
}
|
||||
|
||||
.field-block {
|
||||
.sheet-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12rpx;
|
||||
align-items: center;
|
||||
min-height: 88rpx;
|
||||
gap: 18rpx;
|
||||
border-bottom: 1rpx solid #eee8df;
|
||||
}
|
||||
|
||||
.field-title {
|
||||
.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: 24rpx;
|
||||
font-size: 23rpx;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.exception-btn {
|
||||
width: 100%;
|
||||
margin-top: 8rpx;
|
||||
.exception-history-head text:last-child {
|
||||
color: #a0968e;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.exception-list {
|
||||
.exception-history-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16rpx;
|
||||
margin-top: 16rpx;
|
||||
gap: 12rpx;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
|
||||
.exception-card {
|
||||
.exception-history-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8rpx;
|
||||
color: #3f382f;
|
||||
font-size: 26rpx;
|
||||
gap: 6rpx;
|
||||
padding-top: 12rpx;
|
||||
border-top: 1rpx solid #eee5da;
|
||||
color: #4f473f;
|
||||
font-size: 23rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.exception-remark {
|
||||
color: #7b7167;
|
||||
font-size: 24rpx;
|
||||
.exception-history-remark {
|
||||
color: #9a8f86;
|
||||
font-size: 21rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user