sanqiang-client-order-ui-demo.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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>叁强鲜配 - 客户端订单UI Demo</title>
  7. <style>
  8. :root {
  9. --green: #0a9f6d; --green-soft: #e9f9f2; --yellow: #d6a343; --bg: #f5f8f7;
  10. --card: #fff; --text: #1f2a26; --muted: #6b7b74; --border: #dcebe4; --warn: #cf8a19;
  11. }
  12. * { box-sizing: border-box; margin: 0; padding: 0; }
  13. body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; background: var(--bg); color: var(--text); }
  14. .phone { max-width: 420px; margin: 0 auto; min-height: 100vh; padding-bottom: 20px; }
  15. .top { background: linear-gradient(145deg, #0a9f6d, #11b37a); color: #fff; padding: 16px; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
  16. .title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
  17. .tabs { display: flex; gap: 8px; overflow-x: auto; }
  18. .tab { min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 12px; display: inline-flex; align-items: center; }
  19. .tab.active { background: #fff; color: var(--green); font-weight: 600; }
  20. .section { margin: 12px 16px; }
  21. .order { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
  22. .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  23. .no { font-size: 13px; font-weight: 600; }
  24. .status { min-height: 24px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 11px; }
  25. .status.pending { background: #fff4dd; color: var(--warn); }
  26. .status.delivering { background: var(--green-soft); color: var(--green); }
  27. .goods { display: flex; gap: 8px; margin-bottom: 8px; }
  28. .img { width: 58px; height: 58px; border-radius: 8px; background: linear-gradient(145deg, #f4fbf8, #e4f6ef); }
  29. .meta { font-size: 12px; color: var(--muted); line-height: 1.45; }
  30. .ft { padding-top: 8px; border-top: 1px solid #edf5f1; display: flex; align-items: center; justify-content: space-between; }
  31. .sum { font-size: 12px; color: var(--muted); }
  32. .actions { display: inline-flex; gap: 8px; }
  33. .btn { min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #bedfce; color: var(--green); font-size: 12px; display: inline-flex; align-items: center; }
  34. .btn.primary { background: var(--yellow); border-color: var(--yellow); color: #fff; }
  35. </style>
  36. </head>
  37. <body>
  38. <main class="phone">
  39. <header class="top">
  40. <div class="title">我的订单</div>
  41. <nav class="tabs">
  42. <a class="tab active">全部</a>
  43. <a class="tab">待支付</a>
  44. <a class="tab">待配送</a>
  45. <a class="tab">配送中</a>
  46. <a class="tab">已完成</a>
  47. </nav>
  48. </header>
  49. <section class="section">
  50. <article class="order">
  51. <div class="head"><span class="no">订单号:SQ202604170021</span><span class="status pending">待支付</span></div>
  52. <div class="goods">
  53. <div class="img"></div>
  54. <div class="meta">
  55. <p>南山供应站 · 生鲜组合 3 件</p>
  56. <p>下单时间:2026-04-17 08:26</p>
  57. <p>预计配送:今日 10:30 前</p>
  58. </div>
  59. </div>
  60. <div class="ft"><span class="sum">合计:¥148.30</span><span class="actions"><span class="btn">取消订单</span><span class="btn primary">立即支付</span></span></div>
  61. </article>
  62. <article class="order">
  63. <div class="head"><span class="no">订单号:SQ202604160118</span><span class="status delivering">配送中</span></div>
  64. <div class="goods">
  65. <div class="img"></div>
  66. <div class="meta">
  67. <p>福田供应站 · 蔬果套餐 4 件</p>
  68. <p>配送员:刘师傅 138****3392</p>
  69. <p>当前节点:已取货,预计 15 分钟送达</p>
  70. </div>
  71. </div>
  72. <div class="ft"><span class="sum">合计:¥232.00</span><span class="actions"><span class="btn">查看物流</span><span class="btn">联系配送员</span></span></div>
  73. </article>
  74. </section>
  75. </main>
  76. </body>
  77. </html>