更新电商AI平台原型交互

This commit is contained in:
iye
2026-05-25 19:12:56 +08:00
parent 04335f3269
commit 553014cc79
23 changed files with 6661 additions and 860 deletions
+3
View File
@@ -167,6 +167,7 @@ img, svg, video { display: block; max-width: 100%; }
.muted-2 { color: var(--black-alpha-48); }
.spacer { flex: 1; }
.hstack { display: flex; align-items: center; gap: 8px; }
.hstack[hidden], .vstack[hidden] { display: none; }
.vstack { display: flex; flex-direction: column; gap: 8px; }
.divider { height: 1px; background: var(--border-faint); margin: 16px 0; }
@@ -374,6 +375,7 @@ main { position: relative; background: var(--background-base); min-width: 0; }
transition: background var(--t-base), border-color var(--t-base);
}
.queue-chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); }
.queue-chip[hidden] { display: none; }
.queue-chip svg { width: 14px; height: 14px; color: var(--black-alpha-56); }
.queue-chip .count {
display: inline-flex; align-items: center; justify-content: center;
@@ -481,6 +483,7 @@ main { position: relative; background: var(--background-base); min-width: 0; }
border-color: var(--black-alpha-12);
}
.btn svg { width: 13px; height: 13px; }
.btn[hidden] { display: none; }
.btn-primary {
background: var(--heat);
+2 -2
View File
@@ -93,12 +93,12 @@ window.Shell = {
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="9"/><path d="M12 7v10M9 10h4a1.5 1.5 0 0 1 0 3h-3a1.5 1.5 0 0 0 0 3h4"/></svg>
余额 <strong>${balance}</strong>
</span>
<button class="queue-chip" onclick="Shell.toast('任务队列', '3 个进行中')">
<button class="queue-chip" onclick="Shell.toast('任务队列', '3 个进行中')" hidden>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18M3 12h18M3 18h18"/></svg>
任务队列
<span class="count">3</span>
</button>
<button class="icon-btn" onclick="Shell.toast('通知中心', '12 条未读')">
<button class="icon-btn" onclick="location.href='messages.html'" title="消息中心">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10 21a2 2 0 0 0 4 0"/></svg>
<span class="count-noti">12</span>
</button>