detail.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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>充电站详情</title>
  7. <style>
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. box-sizing: border-box;
  12. }
  13. body {
  14. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  15. background-color: #f6f6f6;
  16. color: #333;
  17. }
  18. .header {
  19. background: white;
  20. padding: 16px;
  21. position: relative;
  22. box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  23. }
  24. .back-button {
  25. position: absolute;
  26. left: 16px;
  27. top: 50%;
  28. transform: translateY(-50%);
  29. font-size: 20px;
  30. color: #333;
  31. text-decoration: none;
  32. }
  33. .header-title {
  34. text-align: center;
  35. font-size: 18px;
  36. font-weight: bold;
  37. }
  38. .station-info {
  39. background: white;
  40. margin: 16px;
  41. border-radius: 12px;
  42. padding: 20px;
  43. }
  44. .station-name {
  45. font-size: 20px;
  46. font-weight: bold;
  47. margin-bottom: 12px;
  48. }
  49. .info-item {
  50. display: flex;
  51. align-items: center;
  52. margin-bottom: 12px;
  53. color: #666;
  54. }
  55. .info-label {
  56. width: 80px;
  57. color: #999;
  58. }
  59. .status-grid {
  60. display: grid;
  61. grid-template-columns: repeat(3, 1fr);
  62. gap: 12px;
  63. margin: 16px;
  64. }
  65. .status-card {
  66. background: white;
  67. border-radius: 8px;
  68. padding: 16px;
  69. text-align: center;
  70. }
  71. .status-value {
  72. font-size: 24px;
  73. font-weight: bold;
  74. color: #4CAF50;
  75. margin-bottom: 4px;
  76. }
  77. .status-label {
  78. font-size: 12px;
  79. color: #999;
  80. }
  81. .charger-list {
  82. background: white;
  83. margin: 16px;
  84. border-radius: 12px;
  85. padding: 20px;
  86. }
  87. .section-title {
  88. font-size: 16px;
  89. font-weight: bold;
  90. margin-bottom: 16px;
  91. }
  92. .charger-item {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. padding: 12px 0;
  97. border-bottom: 1px solid #eee;
  98. }
  99. .charger-info {
  100. flex: 1;
  101. }
  102. .charger-name {
  103. font-size: 16px;
  104. margin-bottom: 4px;
  105. }
  106. .charger-status {
  107. font-size: 12px;
  108. color: #4CAF50;
  109. }
  110. .book-button {
  111. background: #4CAF50;
  112. color: white;
  113. border: none;
  114. padding: 8px 16px;
  115. border-radius: 4px;
  116. font-size: 14px;
  117. }
  118. .book-button.disabled {
  119. background: #ccc;
  120. }
  121. .bottom-bar {
  122. position: fixed;
  123. bottom: 0;
  124. width: 100%;
  125. padding: 16px;
  126. background: white;
  127. box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. }
  132. .price-info {
  133. color: #666;
  134. }
  135. .price {
  136. color: #ff6b6b;
  137. font-size: 20px;
  138. font-weight: bold;
  139. }
  140. .action-button {
  141. background: #4CAF50;
  142. color: white;
  143. border: none;
  144. padding: 12px 24px;
  145. border-radius: 24px;
  146. font-size: 16px;
  147. }
  148. </style>
  149. </head>
  150. <body>
  151. <div class="header">
  152. <a href="index.html" class="back-button">←</a>
  153. <div class="header-title">充电站详情</div>
  154. </div>
  155. <div class="station-info">
  156. <div class="station-name">星星充电站 - 望京SOHO</div>
  157. <div class="info-item">
  158. <span class="info-label">地址</span>
  159. <span>北京市朝阳区望京SOHO T1</span>
  160. </div>
  161. <div class="info-item">
  162. <span class="info-label">营业时间</span>
  163. <span>24小时</span>
  164. </div>
  165. <div class="info-item">
  166. <span class="info-label">联系电话</span>
  167. <span>400-123-4567</span>
  168. </div>
  169. </div>
  170. <div class="status-grid">
  171. <div class="status-card">
  172. <div class="status-value">10</div>
  173. <div class="status-label">可用充电桩</div>
  174. </div>
  175. <div class="status-card">
  176. <div class="status-value">2</div>
  177. <div class="status-label">正在充电</div>
  178. </div>
  179. <div class="status-card">
  180. <div class="status-value">0</div>
  181. <div class="status-label">故障</div>
  182. </div>
  183. </div>
  184. <div class="charger-list">
  185. <div class="section-title">充电桩列表</div>
  186. <div class="charger-item">
  187. <div class="charger-info">
  188. <div class="charger-name">1号充电桩</div>
  189. <div class="charger-status">空闲中</div>
  190. </div>
  191. <button class="book-button">预约</button>
  192. </div>
  193. <div class="charger-item">
  194. <div class="charger-info">
  195. <div class="charger-name">2号充电桩</div>
  196. <div class="charger-status">空闲中</div>
  197. </div>
  198. <button class="book-button">预约</button>
  199. </div>
  200. <div class="charger-item">
  201. <div class="charger-info">
  202. <div class="charger-name">3号充电桩</div>
  203. <div class="charger-status" style="color: #ff6b6b;">使用中</div>
  204. </div>
  205. <button class="book-button disabled">预约</button>
  206. </div>
  207. </div>
  208. <div class="bottom-bar">
  209. <div class="price-info">
  210. 充电费用:<span class="price">¥1.8/度</span>
  211. </div>
  212. <button class="action-button">立即充电</button>
  213. </div>
  214. </body>
  215. </html>