123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>充电站详情</title>
- <style>
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- background-color: #f6f6f6;
- color: #333;
- }
- .header {
- background: white;
- padding: 16px;
- position: relative;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
- }
- .back-button {
- position: absolute;
- left: 16px;
- top: 50%;
- transform: translateY(-50%);
- font-size: 20px;
- color: #333;
- text-decoration: none;
- }
- .header-title {
- text-align: center;
- font-size: 18px;
- font-weight: bold;
- }
- .station-info {
- background: white;
- margin: 16px;
- border-radius: 12px;
- padding: 20px;
- }
- .station-name {
- font-size: 20px;
- font-weight: bold;
- margin-bottom: 12px;
- }
- .info-item {
- display: flex;
- align-items: center;
- margin-bottom: 12px;
- color: #666;
- }
- .info-label {
- width: 80px;
- color: #999;
- }
- .status-grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 12px;
- margin: 16px;
- }
- .status-card {
- background: white;
- border-radius: 8px;
- padding: 16px;
- text-align: center;
- }
- .status-value {
- font-size: 24px;
- font-weight: bold;
- color: #4CAF50;
- margin-bottom: 4px;
- }
- .status-label {
- font-size: 12px;
- color: #999;
- }
- .charger-list {
- background: white;
- margin: 16px;
- border-radius: 12px;
- padding: 20px;
- }
- .section-title {
- font-size: 16px;
- font-weight: bold;
- margin-bottom: 16px;
- }
- .charger-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 12px 0;
- border-bottom: 1px solid #eee;
- }
- .charger-info {
- flex: 1;
- }
- .charger-name {
- font-size: 16px;
- margin-bottom: 4px;
- }
- .charger-status {
- font-size: 12px;
- color: #4CAF50;
- }
- .book-button {
- background: #4CAF50;
- color: white;
- border: none;
- padding: 8px 16px;
- border-radius: 4px;
- font-size: 14px;
- }
- .book-button.disabled {
- background: #ccc;
- }
- .bottom-bar {
- position: fixed;
- bottom: 0;
- width: 100%;
- padding: 16px;
- background: white;
- box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .price-info {
- color: #666;
- }
- .price {
- color: #ff6b6b;
- font-size: 20px;
- font-weight: bold;
- }
- .action-button {
- background: #4CAF50;
- color: white;
- border: none;
- padding: 12px 24px;
- border-radius: 24px;
- font-size: 16px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <a href="index.html" class="back-button">←</a>
- <div class="header-title">充电站详情</div>
- </div>
- <div class="station-info">
- <div class="station-name">星星充电站 - 望京SOHO</div>
- <div class="info-item">
- <span class="info-label">地址</span>
- <span>北京市朝阳区望京SOHO T1</span>
- </div>
- <div class="info-item">
- <span class="info-label">营业时间</span>
- <span>24小时</span>
- </div>
- <div class="info-item">
- <span class="info-label">联系电话</span>
- <span>400-123-4567</span>
- </div>
- </div>
- <div class="status-grid">
- <div class="status-card">
- <div class="status-value">10</div>
- <div class="status-label">可用充电桩</div>
- </div>
- <div class="status-card">
- <div class="status-value">2</div>
- <div class="status-label">正在充电</div>
- </div>
- <div class="status-card">
- <div class="status-value">0</div>
- <div class="status-label">故障</div>
- </div>
- </div>
- <div class="charger-list">
- <div class="section-title">充电桩列表</div>
- <div class="charger-item">
- <div class="charger-info">
- <div class="charger-name">1号充电桩</div>
- <div class="charger-status">空闲中</div>
- </div>
- <button class="book-button">预约</button>
- </div>
- <div class="charger-item">
- <div class="charger-info">
- <div class="charger-name">2号充电桩</div>
- <div class="charger-status">空闲中</div>
- </div>
- <button class="book-button">预约</button>
- </div>
- <div class="charger-item">
- <div class="charger-info">
- <div class="charger-name">3号充电桩</div>
- <div class="charger-status" style="color: #ff6b6b;">使用中</div>
- </div>
- <button class="book-button disabled">预约</button>
- </div>
- </div>
- <div class="bottom-bar">
- <div class="price-info">
- 充电费用:<span class="price">¥1.8/度</span>
- </div>
- <button class="action-button">立即充电</button>
- </div>
- </body>
- </html>
|