shanxia-mp-index.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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, maximum-scale=1.0, user-scalable=no" />
  6. <title>山峡化工小程序 · Demo 索引</title>
  7. <link rel="stylesheet" href="shanxia-mp-base.css" />
  8. <style>
  9. body { background: #eef3f0; }
  10. .index-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
  11. .index-hero { background: var(--header-gradient); color: #fff; border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow-md); margin-bottom: 20px; }
  12. .index-hero h1 { font-size: 22px; margin-bottom: 8px; }
  13. .index-hero p { font-size: 13px; opacity: 0.9; line-height: 1.6; }
  14. .index-grid { display: grid; gap: 12px; }
  15. .index-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
  16. .index-card:hover { box-shadow: var(--shadow-sm); }
  17. .index-card__icon { width: 44px; height: 44px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 13px; }
  18. .index-card h2 { font-size: 16px; margin-bottom: 4px; }
  19. .index-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
  20. .index-card__tag { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--brand-green-dark); background: var(--brand-green-soft); padding: 2px 8px; border-radius: 999px; }
  21. .index-section-title { font-size: 13px; color: var(--text-muted); margin: 20px 0 10px; font-weight: 600; }
  22. .token-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-top: 20px; }
  23. .token-box h3 { font-size: 14px; margin-bottom: 10px; }
  24. .arch-list { font-size: 12px; color: var(--text-muted); line-height: 1.8; padding-left: 16px; }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="index-wrap">
  29. <header class="index-hero">
  30. <h1>山峡化工 · 小程序 UI Demo</h1>
  31. <p>底部 Tab:首页 / 待办 / 工作台 / 我的。登录后默认进入<strong>工作台</strong>,点击业务菜单进入列表办理页。</p>
  32. </header>
  33. <p class="index-section-title">UI Pattern 组件库(列表 / 查看 / 表单 / 弹窗)</p>
  34. <div class="index-grid">
  35. <a class="index-card" href="shanxia-mp-pattern-index.html">
  36. <div class="index-card__icon" style="background:linear-gradient(145deg,#066b49,#0a9f6d)">Kit</div>
  37. <div>
  38. <h2>UI Pattern 索引 ★</h2>
  39. <p>标准列表、查看详情、表单填写、弹窗反馈 — 小程序通用框架与样式规范。</p>
  40. <span class="index-card__tag">开发前必读</span>
  41. </div>
  42. </a>
  43. <a class="index-card" href="shanxia-mp-empty-state-demo.html">
  44. <div class="index-card__icon" style="background:linear-gradient(145deg,#087f57,#11b37a)">空态</div>
  45. <div>
  46. <h2>全局空态 Empty State</h2>
  47. <p>已采用方案 B · 插画文件夹;组件 <code>mp-empty</code>,CRM/BX/DB/PL 列表已统一。</p>
  48. <span class="index-card__tag">已采用 B</span>
  49. </div>
  50. </a>
  51. </div>
  52. <p class="index-section-title">Tab 主框架(4 个)</p>
  53. <div class="index-grid">
  54. <a class="index-card" href="shanxia-mp-home-demo.html">
  55. <div class="index-card__icon" style="background:#94a39c">首页</div>
  56. <div>
  57. <h2>首页</h2>
  58. <p>占位页,本期暂不开发。</p>
  59. <span class="index-card__tag">Phase 2</span>
  60. </div>
  61. </a>
  62. <a class="index-card" href="shanxia-mp-todo-demo.html">
  63. <div class="index-card__icon" style="background:#94a39c">待办</div>
  64. <div>
  65. <h2>待办</h2>
  66. <p>占位页,本期暂不开发。</p>
  67. <span class="index-card__tag">Phase 2</span>
  68. </div>
  69. </a>
  70. <a class="index-card" href="shanxia-mp-workbench-demo.html">
  71. <div class="index-card__icon" style="background:linear-gradient(145deg,#087f57,#0a9f6d)">工作台</div>
  72. <div>
  73. <h2>工作台 ★</h2>
  74. <p>四大业务模块 + 子菜单卡片;点击菜单进入业务列表。</p>
  75. <span class="index-card__tag">本期核心</span>
  76. </div>
  77. </a>
  78. <a class="index-card" href="shanxia-mp-mine-demo.html">
  79. <div class="index-card__icon" style="background:linear-gradient(145deg,#0a9f6d,#11b37a)">我的</div>
  80. <div>
  81. <h2>我的</h2>
  82. <p>修改个人信息、退出登录。</p>
  83. <span class="index-card__tag">本期开发</span>
  84. </div>
  85. </a>
  86. </div>
  87. <p class="index-section-title">业务列表页(从工作台菜单进入)</p>
  88. <div class="index-grid">
  89. <a class="index-card" href="shanxia-mp-crm-demo.html">
  90. <div class="index-card__icon" style="background:linear-gradient(145deg,#0a9f6d,#11b37a)">CRM</div>
  91. <div><h2>线索管理列表</h2><p>示例:CRM 业务办理页</p></div>
  92. </a>
  93. <a class="index-card" href="shanxia-mp-crm-product-category-demo.html">
  94. <div class="index-card__icon" style="background:linear-gradient(145deg,#087f57,#0a9f6d)">分类</div>
  95. <div>
  96. <h2>产品分类(树形)</h2>
  97. <p>已采用方案 A · 缩进展开;页面 <code>pages/crm/product-category</code>。</p>
  98. <span class="index-card__tag">已采用 A</span>
  99. </div>
  100. </a>
  101. <a class="index-card" href="shanxia-mp-bx-demo.html">
  102. <div class="index-card__icon" style="background:linear-gradient(145deg,#c9922f,#d6a343)">报销</div>
  103. <div><h2>待办任务列表</h2><p>示例:报销审批办理页</p></div>
  104. </a>
  105. <a class="index-card" href="shanxia-mp-db-demo.html">
  106. <div class="index-card__icon" style="background:linear-gradient(145deg,#247a70,#2b8a7e)">地磅</div>
  107. <div><h2>地磅单列表</h2><p>示例:地磅业务办理页</p></div>
  108. </a>
  109. <a class="index-card" href="shanxia-mp-pl-demo.html">
  110. <div class="index-card__icon" style="background:linear-gradient(145deg,#066b49,#087f57)">运输</div>
  111. <div><h2>运输计划列表</h2><p>示例:运输业务办理页</p></div>
  112. </a>
  113. </div>
  114. <section class="token-box">
  115. <h3>信息架构</h3>
  116. <ul class="arch-list">
  117. <li>登录成功 → 默认跳转「工作台」Tab</li>
  118. <li>工作台:CRM / 报销 / 地磅 / 运输 四大模块,每模块下为菜单卡片网格</li>
  119. <li>点击菜单卡片 → 进入对应业务列表页(无底部 Tab,顶部返回工作台)</li>
  120. <li>灰色禁用卡片 = 本期暂不移植的功能</li>
  121. <li>业务开发对照 <strong>shanxia-mp-pattern-*.html</strong> 四类页面模式</li>
  122. </ul>
  123. <p style="margin-top:12px;font-size:12px;color:var(--text-muted)">共享样式:<strong>shanxia-mp-base.css</strong></p>
  124. </section>
  125. </div>
  126. </body>
  127. </html>