支持在线时间跨天并优化发布与筛选体验

允许在线时段 end 早于 start 表示跨天,统一展示「次日」文案;修复移动端价格区间清空后被 sessionStorage 回写;优化 PC/移动端在线时间控件密度与通栏展示。
This commit is contained in:
yml2213
2026-07-19 17:28:57 +08:00
parent 6450b31129
commit ae79550d78
12 changed files with 410 additions and 136 deletions
@@ -369,20 +369,20 @@
}
.online-time-row {
align-items: center;
align-items: start;
}
.online-time-body {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.online-time-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
min-width: 0;
}
.online-time-range {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
@@ -390,14 +390,40 @@
.online-time-sep {
flex: 0 0 auto;
color: #94a3b8;
font-size: 13px;
font-size: 12px;
font-weight: 700;
line-height: 1;
}
.online-time-next-day {
flex: 0 0 auto;
padding: 2px 6px;
border-radius: 999px;
background: rgba(255, 106, 0, 0.12);
color: #ff6a00;
font-size: 11px;
font-style: normal;
font-weight: 800;
line-height: 1.2;
}
.online-time-summary {
margin: 0;
color: #64748b;
font-size: 12px;
font-weight: 500;
line-height: 1.4;
}
.online-time-body > .field-hint {
grid-column: auto;
margin: 0;
}
.time-chip {
flex: 0 0 auto;
min-height: 32px;
padding: 0 14px;
padding: 0 12px;
border: 1px solid #d6dce5;
border-radius: 999px;
background: #fff;
@@ -423,11 +449,47 @@
}
.time-input {
width: 128px;
width: 112px;
}
.online-time-range :deep(.el-input__wrapper) {
.online-time-controls :deep(.el-date-editor.el-input),
.online-time-controls :deep(.el-date-editor.el-input__wrapper) {
height: 32px;
width: 112px;
}
.online-time-controls :deep(.el-input__wrapper) {
min-height: 32px;
height: 32px;
padding: 0 10px;
border-radius: 999px;
box-shadow: 0 0 0 1px #d6dce5 inset;
background: #fff;
}
.online-time-controls :deep(.el-input__wrapper:hover) {
box-shadow: 0 0 0 1px #c4ccd8 inset;
}
.online-time-controls :deep(.el-input__wrapper.is-focus) {
box-shadow: 0 0 0 1px var(--color-orange-primary) inset;
}
.online-time-controls :deep(.time-input.is-cross .el-input__wrapper) {
box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.4) inset;
background: #fffaf5;
}
.online-time-controls :deep(.el-input__inner) {
height: 30px;
font-size: 13px;
font-weight: 700;
font-variant-numeric: tabular-nums;
color: #30343a;
}
.online-time-controls :deep(.el-input__prefix) {
color: #94a3b8;
}
.login-region-panel {
@@ -938,14 +1000,17 @@
grid-template-columns: 1fr;
}
.online-time-range {
.online-time-controls {
width: 100%;
}
.time-input {
flex: 1;
width: auto;
min-width: 0;
width: 104px;
}
.online-time-controls :deep(.el-date-editor.el-input),
.online-time-controls :deep(.el-date-editor.el-input__wrapper) {
width: 104px;
}
.field-hint {