diff --git a/src/modules/energy/ETCView.tsx b/src/modules/energy/ETCView.tsx new file mode 100644 index 0000000..c218700 --- /dev/null +++ b/src/modules/energy/ETCView.tsx @@ -0,0 +1,79 @@ +import { motion } from 'motion/react'; +import { Construction, Hammer } from 'lucide-react'; +import RotatingFooterHint from '../../components/RotatingFooterHint'; + +const ETC_HINTS = [ + 'ETC 通行费数据正在与发卡方系统打通…', + '工人 GG 正在搭脚手架,敬请期待 ~', + '马上能看到每月通行费明细啦', + '想看哪个维度的 ETC?反馈一下嘛', + '上线时机:等数据接通的那一天', +]; + +export default function ETCView() { + return ( +
+ +
+ + + + + + +
+ +
ETC 模块建设中
+
+ 通行费明细、按车按月统计、运营成本拆分 +
+ 这些数据都在路上啦 +
+ + {/* 简单的里程碑进度感 */} +
+ {[ + { label: '需求评审', done: true }, + { label: '数据对接', done: true }, + { label: '页面开发', done: false, current: true }, + { label: '正式上线', done: false }, + ].map((m, i) => ( + + + + {m.label} + + {m.done && 已完成} + {m.current && 进行中} + + ))} +
+
+ + +
+ ); +} diff --git a/src/modules/energy/EnergyModule.tsx b/src/modules/energy/EnergyModule.tsx index 3aa10dc..07664a3 100644 --- a/src/modules/energy/EnergyModule.tsx +++ b/src/modules/energy/EnergyModule.tsx @@ -1,10 +1,17 @@ import { useState } from 'react'; -import { Fuel, BatteryCharging } from 'lucide-react'; +import { Fuel, BatteryCharging, Receipt } from 'lucide-react'; import { motion } from 'motion/react'; import HydrogenView from './HydrogenView'; import ElectricView from './ElectricView'; +import ETCView from './ETCView'; -type TopTab = 'hydrogen' | 'electric'; +type TopTab = 'hydrogen' | 'electric' | 'etc'; + +const TABS: { key: TopTab; label: string; icon: typeof Fuel }[] = [ + { key: 'hydrogen', label: '氢能', icon: Fuel }, + { key: 'electric', label: '电能', icon: BatteryCharging }, + { key: 'etc', label: 'ETC', icon: Receipt }, +]; export default function EnergyModule() { const [activeTab, setActiveTab] = useState('hydrogen'); @@ -12,28 +19,27 @@ export default function EnergyModule() {
- - + {TABS.map(tab => { + const Icon = tab.icon; + const active = activeTab === tab.key; + return ( + + ); + })}
- {activeTab === 'hydrogen' ? : } + {activeTab === 'hydrogen' && } + {activeTab === 'electric' && } + {activeTab === 'etc' && }
);