demo.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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>陇耘鲜达 · 多色纯色图标样例(Web / 小程序通用)</title>
  7. <style>
  8. :root {
  9. --admin-blue: #1989fa;
  10. --success-green: #07c160;
  11. --warning-orange: #ff976a;
  12. --danger-red: #ee0a24;
  13. --text-primary: #303133;
  14. --text-secondary: #909399;
  15. --bg-page: #f5f7fa;
  16. --card-radius: 16px;
  17. }
  18. * {
  19. box-sizing: border-box;
  20. }
  21. body {
  22. margin: 0;
  23. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  24. background: var(--bg-page);
  25. color: var(--text-primary);
  26. line-height: 1.5;
  27. }
  28. .page {
  29. max-width: 1100px;
  30. margin: 0 auto;
  31. padding: 40px 24px 64px;
  32. }
  33. h1 {
  34. font-size: 26px;
  35. font-weight: 600;
  36. margin: 0 0 8px;
  37. color: var(--admin-blue);
  38. }
  39. .subtitle {
  40. color: var(--text-secondary);
  41. font-size: 14px;
  42. margin-bottom: 32px;
  43. }
  44. .note {
  45. background: #fff;
  46. border-radius: 12px;
  47. padding: 16px 20px;
  48. margin-bottom: 28px;
  49. font-size: 13px;
  50. color: var(--text-secondary);
  51. border: 1px solid #ebeef5;
  52. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  53. }
  54. .note strong {
  55. color: var(--text-primary);
  56. }
  57. .grid {
  58. display: grid;
  59. grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  60. gap: 20px;
  61. }
  62. .card {
  63. background: #fff;
  64. border-radius: var(--card-radius);
  65. padding: 20px 16px 16px;
  66. text-align: center;
  67. border: 1px solid #ebeef5;
  68. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  69. transition: transform 0.2s ease, box-shadow 0.2s ease;
  70. }
  71. .card:hover {
  72. transform: translateY(-2px);
  73. box-shadow: 0 8px 24px rgba(25, 137, 250, 0.12);
  74. }
  75. .card .icon-wrap {
  76. width: 72px;
  77. height: 72px;
  78. margin: 0 auto 12px;
  79. display: flex;
  80. align-items: center;
  81. justify-content: center;
  82. }
  83. .card svg {
  84. width: 64px;
  85. height: 64px;
  86. display: block;
  87. }
  88. .card .name {
  89. font-size: 14px;
  90. font-weight: 500;
  91. color: var(--text-primary);
  92. }
  93. .card .en {
  94. font-size: 11px;
  95. color: var(--text-secondary);
  96. margin-top: 4px;
  97. }
  98. footer {
  99. margin-top: 40px;
  100. font-size: 12px;
  101. color: var(--text-secondary);
  102. text-align: center;
  103. }
  104. </style>
  105. </head>
  106. <body>
  107. <div class="page">
  108. <h1>陇耘鲜达 · 多色图标样例</h1>
  109. <p class="subtitle">与运营蓝 / 客户绿 / 供应商橙 / 配送红 体系一致,采用<strong>纯色填充</strong>(无渐变),SVG 可直接拷贝到 Web(Vue)或小程序(uni-app)中使用。</p>
  110. <div class="note">
  111. <strong>使用说明:</strong>
  112. 每个图标为独立 <code>&lt;svg&gt;</code>,无外链依赖,色值均为 HEX 实色。复制单个图标时可直接整段拷贝。
  113. Web 端可与 Element Plus <code>el-icon</code> 包装;小程序端可放在 <code>&lt;view&gt;</code> 内或转为 base64 雪碧图按需优化。
  114. </div>
  115. <div class="grid">
  116. <!-- 首页 -->
  117. <div class="card">
  118. <div class="icon-wrap">
  119. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="首页">
  120. <rect x="6" y="10" width="36" height="30" rx="6" fill="#1989fa" opacity="0.95" />
  121. <path d="M24 8 L40 20 L8 20 Z" fill="#fff" opacity="0.95" />
  122. <rect x="20" y="26" width="8" height="10" rx="1" fill="#fff" opacity="0.9" />
  123. </svg>
  124. </div>
  125. <div class="name">首页</div>
  126. <div class="en">Home</div>
  127. </div>
  128. <!-- 分类 -->
  129. <div class="card">
  130. <div class="icon-wrap">
  131. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="分类">
  132. <rect x="6" y="6" width="16" height="16" rx="4" fill="#07c160" />
  133. <rect x="26" y="6" width="16" height="16" rx="4" fill="#1989fa" opacity="0.85" />
  134. <rect x="6" y="26" width="16" height="16" rx="4" fill="#ff976a" opacity="0.9" />
  135. <rect x="26" y="26" width="16" height="16" rx="4" fill="#07c160" opacity="0.75" />
  136. </svg>
  137. </div>
  138. <div class="name">分类</div>
  139. <div class="en">Category</div>
  140. </div>
  141. <!-- 购物车 -->
  142. <div class="card">
  143. <div class="icon-wrap">
  144. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="购物车">
  145. <path d="M14 14 h22 l-2 16 H16 L14 14z" fill="#1989fa" />
  146. <path d="M12 12 h4 v2 h-4 z" fill="#ff976a" />
  147. <circle cx="18" cy="36" r="3" fill="#303133" />
  148. <circle cx="32" cy="36" r="3" fill="#303133" />
  149. <path d="M20 8 L28 8 L26 14 L18 14 Z" fill="#52c41a" />
  150. </svg>
  151. </div>
  152. <div class="name">购物车</div>
  153. <div class="en">Cart</div>
  154. </div>
  155. <!-- 订单 -->
  156. <div class="card">
  157. <div class="icon-wrap">
  158. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="订单">
  159. <rect x="10" y="8" width="28" height="34" rx="3" fill="#e6f7ff" stroke="#1989fa" stroke-width="2" />
  160. <rect x="14" y="16" width="20" height="3" rx="1" fill="#1989fa" />
  161. <rect x="14" y="22" width="14" height="2" rx="1" fill="#07c160" opacity="0.7" />
  162. <rect x="14" y="27" width="18" height="2" rx="1" fill="#ff976a" opacity="0.8" />
  163. <circle cx="30" cy="34" r="6" fill="#ee0a24" />
  164. <text x="30" y="37" text-anchor="middle" fill="#fff" font-size="8" font-weight="bold">¥</text>
  165. </svg>
  166. </div>
  167. <div class="name">订单</div>
  168. <div class="en">Orders</div>
  169. </div>
  170. <!-- 生鲜商品 -->
  171. <div class="card">
  172. <div class="icon-wrap">
  173. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="商品">
  174. <ellipse cx="24" cy="30" rx="14" ry="12" fill="#07c160" />
  175. <path d="M24 10 Q28 18 24 22 Q20 18 24 10" fill="#52c41a" />
  176. <path d="M18 26 Q24 20 30 26" fill="none" stroke="#b7eb8f" stroke-width="2" stroke-linecap="round" />
  177. <circle cx="20" cy="28" r="2" fill="#ff976a" opacity="0.9" />
  178. <circle cx="28" cy="30" r="1.8" fill="#ff976a" opacity="0.85" />
  179. </svg>
  180. </div>
  181. <div class="name">生鲜商品</div>
  182. <div class="en">Product</div>
  183. </div>
  184. <!-- 配送 -->
  185. <div class="card">
  186. <div class="icon-wrap">
  187. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="配送">
  188. <rect x="6" y="20" width="22" height="12" rx="2" fill="#ee0a24" />
  189. <path d="M28 20 h10 l4 6 v6 H28 Z" fill="#ff7875" />
  190. <circle cx="14" cy="34" r="4" fill="#303133" />
  191. <circle cx="34" cy="34" r="4" fill="#303133" />
  192. <circle cx="14" cy="34" r="2" fill="#909399" />
  193. <circle cx="34" cy="34" r="2" fill="#909399" />
  194. <path d="M10 14 Q24 10 38 14" fill="none" stroke="#07c160" stroke-width="2" stroke-linecap="round" opacity="0.8" />
  195. </svg>
  196. </div>
  197. <div class="name">配送</div>
  198. <div class="en">Delivery</div>
  199. </div>
  200. <!-- 地址 -->
  201. <div class="card">
  202. <div class="icon-wrap">
  203. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="地址">
  204. <path d="M24 6 C16 6 10 12 10 20 C10 30 24 42 24 42 S38 30 38 20 C38 12 32 6 24 6 Z" fill="#1989fa" opacity="0.2" />
  205. <path d="M24 8 C17 8 12 13 12 20 C12 28 24 40 24 40 S36 28 36 20 C36 13 31 8 24 8 Z" fill="#1989fa" />
  206. <circle cx="24" cy="20" r="5" fill="#fff" />
  207. <circle cx="24" cy="20" r="2.5" fill="#ee0a24" />
  208. </svg>
  209. </div>
  210. <div class="name">收货地址</div>
  211. <div class="en">Address</div>
  212. </div>
  213. <!-- 消息 -->
  214. <div class="card">
  215. <div class="icon-wrap">
  216. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="消息">
  217. <rect x="8" y="10" width="32" height="24" rx="4" fill="#1989fa" opacity="0.15" />
  218. <rect x="8" y="10" width="32" height="22" rx="4" fill="#1989fa" />
  219. <path d="M16 34 L24 28 L32 34 Z" fill="#07c160" />
  220. <circle cx="18" cy="20" r="2" fill="#fff" opacity="0.95" />
  221. <circle cx="24" cy="20" r="2" fill="#fff" opacity="0.95" />
  222. <circle cx="30" cy="20" r="2" fill="#fff" opacity="0.95" />
  223. </svg>
  224. </div>
  225. <div class="name">消息</div>
  226. <div class="en">Message</div>
  227. </div>
  228. <!-- 支付 -->
  229. <div class="card">
  230. <div class="icon-wrap">
  231. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="支付">
  232. <rect x="8" y="12" width="32" height="24" rx="4" fill="#f6ffed" stroke="#07c160" stroke-width="2" />
  233. <rect x="12" y="18" width="24" height="14" rx="2" fill="#07c160" opacity="0.9" />
  234. <text x="24" y="29" text-anchor="middle" fill="#fff" font-size="11" font-weight="bold">支付</text>
  235. <circle cx="38" cy="14" r="5" fill="#ff976a" />
  236. <path d="M36 14 L38 16 L41 12" stroke="#fff" stroke-width="1.5" fill="none" stroke-linecap="round" />
  237. </svg>
  238. </div>
  239. <div class="name">支付</div>
  240. <div class="en">Pay</div>
  241. </div>
  242. <!-- 我的 -->
  243. <div class="card">
  244. <div class="icon-wrap">
  245. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="我的">
  246. <circle cx="24" cy="18" r="8" fill="#ff976a" />
  247. <path d="M12 40 Q12 30 24 30 Q36 30 36 40 Z" fill="#1989fa" opacity="0.85" />
  248. <path d="M14 38 Q14 32 24 32 Q34 32 34 38" fill="none" stroke="#07c160" stroke-width="2" stroke-linecap="round" opacity="0.6" />
  249. </svg>
  250. </div>
  251. <div class="name">我的</div>
  252. <div class="en">Profile</div>
  253. </div>
  254. <!-- 供应商报价(业务) -->
  255. <div class="card">
  256. <div class="icon-wrap">
  257. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="报价">
  258. <rect x="10" y="8" width="20" height="26" rx="2" fill="#fff7e6" stroke="#ff976a" stroke-width="2" />
  259. <path d="M14 14 h12 M14 18 h12 M14 22 h8" stroke="#ff976a" stroke-width="2" stroke-linecap="round" />
  260. <rect x="26" y="16" width="14" height="20" rx="2" fill="#ff976a" />
  261. <text x="33" y="29" text-anchor="middle" fill="#fff" font-size="8" font-weight="bold">价</text>
  262. </svg>
  263. </div>
  264. <div class="name">报价单</div>
  265. <div class="en">Quotation</div>
  266. </div>
  267. <!-- 评价 -->
  268. <div class="card">
  269. <div class="icon-wrap">
  270. <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="评价">
  271. <path d="M24 6 L29.5 17.5 L42 19 L33 28 L35 40 L24 34 L13 40 L15 28 L6 19 L18.5 17.5 Z" fill="#ee0a24" stroke="#fff" stroke-width="1" />
  272. <circle cx="24" cy="22" r="3" fill="#fff" opacity="0.35" />
  273. </svg>
  274. </div>
  275. <div class="name">评价</div>
  276. <div class="en">Review</div>
  277. </div>
  278. </div>
  279. <footer>
  280. 样例图标仅供演示;正式环境可按 24×24 / 32×32 / 48×48 统一切图倍数,并与设计稿对齐导出名。
  281. </footer>
  282. </div>
  283. </body>
  284. </html>