fix: 优化客户端溯源页暗色适配
This commit is contained in:
@@ -153,6 +153,7 @@
|
||||
- 溯源模板字段标识提示(2026-07-05):模板字段配置中“英文标识”输入框占位提示缩短为“英文唯一标识”(英文:`Unique English key`),避免窄输入框内示例文本过长导致显示不全。
|
||||
- 溯源模板停用确认(2026-07-05):溯源模板列表操作列的停用按钮不再一键直接停用;当模板从启用切换到停用时会先弹出确认框,说明停用后新建档案不能再选择该模板,确认后才调用更新接口。启用仍保持直接执行。
|
||||
- 超级管理员艺术品修改自动通过(2026-07-05):艺术品档案已有作品修改时,超级管理员仍通过“提交审核”弹窗填写修改标题和修改理由用于留痕,但后端 `ArtworkService.update` 会识别 `RoleType.SUPER_ADMIN` 并直接创建 `APPROVED` 修改记录、立即应用快照到正式数据;审核人/正式 `auditedBy` 记为该超级管理员,审核意见为空,审核时间/修改记录 `reviewedAt` 为提交时间。普通运营账号仍创建待审核修改稿,等待审核员/超管审核。
|
||||
- 客户端溯源页暗色适配(2026-07-05):`Trace.vue` 将基础信息分隔线、时间轴线、时间轴说明文字、查看图片按钮底色、缩略图底色、轮播/证书圆点等浅色硬编码抽成 `--trace-*` 变量,并分别为系统深色和手动 `html[data-theme='dark']` 补充暗色变量,避免夜间模式下浅色控件和分割线突兀。
|
||||
|
||||
## 当前代码基准与注意事项
|
||||
|
||||
|
||||
@@ -749,6 +749,15 @@ watch(
|
||||
box-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
.app-shell {
|
||||
--trace-divider: #eef1f5;
|
||||
--trace-line: #e7ecf3;
|
||||
--trace-desc: #374151;
|
||||
--trace-control-bg: #f4f7fc;
|
||||
--trace-thumb-bg: #e7ecf3;
|
||||
--trace-dot-bg: #cfd8e3;
|
||||
--trace-accent: #2e5496;
|
||||
}
|
||||
.topbar-name {
|
||||
flex: 1;
|
||||
font-weight: 600;
|
||||
@@ -933,7 +942,7 @@ watch(
|
||||
max-width: 420px;
|
||||
height: 240px;
|
||||
border-radius: 14px;
|
||||
background: #e7ecf3;
|
||||
background: var(--trace-thumb-bg);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
/* 非当前张略缩小并降低不透明度,突出居中张 */
|
||||
@@ -1006,7 +1015,7 @@ watch(
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: #cfd8e3;
|
||||
background: var(--trace-dot-bg);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
width 0.25s ease,
|
||||
@@ -1022,7 +1031,7 @@ watch(
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: 12px;
|
||||
color: #6b7785;
|
||||
color: var(--muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.carousel-count-ico {
|
||||
@@ -1061,7 +1070,7 @@ watch(
|
||||
.field {
|
||||
display: flex;
|
||||
font-size: 14px;
|
||||
border-bottom: 1px dashed #eef1f5;
|
||||
border-bottom: 1px dashed var(--trace-divider);
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
.field-label {
|
||||
@@ -1079,7 +1088,7 @@ watch(
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
background: #e7ecf3;
|
||||
background: var(--trace-thumb-bg);
|
||||
}
|
||||
.field-link {
|
||||
color: var(--brand-2);
|
||||
@@ -1094,7 +1103,7 @@ watch(
|
||||
position: relative;
|
||||
}
|
||||
.tl-item:not(:last-child) .tl-body {
|
||||
border-left: 2px solid #e7ecf3;
|
||||
border-left: 2px solid var(--trace-line);
|
||||
margin-left: 5px;
|
||||
padding-left: 18px;
|
||||
padding-bottom: 18px;
|
||||
@@ -1107,7 +1116,7 @@ watch(
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #2e5496;
|
||||
background: var(--trace-accent);
|
||||
margin-top: 4px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
@@ -1122,15 +1131,15 @@ watch(
|
||||
}
|
||||
.tl-desc {
|
||||
font-size: 13px;
|
||||
color: #374151;
|
||||
color: var(--trace-desc);
|
||||
}
|
||||
.tl-toggle {
|
||||
margin-top: 8px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid #d0d7e2;
|
||||
background: #f4f7fc;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--trace-control-bg);
|
||||
color: var(--brand-2);
|
||||
border-radius: 999px;
|
||||
padding: 4px 12px;
|
||||
@@ -1163,7 +1172,7 @@ watch(
|
||||
height: 92px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: #e7ecf3;
|
||||
background: var(--trace-thumb-bg);
|
||||
}
|
||||
.tl-media-thumb img,
|
||||
.tl-media-thumb video {
|
||||
@@ -1281,7 +1290,7 @@ watch(
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: #cfd8e3;
|
||||
background: var(--trace-dot-bg);
|
||||
cursor: pointer;
|
||||
}
|
||||
.cert-dots .dot.active {
|
||||
@@ -1295,7 +1304,7 @@ watch(
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px dashed #eef1f5;
|
||||
border-bottom: 1px dashed var(--trace-divider);
|
||||
}
|
||||
.chain-k {
|
||||
width: 78px;
|
||||
@@ -1425,6 +1434,15 @@ watch(
|
||||
transform: translateY(8px) scale(0.98);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.app-shell {
|
||||
--trace-divider: rgba(148, 163, 184, 0.28);
|
||||
--trace-line: rgba(96, 165, 250, 0.52);
|
||||
--trace-desc: #cbd5e1;
|
||||
--trace-control-bg: rgba(15, 23, 42, 0.72);
|
||||
--trace-thumb-bg: #1e293b;
|
||||
--trace-dot-bg: rgba(148, 163, 184, 0.42);
|
||||
--trace-accent: #60a5fa;
|
||||
}
|
||||
.topbar {
|
||||
background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
|
||||
color: var(--text);
|
||||
@@ -1445,6 +1463,15 @@ watch(
|
||||
border-bottom-color: rgba(46, 84, 150, 0.12);
|
||||
box-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
}
|
||||
:global(html[data-theme='light']) .app-shell {
|
||||
--trace-divider: #eef1f5;
|
||||
--trace-line: #e7ecf3;
|
||||
--trace-desc: #374151;
|
||||
--trace-control-bg: #f4f7fc;
|
||||
--trace-thumb-bg: #e7ecf3;
|
||||
--trace-dot-bg: #cfd8e3;
|
||||
--trace-accent: #2e5496;
|
||||
}
|
||||
:global(html[data-theme='light']) .lang {
|
||||
color: #17324d;
|
||||
}
|
||||
@@ -1458,6 +1485,15 @@ watch(
|
||||
border-bottom-color: rgba(148, 163, 184, 0.18);
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
:global(html[data-theme='dark']) .app-shell {
|
||||
--trace-divider: rgba(148, 163, 184, 0.28);
|
||||
--trace-line: rgba(96, 165, 250, 0.52);
|
||||
--trace-desc: #cbd5e1;
|
||||
--trace-control-bg: rgba(15, 23, 42, 0.72);
|
||||
--trace-thumb-bg: #1e293b;
|
||||
--trace-dot-bg: rgba(148, 163, 184, 0.42);
|
||||
--trace-accent: #60a5fa;
|
||||
}
|
||||
:global(html[data-theme='dark']) .lang {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user