ui-richness-index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>UI 丰富度对比 · 入口</title>
  7. <link rel="preconnect" href="https://fonts.googleapis.com" />
  8. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
  9. <style>
  10. :root {
  11. --primary: #10b981;
  12. --primary-dark: #059669;
  13. --primary-bg: #ecfdf5;
  14. --text: #1e293b;
  15. --text-muted: #64748b;
  16. --border: #d9e8e2;
  17. --surface: #fff;
  18. --radius: 10px;
  19. }
  20. * { box-sizing: border-box; }
  21. body {
  22. margin: 0;
  23. font-family: Inter, -apple-system, sans-serif;
  24. font-size: 14px;
  25. line-height: 1.5;
  26. color: var(--text);
  27. background: #f8fafc;
  28. }
  29. .hero {
  30. padding: 40px 24px 32px;
  31. background: linear-gradient(135deg, #ecfdf5 0%, #fff 60%);
  32. border-bottom: 1px solid var(--border);
  33. }
  34. .hero h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.02em; }
  35. .hero p { margin: 0; max-width: 720px; color: var(--text-muted); font-size: 15px; }
  36. .wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px; }
  37. h2 { font-size: 18px; margin: 0 0 16px; }
  38. .grid {
  39. display: grid;
  40. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  41. gap: 16px;
  42. margin-bottom: 32px;
  43. }
  44. .card {
  45. background: var(--surface);
  46. border: 1px solid var(--border);
  47. border-radius: var(--radius);
  48. padding: 18px 20px;
  49. box-shadow: 0 1px 3px rgba(0,0,0,.05);
  50. display: flex;
  51. flex-direction: column;
  52. gap: 10px;
  53. }
  54. .card-head { display: flex; align-items: center; gap: 10px; }
  55. .level {
  56. font-size: 11px;
  57. font-weight: 700;
  58. padding: 3px 10px;
  59. border-radius: 999px;
  60. letter-spacing: 0.03em;
  61. }
  62. .L1 { background: #e2e8f0; color: #475569; }
  63. .L2 { background: #d1fae5; color: #047857; }
  64. .L3 { background: #10b981; color: #fff; }
  65. .card h3 { margin: 0; font-size: 16px; }
  66. .card p { margin: 0; font-size: 13px; color: var(--text-muted); flex: 1; }
  67. .card a {
  68. display: inline-flex;
  69. align-items: center;
  70. gap: 6px;
  71. align-self: flex-start;
  72. padding: 8px 14px;
  73. border-radius: 8px;
  74. background: var(--primary);
  75. color: #fff;
  76. text-decoration: none;
  77. font-weight: 600;
  78. font-size: 13px;
  79. }
  80. .card a.secondary {
  81. background: var(--surface);
  82. color: var(--primary-dark);
  83. border: 1px solid var(--border);
  84. }
  85. table {
  86. width: 100%;
  87. border-collapse: collapse;
  88. background: var(--surface);
  89. border: 1px solid var(--border);
  90. border-radius: var(--radius);
  91. overflow: hidden;
  92. font-size: 13px;
  93. }
  94. th, td {
  95. padding: 10px 14px;
  96. text-align: center;
  97. border-bottom: 1px solid var(--border);
  98. }
  99. th {
  100. background: #f8fafc;
  101. font-weight: 600;
  102. color: var(--text-muted);
  103. font-size: 12px;
  104. }
  105. td:first-child, th:first-child { text-align: left; }
  106. .yes { color: var(--primary-dark); font-weight: 700; }
  107. .no { color: #94a3b8; }
  108. .partial { color: var(--text-muted); }
  109. .tip {
  110. margin-top: 24px;
  111. padding: 14px 16px;
  112. border-radius: var(--radius);
  113. border: 1px solid var(--border);
  114. background: var(--primary-bg);
  115. font-size: 13px;
  116. color: #065f46;
  117. }
  118. .links-row { display: flex; flex-wrap: wrap; gap: 8px; }
  119. </style>
  120. </head>
  121. <body>
  122. <header class="hero">
  123. <div class="wrap" style="padding:0">
  124. <h1>Web 管理端 · UI 丰富度对比 Demo</h1>
  125. <p>
  126. 基于 Fresh Mint 规范与当前 <code>web-admin</code> 现状,提供 L1(现状素)→ L2(适度增强)→ L3(规范内丰富)三档样稿。
  127. 用浏览器直接打开各 HTML 文件即可对比。建议先并排打开 L1 与 L3,感受差异。
  128. </p>
  129. </div>
  130. </header>
  131. <main class="wrap">
  132. <h2>工作台 / 首页</h2>
  133. <div class="grid">
  134. <article class="card">
  135. <div class="card-head">
  136. <span class="level L1">L1 现状</span>
  137. <h3>精简工作台</h3>
  138. </div>
  139. <p>对应当前 <code>console-lite</code>:仅标题 + 说明文字 + 纯文字按钮,无统计、无图表、无快捷卡片。</p>
  140. <a href="ui-richness-L1-console-plain.html">打开 Demo →</a>
  141. </article>
  142. <article class="card">
  143. <div class="card-head">
  144. <span class="level L3">L3 丰富</span>
  145. <h3>业务工作台</h3>
  146. </div>
  147. <p>规范参考版:预警条 + 6 张指标卡(含图标)+ 双列趋势图 + 快捷入口宫格 + 待办列表。</p>
  148. <a href="ui-richness-L3-console-rich.html">打开 Demo →</a>
  149. </article>
  150. </div>
  151. <h2>业务列表页</h2>
  152. <div class="grid">
  153. <article class="card">
  154. <div class="card-head">
  155. <span class="level L1">L1 现状</span>
  156. <h3>纯文字 CRUD 列表</h3>
  157. </div>
  158. <p>对应典型主数据页:普通 h2 标题、纯文字列、无 Tag、无缩略图/头像、操作按钮无图标。</p>
  159. <a href="ui-richness-L1-list-plain.html">打开 Demo →</a>
  160. </article>
  161. <article class="card">
  162. <div class="card-head">
  163. <span class="level L2">L2 适度</span>
  164. <h3>规范内轻增强</h3>
  165. </div>
  166. <p>仍保持列表范式,但补齐:绿色竖条标题、面板图标、按钮图标、状态 Tag、页头说明——改动小、收益明显。</p>
  167. <a href="ui-richness-L2-list-moderate.html">打开 Demo →</a>
  168. </article>
  169. <article class="card">
  170. <div class="card-head">
  171. <span class="level L3">L3 丰富</span>
  172. <h3>复合信息列表</h3>
  173. </div>
  174. <p>在 L2 基础上增加:客户头像+副标题、商品缩略图、进度条、金额高亮、迷你趋势 sparkline 列。</p>
  175. <a href="ui-richness-L3-list-rich.html">打开 Demo →</a>
  176. </article>
  177. </div>
  178. <h2>详情 / 查看态</h2>
  179. <div class="grid">
  180. <article class="card">
  181. <div class="card-head">
  182. <span class="level L1">L1 现状</span>
  183. <h3>纯描述列表</h3>
  184. </div>
  185. <p>类似 <code>el-descriptions border</code>:字段名+值平铺,无首屏 Hero、无分区卡片。</p>
  186. <a href="ui-richness-L1-detail-plain.html">打开 Demo →</a>
  187. </article>
  188. <article class="card">
  189. <div class="card-head">
  190. <span class="level L3">L3 丰富</span>
  191. <h3>Hero + 分区卡片</h3>
  192. </div>
  193. <p>规范 <code>view-hero</code> + <code>detail-section</code>:首屏摘要、Tag 状态、分区折叠感、关键字段视觉分组。</p>
  194. <a href="ui-richness-L3-detail-rich.html">打开 Demo →</a>
  195. </article>
  196. </div>
  197. <h2>丰富化模式样例(按场景)</h2>
  198. <p style="margin:-8px 0 16px;font-size:13px;color:var(--text-muted)">
  199. 以下每个 Demo 聚焦一种「如何让界面更丰富」的手法,可直接对照业务场景选用。
  200. </p>
  201. <div class="grid">
  202. <article class="card">
  203. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>空状态 + 引导</h3></div>
  204. <p>列表无数据时:插画区 + 说明 + 主行动按钮,避免空白表格的冷感。</p>
  205. <a href="ui-richness-P01-empty-state.html">打开 Demo →</a>
  206. </article>
  207. <article class="card">
  208. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>卡片网格视图</h3></div>
  209. <p>商品/设备/工单等实体:表格之外的卡片视图,封面图 + Tag + 底部操作。</p>
  210. <a href="ui-richness-P02-card-grid.html">打开 Demo →</a>
  211. </article>
  212. <article class="card">
  213. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>时间线 / 操作动态</h3></div>
  214. <p>订单跟踪、审批记录、样本流转:节点图标 + 竖线 + 时间戳。</p>
  215. <a href="ui-richness-P03-timeline.html">打开 Demo →</a>
  216. </article>
  217. <article class="card">
  218. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>看板 Kanban</h3></div>
  219. <p>工单/任务按状态分列:列头计数 + 卡片摘要 + 负责人头像。</p>
  220. <a href="ui-richness-P04-kanban.html">打开 Demo →</a>
  221. </article>
  222. <article class="card">
  223. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>分区表单</h3></div>
  224. <p>长表单拆成带图标的分区卡片(基本信息 / 联系 / 结算),降低「一张大白板」感。</p>
  225. <a href="ui-richness-P05-form-sections.html">打开 Demo →</a>
  226. </article>
  227. <article class="card">
  228. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>商品媒体画廊</h3></div>
  229. <p>详情/编辑页:主图 4:3 + 缩略图网格 + Hero 信息区,适合商品/样本类。</p>
  230. <a href="ui-richness-P06-product-media.html">打开 Demo →</a>
  231. </article>
  232. <article class="card">
  233. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>树 + 详情分栏</h3></div>
  234. <p>分类/组织/库位:左侧树选中高亮 + 右侧详情卡片,比纯树表更有层次。</p>
  235. <a href="ui-richness-P07-tree-split.html">打开 Demo →</a>
  236. </article>
  237. <article class="card">
  238. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>流程步骤条</h3></div>
  239. <p>订单/样本/工单生命周期:顶部步骤条展示当前阶段,下方详情联动。</p>
  240. <a href="ui-richness-P08-workflow-steps.html">打开 Demo →</a>
  241. </article>
  242. <article class="card">
  243. <div class="card-head"><span class="level" style="background:#6366f1;color:#eef2ff">模式</span><h3>同屏 Before/After</h3></div>
  244. <p>左素右丰并排对比:同一业务块(筛选区、工具栏、表格行)的改造前后。</p>
  245. <a href="ui-richness-P09-side-by-side.html">打开 Demo →</a>
  246. </article>
  247. </div>
  248. <h2>维度对照表</h2>
  249. <table>
  250. <thead>
  251. <tr>
  252. <th>视觉维度</th>
  253. <th>L1 现状</th>
  254. <th>L2 适度</th>
  255. <th>L3 丰富</th>
  256. </tr>
  257. </thead>
  258. <tbody>
  259. <tr><td>页头说明(page-desc)</td><td class="no">✗</td><td class="yes">✓</td><td class="yes">✓</td></tr>
  260. <tr><td>面板标题竖条 / 图标</td><td class="no">✗</td><td class="yes">✓</td><td class="yes">✓</td></tr>
  261. <tr><td>按钮前缀图标</td><td class="no">✗</td><td class="yes">✓</td><td class="yes">✓</td></tr>
  262. <tr><td>状态 Tag 标签</td><td class="no">纯文字</td><td class="yes">el-tag 语义色</td><td class="yes">✓</td></tr>
  263. <tr><td>统计指标卡</td><td class="no">✗</td><td class="partial">可选条带</td><td class="yes">✓ 含图标</td></tr>
  264. <tr><td>图表 / 趋势</td><td class="no">✗</td><td class="no">✗</td><td class="yes">✓</td></tr>
  265. <tr><td>复合列(头像/缩略图)</td><td class="no">✗</td><td class="no">✗</td><td class="yes">✓</td></tr>
  266. <tr><td>进度 / 迷你图</td><td class="no">✗</td><td class="no">✗</td><td class="yes">✓</td></tr>
  267. <tr><td>详情 Hero 首屏</td><td class="no">✗</td><td class="no">✗</td><td class="yes">✓</td></tr>
  268. <tr><td>快捷入口宫格</td><td class="no">✗</td><td class="no">✗</td><td class="yes">✓</td></tr>
  269. <tr><td>符合 Fresh Mint 克制配色</td><td class="yes">✓</td><td class="yes">✓</td><td class="yes">✓</td></tr>
  270. </tbody>
  271. </table>
  272. <div class="tip">
  273. <strong>如何选档?</strong>
  274. L2 适合批量改造现有 CRUD 页(成本低、规范合规);
  275. L3 适合工作台、订单/工单/客户等高频页(信息密度高、业务感强)。
  276. 不建议为了「不素」而引入高饱和多色或 Tab 图标——与现有规范冲突。
  277. </div>
  278. <p style="margin-top:24px;font-size:13px;color:var(--text-muted)">
  279. 权威参考:<a href="../fresh-mint-green.html" style="color:var(--primary-dark)">fresh-mint-green.html</a>
  280. · 规范文档:<code>docs/web-admin-ui-spec-fresh-mint.md</code>
  281. </p>
  282. </main>
  283. </body>
  284. </html>