zkxw-mobile-oa-list-empty-demos.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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, maximum-scale=1" />
  6. <title>mobile-h5 · OA 列表空态 Demo</title>
  7. <style>
  8. :root {
  9. --brand: #0a9f6d;
  10. --brand-dark: #087f57;
  11. --brand-soft: #e9f9f2;
  12. --warn: #d97706;
  13. --warn-soft: #fff7e8;
  14. --nav-bg: #ecfdf5;
  15. --page-bg: #f5f6f8;
  16. --text: #1f2a26;
  17. --text-muted: #6b7b74;
  18. }
  19. * { box-sizing: border-box; }
  20. body {
  21. margin: 0;
  22. font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", -apple-system, system-ui, sans-serif;
  23. color: var(--text);
  24. background:
  25. radial-gradient(900px 420px at 8% -8%, rgba(10, 159, 109, 0.12), transparent 55%),
  26. radial-gradient(700px 380px at 92% 0%, rgba(214, 163, 67, 0.1), transparent 50%),
  27. linear-gradient(180deg, #f8fffc 0%, #f4f7fb 50%, #f7f8fa 100%);
  28. line-height: 1.45;
  29. }
  30. .stage { max-width: 1280px; margin: 0 auto; padding: 28px 16px 56px; }
  31. .hero h1 { margin: 0 0 8px; font-size: 22px; font-weight: 720; }
  32. .hero p { margin: 0; color: #64748b; font-size: 14px; max-width: 800px; }
  33. .hero .note {
  34. margin-top: 12px; display: inline-block; padding: 8px 12px;
  35. border-radius: 10px; background: #fff; border: 1px solid #e2e8f0;
  36. font-size: 12px; color: #64748b;
  37. }
  38. .hero .note strong { color: #0f766e; }
  39. .pain {
  40. margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  41. background: #fff1f2; border: 1px solid #fecdd3;
  42. font-size: 13px; color: #9f1239;
  43. }
  44. .tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 16px; }
  45. .tab {
  46. appearance: none; border: 1px solid #e2e8f0; background: #fff;
  47. border-radius: 999px; padding: 10px 16px; font-size: 13px;
  48. font-weight: 600; color: #475569; cursor: pointer;
  49. }
  50. .tab.is-active {
  51. color: var(--brand-dark); border-color: var(--brand);
  52. background: var(--brand-soft);
  53. box-shadow: 0 0 0 3px rgba(10, 159, 109, 0.16);
  54. }
  55. .tab .badge {
  56. margin-left: 6px; font-size: 10px; padding: 2px 6px;
  57. border-radius: 999px; background: #ecfdf5; color: #047857; font-weight: 700;
  58. }
  59. .layout {
  60. display: grid;
  61. grid-template-columns: minmax(240px, 300px) 1fr;
  62. gap: 20px; align-items: start;
  63. }
  64. @media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
  65. .panel {
  66. background: rgba(255,255,255,.94);
  67. border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px;
  68. box-shadow: 0 10px 28px rgba(15,23,42,.05);
  69. }
  70. .panel h2 { margin: 0 0 4px; font-size: 15px; }
  71. .panel .sub { margin: 0 0 10px; font-size: 12px; color: #64748b; }
  72. .panel ul { margin: 0; padding-left: 18px; font-size: 13px; color: #475569; }
  73. .panel li { margin: 5px 0; }
  74. .panel .pick {
  75. margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  76. background: var(--brand-soft); border: 1px solid #b7ebd4;
  77. font-size: 12px; color: #166534;
  78. }
  79. .phones { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
  80. .phone {
  81. width: 375px; background: #fff; border-radius: 28px; overflow: hidden;
  82. box-shadow: 0 0 0 1px rgb(15 23 42 / 6%), 0 18px 40px rgb(15 23 42 / 12%);
  83. }
  84. .cap {
  85. text-align: center; font-size: 11px; font-weight: 650; color: #64748b;
  86. padding: 8px; background: #f8fafc; border-bottom: 1px solid #eef2f0;
  87. }
  88. .nav {
  89. height: 44px; display: flex; align-items: center; padding: 0 8px 0 4px;
  90. background: var(--nav-bg); border-bottom: 1px solid #d8f3e5; position: relative;
  91. }
  92. .nav-back {
  93. width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  94. }
  95. .nav-back::before {
  96. content: ""; width: 10px; height: 10px;
  97. border-left: 2px solid #0f291e; border-bottom: 2px solid #0f291e;
  98. transform: rotate(45deg); margin-left: 4px;
  99. }
  100. .nav-title {
  101. position: absolute; left: 50%; transform: translateX(-50%);
  102. font-size: 16px; font-weight: 650; color: #0f291e;
  103. }
  104. .nav-right {
  105. margin-left: auto; padding: 0 10px; font-size: 14px;
  106. font-weight: 650; color: var(--brand-dark);
  107. }
  108. .page { background: var(--page-bg); min-height: 520px; }
  109. .search-wrap { padding: 10px 12px; background: #fff; border-bottom: 1px solid #f1f5f9; }
  110. .search {
  111. height: 36px; display: flex; align-items: center; gap: 8px;
  112. padding: 0 12px; border-radius: 10px; border: 1px solid #e8eaed;
  113. background: #fafafa; font-size: 13px; color: #94a3b8;
  114. }
  115. .search::before {
  116. content: ""; width: 12px; height: 12px; border: 1.5px solid #94a3b8;
  117. border-radius: 50%; flex-shrink: 0;
  118. }
  119. /* —— A0 现状 —— */
  120. .e0 {
  121. padding: 72px 16px; text-align: center;
  122. font-size: 14px; color: #5f7a6d; letter-spacing: 0.04em;
  123. }
  124. /* —— E1 插画 + 主副文案 —— */
  125. .e1 {
  126. display: flex; flex-direction: column; align-items: center;
  127. padding: 56px 28px 40px; text-align: center;
  128. }
  129. .e1-art {
  130. width: 120px; height: 120px; border-radius: 50%;
  131. background: radial-gradient(circle at 35% 30%, #fff, #d8f3e7 72%);
  132. display: flex; align-items: center; justify-content: center;
  133. margin-bottom: 18px;
  134. box-shadow: 0 10px 28px rgba(10, 159, 109, 0.12);
  135. }
  136. .e1-art svg { width: 56px; height: 56px; }
  137. .e1-title { font-size: 16px; font-weight: 700; color: #1f2a26; margin-bottom: 8px; }
  138. .e1-desc { font-size: 13px; color: #6b7b74; line-height: 1.55; max-width: 240px; }
  139. /* —— E2 虚线软卡(对齐首页 VanEmpty) —— */
  140. .e2-wrap { padding: 28px 16px; }
  141. .e2 {
  142. display: flex; flex-direction: column; align-items: center;
  143. padding: 36px 20px 28px; text-align: center;
  144. border-radius: 16px;
  145. background: linear-gradient(165deg, #eef9f3 0%, #ffffff 55%);
  146. border: 1.5px dashed #b7e5d0;
  147. }
  148. .e2-blob {
  149. width: 72px; height: 72px; border-radius: 50%;
  150. background: radial-gradient(circle at 35% 30%, #fff, #d8f3e7 70%);
  151. display: flex; align-items: center; justify-content: center;
  152. margin-bottom: 12px;
  153. }
  154. .e2-blob svg { width: 32px; height: 32px; }
  155. .e2-title { font-size: 14px; font-weight: 650; color: #5d746a; margin-bottom: 6px; }
  156. .e2-desc { font-size: 12px; color: #8aa198; line-height: 1.5; }
  157. /* —— E3 带主按钮 CTA —— */
  158. .e3 {
  159. display: flex; flex-direction: column; align-items: center;
  160. padding: 48px 28px 36px; text-align: center;
  161. }
  162. .e3-ico {
  163. width: 88px; height: 88px; border-radius: 28px;
  164. background: linear-gradient(145deg, #e9f9f2, #d1fae5);
  165. border: 1px solid #b7ebd4;
  166. display: flex; align-items: center; justify-content: center;
  167. margin-bottom: 16px;
  168. box-shadow: 0 8px 22px rgba(10, 159, 109, 0.12);
  169. }
  170. .e3-ico svg { width: 40px; height: 40px; }
  171. .e3-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  172. .e3-desc { font-size: 13px; color: #6b7b74; margin-bottom: 20px; max-width: 250px; line-height: 1.55; }
  173. .e3-btn {
  174. height: 44px; padding: 0 28px; border: 0; border-radius: 12px;
  175. background: linear-gradient(135deg, #0a9f6d, #087f57); color: #fff;
  176. font-size: 15px; font-weight: 700; cursor: pointer;
  177. box-shadow: 0 8px 18px rgba(10, 159, 109, 0.28);
  178. }
  179. .e3-link {
  180. margin-top: 14px; font-size: 13px; color: var(--brand-dark);
  181. font-weight: 650; cursor: pointer;
  182. }
  183. /* —— E4 场景插画卡片 —— */
  184. .e4-wrap { padding: 24px 16px; }
  185. .e4 {
  186. background: #fff; border-radius: 18px; padding: 28px 20px 24px;
  187. text-align: center;
  188. box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  189. }
  190. .e4-scene {
  191. height: 110px; margin-bottom: 16px; position: relative;
  192. display: flex; align-items: flex-end; justify-content: center;
  193. }
  194. .e4-desk {
  195. width: 160px; height: 14px; border-radius: 8px;
  196. background: #e2e8e6; position: absolute; bottom: 8px;
  197. }
  198. .e4-paper {
  199. width: 72px; height: 88px; border-radius: 10px;
  200. background: #fff; border: 2px solid #c6f0dc;
  201. box-shadow: 0 8px 16px rgba(15,23,42,.06);
  202. position: relative; z-index: 1;
  203. display: flex; flex-direction: column; gap: 8px; padding: 14px 12px;
  204. }
  205. .e4-paper i {
  206. display: block; height: 6px; border-radius: 3px; background: #d8f3e5;
  207. }
  208. .e4-paper i:nth-child(2) { width: 70%; }
  209. .e4-paper i:nth-child(3) { width: 45%; }
  210. .e4-badge {
  211. position: absolute; right: 88px; top: 10px; z-index: 2;
  212. width: 36px; height: 36px; border-radius: 50%;
  213. background: var(--warn-soft); border: 2px solid #f0d9a8;
  214. color: var(--warn); font-size: 18px; font-weight: 700;
  215. display: flex; align-items: center; justify-content: center;
  216. }
  217. .e4-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
  218. .e4-desc { font-size: 12px; color: #6b7b74; line-height: 1.5; margin-bottom: 16px; }
  219. .e4-btn {
  220. height: 40px; padding: 0 22px; border-radius: 10px; border: 0;
  221. background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  222. cursor: pointer;
  223. }
  224. /* —— E5 搜索无结果变体 —— */
  225. .e5 {
  226. display: flex; flex-direction: column; align-items: center;
  227. padding: 48px 28px; text-align: center;
  228. }
  229. .e5-ico {
  230. width: 80px; height: 80px; border-radius: 50%;
  231. background: #f1f5f9;
  232. display: flex; align-items: center; justify-content: center;
  233. margin-bottom: 14px;
  234. }
  235. .e5-ico svg { width: 36px; height: 36px; }
  236. .e5-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
  237. .e5-desc { font-size: 13px; color: #6b7b74; margin-bottom: 16px; }
  238. .e5-chip {
  239. height: 34px; padding: 0 16px; border-radius: 999px;
  240. border: 1px solid #d8e3de; background: #fff;
  241. font-size: 13px; font-weight: 650; color: var(--brand-dark);
  242. cursor: pointer;
  243. }
  244. /* —— E6 极简大字 + 微插画 —— */
  245. .e6 {
  246. padding: 64px 24px; text-align: center;
  247. }
  248. .e6-emoji {
  249. width: 64px; height: 64px; margin: 0 auto 14px;
  250. border-radius: 20px; background: var(--brand-soft);
  251. display: flex; align-items: center; justify-content: center;
  252. }
  253. .e6-emoji svg { width: 30px; height: 30px; }
  254. .e6-title { font-size: 15px; font-weight: 650; color: #334155; margin-bottom: 6px; }
  255. .e6-desc { font-size: 12px; color: #94a3b8; }
  256. </style>
  257. </head>
  258. <body>
  259. <div class="stage">
  260. <div class="hero">
  261. <h1>OA 列表空态 · 风格选型</h1>
  262. <p>
  263. 针对草稿箱 / 待办 / 已办 / 抄送等列表页。现状仅为灰色「暂无草稿」一行字。
  264. Token 对齐三墙绿;可与首页已有虚线软卡空态统一或做列表专用加强版。
  265. </p>
  266. <div class="note">请选 <strong>E1–E6</strong>(或组合:如 E3 布局 + E4 插画)。选定后落到 <code>mobile-h5</code>。</div>
  267. <div class="pain">现状痛点:信息弱、无引导、与钉钉风列表不协调。</div>
  268. </div>
  269. <div class="tabs" id="tabs">
  270. <button class="tab is-active" data-k="e0">E0 现状</button>
  271. <button class="tab" data-k="e1">E1 圆形插画</button>
  272. <button class="tab" data-k="e2">E2 虚线软卡</button>
  273. <button class="tab" data-k="e3">E3 带 CTA<span class="badge">推荐</span></button>
  274. <button class="tab" data-k="e4">E4 场景卡片</button>
  275. <button class="tab" data-k="e5">E5 搜索无结果</button>
  276. <button class="tab" data-k="e6">E6 极简加强</button>
  277. </div>
  278. <div class="layout">
  279. <div class="panel" id="desc"></div>
  280. <div class="phones" id="phones"></div>
  281. </div>
  282. </div>
  283. <svg xmlns="http://www.w3.org/2000/svg" style="display:none">
  284. <symbol id="i-inbox" viewBox="0 0 24 24" fill="none" stroke="#0a9f6d" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
  285. <polyline points="22 12 16 12 14 15 10 15 8 12 2 12"/>
  286. <path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/>
  287. </symbol>
  288. <symbol id="i-doc" viewBox="0 0 24 24" fill="none" stroke="#0a9f6d" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
  289. <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
  290. <polyline points="14 2 14 8 20 8"/>
  291. <line x1="8" y1="13" x2="16" y2="13"/>
  292. <line x1="8" y1="17" x2="13" y2="17"/>
  293. </symbol>
  294. <symbol id="i-search" viewBox="0 0 24 24" fill="none" stroke="#94a3b8" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
  295. <circle cx="11" cy="11" r="7"/>
  296. <line x1="21" y1="21" x2="16.65" y2="16.65"/>
  297. </symbol>
  298. <symbol id="i-check" viewBox="0 0 24 24" fill="none" stroke="#0a9f6d" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
  299. <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/>
  300. <polyline points="22 4 12 14.01 9 11.01"/>
  301. </symbol>
  302. </svg>
  303. <script>
  304. const DESCS = {
  305. e0: {
  306. title: "E0 · 现状对照",
  307. sub: "OA 列表页当前实现:一行灰字。",
  308. items: ["无插画、无说明、无下一步引导", "与钉钉风卡片列表反差大", "仅作对照"],
  309. pick: "不建议保留。"
  310. },
  311. e1: {
  312. title: "E1 · 圆形插画",
  313. sub: "大圆形浅绿底 + 图标 + 主副文案,居中留白。",
  314. items: ["视觉重心明确", "无按钮,适合纯浏览空列表", "实现成本低"],
  315. pick: "适合已办/抄送等「没有也正常」的列表。"
  316. },
  317. e2: {
  318. title: "E2 · 虚线软卡",
  319. sub: "与首页 VanEmpty(方案 B)一致。",
  320. items: ["全站空态统一", "虚线卡略像「占位块」", "可直接复用组件"],
  321. pick: "想和首页空态完全一致时选 E2。"
  322. },
  323. e3: {
  324. title: "E3 · 插画 + 主按钮(推荐)",
  325. sub: "说明原因,并给出「去发起审批」主行动。",
  326. items: ["解决「空了之后做什么」", "主按钮视觉符合三墙绿", "可加次级文字链(如下拉刷新说明)"],
  327. pick: "草稿箱 / 我发起的 最推荐。"
  328. },
  329. e4: {
  330. title: "E4 · 场景卡片",
  331. sub: "白卡片内嵌简易场景插画(纸张 + 草稿标记)。",
  332. items: ["更有「产品感」", "CSS 绘制、无额外图片依赖", "带一个主按钮"],
  333. pick: "想要比 E3 更精致一点时选 E4。"
  334. },
  335. e5: {
  336. title: "E5 · 搜索无结果",
  337. sub: "有关键词但搜不到时的专用空态。",
  338. items: ["文案强调「未找到」", "提供「清空搜索」胶囊按钮", "与「真的没有数据」区分"],
  339. pick: "建议与 E3/E4 搭配:无数据用 E3,搜索空用 E5。"
  340. },
  341. e6: {
  342. title: "E6 · 极简加强",
  343. sub: "比现状多一个图标底板,仍保持克制。",
  344. items: ["改动最小", "仍偏素", "适合不想加按钮的页面"],
  345. pick: "过渡方案;长期更建议 E3/E4。"
  346. }
  347. };
  348. function shell(cap, body, opts) {
  349. opts = opts || {};
  350. var kw = opts.keyword || "";
  351. return (
  352. '<div class="phone"><div class="cap">' + cap + '</div>' +
  353. '<div class="nav"><div class="nav-back"></div><div class="nav-title">草稿箱</div><div class="nav-right">管理</div></div>' +
  354. '<div class="page"><div class="search-wrap"><div class="search">' +
  355. (kw || "搜索流程名称") +
  356. '</div></div>' + body + '</div></div>'
  357. );
  358. }
  359. const RENDER = {
  360. e0: function () {
  361. return shell("现状 · 纯文字", '<div class="e0">暂无草稿</div>');
  362. },
  363. e1: function () {
  364. return shell("圆形插画",
  365. '<div class="e1">' +
  366. '<div class="e1-art"><svg><use href="#i-inbox"/></svg></div>' +
  367. '<div class="e1-title">暂无草稿</div>' +
  368. '<div class="e1-desc">发起审批时保存的草稿会显示在这里</div>' +
  369. '</div>'
  370. ) + shell("待办变体",
  371. '<div class="e1">' +
  372. '<div class="e1-art"><svg><use href="#i-check"/></svg></div>' +
  373. '<div class="e1-title">暂无待办</div>' +
  374. '<div class="e1-desc">当前没有需要你处理的审批</div>' +
  375. '</div>'
  376. );
  377. },
  378. e2: function () {
  379. return shell("虚线软卡 · 对齐首页",
  380. '<div class="e2-wrap"><div class="e2">' +
  381. '<div class="e2-blob"><svg><use href="#i-inbox"/></svg></div>' +
  382. '<div class="e2-title">暂无草稿</div>' +
  383. '<div class="e2-desc">保存过的审批草稿会出现在这里</div>' +
  384. '</div></div>'
  385. );
  386. },
  387. e3: function () {
  388. return shell("推荐 · 带主按钮",
  389. '<div class="e3">' +
  390. '<div class="e3-ico"><svg><use href="#i-doc"/></svg></div>' +
  391. '<div class="e3-title">暂无草稿</div>' +
  392. '<div class="e3-desc">填写审批时可随时保存为草稿,方便下次继续</div>' +
  393. '<button class="e3-btn">去发起审批</button>' +
  394. '<div class="e3-link">了解如何使用草稿</div>' +
  395. '</div>'
  396. ) + shell("待办 · 无 CTA 也可",
  397. '<div class="e3">' +
  398. '<div class="e3-ico"><svg><use href="#i-check"/></svg></div>' +
  399. '<div class="e3-title">暂无待办</div>' +
  400. '<div class="e3-desc">真棒,当前没有待你处理的审批</div>' +
  401. '</div>'
  402. );
  403. },
  404. e4: function () {
  405. return shell("场景插画卡",
  406. '<div class="e4-wrap"><div class="e4">' +
  407. '<div class="e4-scene">' +
  408. '<div class="e4-badge">!</div>' +
  409. '<div class="e4-paper"><i></i><i></i><i></i></div>' +
  410. '<div class="e4-desk"></div>' +
  411. '</div>' +
  412. '<div class="e4-title">还没有草稿</div>' +
  413. '<div class="e4-desc">从发起审批开始,未提交的内容会自动出现在这里</div>' +
  414. '<button class="e4-btn">去发起审批</button>' +
  415. '</div></div>'
  416. );
  417. },
  418. e5: function () {
  419. return shell("搜索无结果",
  420. '<div class="e5">' +
  421. '<div class="e5-ico"><svg><use href="#i-search"/></svg></div>' +
  422. '<div class="e5-title">未找到相关草稿</div>' +
  423. '<div class="e5-desc">没有匹配「入帐」的结果,试试其他关键词</div>' +
  424. '<button class="e5-chip">清空搜索</button>' +
  425. '</div>',
  426. { keyword: "入帐" }
  427. );
  428. },
  429. e6: function () {
  430. return shell("极简加强",
  431. '<div class="e6">' +
  432. '<div class="e6-emoji"><svg><use href="#i-inbox"/></svg></div>' +
  433. '<div class="e6-title">暂无草稿</div>' +
  434. '<div class="e6-desc">保存的草稿会显示在这里</div>' +
  435. '</div>'
  436. );
  437. }
  438. };
  439. const descEl = document.getElementById("desc");
  440. const phonesEl = document.getElementById("phones");
  441. const tabs = document.getElementById("tabs");
  442. function show(k) {
  443. var d = DESCS[k];
  444. descEl.innerHTML =
  445. "<h2>" + d.title + "</h2>" +
  446. '<p class="sub">' + d.sub + "</p>" +
  447. "<ul>" + d.items.map(function (i) { return "<li>" + i + "</li>"; }).join("") + "</ul>" +
  448. '<div class="pick">' + d.pick + "</div>";
  449. phonesEl.innerHTML = RENDER[k]();
  450. }
  451. tabs.addEventListener("click", function (e) {
  452. var btn = e.target.closest(".tab");
  453. if (!btn) return;
  454. tabs.querySelectorAll(".tab").forEach(function (t) {
  455. t.classList.toggle("is-active", t === btn);
  456. });
  457. show(btn.getAttribute("data-k"));
  458. });
  459. show("e0");
  460. </script>
  461. </body>
  462. </html>