优化首页返回定位与发布在线时间表单

移动端首页用列表缓存和内部滚动恢复浏览位置;发布页在线时间改为全天+起止时间单行布局。
This commit is contained in:
yml2213
2026-07-12 23:02:01 +08:00
parent 42b250cd2c
commit acd9d9b7f1
11 changed files with 359 additions and 327 deletions
@@ -72,7 +72,6 @@
.skin-group,
.region-panel,
.ratio-panel,
.time-preset-row,
.price-cell {
padding: 12px;
border-radius: var(--radius-8);
@@ -98,7 +97,6 @@
.field-row label span,
.input-block b,
.time-preset-row strong span,
.quantity-meta span,
.upload-copy span {
color: var(--color-danger);
@@ -178,7 +176,6 @@
}
.level-panel,
.time-preset-panel,
.skin-groups {
display: grid;
gap: 10px;
@@ -371,41 +368,41 @@
font-weight: 700;
}
.time-preset-row {
display: grid;
grid-template-columns: 88px minmax(0, 1fr);
gap: 12px;
align-items: start;
.online-time-row {
align-items: center;
}
.time-preset-row strong {
color: var(--color-text-main);
font-size: 13px;
font-weight: 800;
line-height: 32px;
.online-time-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
min-width: 0;
}
.time-preset-content {
display: grid;
.online-time-range {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.time-preset-actions {
display: flex;
flex-wrap: wrap;
gap: 7px;
min-width: 0;
.online-time-sep {
flex: 0 0 auto;
color: #94a3b8;
font-size: 13px;
font-weight: 700;
}
.time-chip {
min-height: 30px;
padding: 0 12px;
flex: 0 0 auto;
min-height: 32px;
padding: 0 14px;
border: 1px solid #d6dce5;
border-radius: 15px;
border-radius: 999px;
background: #fff;
color: #596474;
font-size: 12px;
font-size: 13px;
font-weight: 800;
cursor: pointer;
transition:
@@ -414,14 +411,23 @@
color 0.16s ease;
}
.time-chip:hover {
border-color: #c4ccd8;
}
.time-chip.active {
border-color: var(--color-orange-primary);
background: var(--color-orange-primary);
color: #fff;
box-shadow: 0 4px 10px rgba(255, 106, 0, 0.22);
}
.time-input {
width: 118px;
width: 128px;
}
.online-time-range :deep(.el-input__wrapper) {
border-radius: 999px;
}
.login-region-panel {
@@ -927,12 +933,21 @@
@media (max-width: 860px) {
.field-row,
.time-preset-row,
.quantity-header,
.quantity-item {
grid-template-columns: 1fr;
}
.online-time-range {
width: 100%;
}
.time-input {
flex: 1;
width: auto;
min-width: 0;
}
.field-hint {
grid-column: auto;
}