Commit Graph

30 Commits

Author SHA1 Message Date
3301d9557b feat(h5): 完善隐患随手拍模块 + 新增AI分析模块
新增页面:
- ai-analyses.html: AI分析列表(Tab筛选:全部/人员安全/设备异常/环境风险)
- ai-analysis.html: AI分析详情(设备信息+AI分析描述+建议措施)
- reports.html: 隐患随手拍列表(Tab筛选:全部/待处理/处理中/已处理,FAB悬浮新建按钮)
- report-detail.html: 隐患详情(状态时间线+认领/处理完成操作)

Mock层补全:
- MOCK_AI_ANALYSES (4条AI分析记录,3种类型)
- getAnalysisTypeInfo() / getAIAnalysisById() 辅助函数
- apiGetAIAnalyses() / apiGetAIAnalysisDetail() / apiGetReportDetail()

UI规范统一(frontend-dev skill门控):
- 统一TabBar为tab-bar class,替换所有weui-tabbar
- 随手拍入口统一为reports.html,report.html为新建表单
- 新页面全部实现skeleton骨架屏+空状态+loading状态
- severity/status使用RemixIcon,无emoji
- pulse-dot动画用于待处理状态指示
2026-04-14 17:08:19 +08:00
7197a33715 fix: 统一RemixIcon版本4.5.0,login.html补加CDN,移除variables.css重复@import 2026-04-14 13:05:35 +08:00
e6a6e251f4 refactor: WeUI+RemixIcon重建个人中心页面 2026-04-14 13:01:28 +08:00
1eea633634 feat(h5): rebuild report.html with WeUI + Remix Icon 2026-04-14 12:59:26 +08:00
35300aa3c4 rebuild logs.html using WeUI + Remix Icon 2026-04-14 12:59:24 +08:00
bfe8673f95 重建 log.html 使用 WeUI + Remix Icon 2026-04-14 12:59:05 +08:00
aa9d2de57c 优化样式文件格式 2026-04-14 12:57:19 +08:00
be5bfa14e9 添加预警详情页样式 2026-04-14 12:57:10 +08:00
552fc8401b 重建 alert.html 使用 WeUI + Remix Icon 2026-04-14 12:56:59 +08:00
31bc478b1a 重建 device.html 使用 WeUI + Remix Icon
- 顶栏使用 page-hd + ri-arrow-left-s-line 图标
- 基本信息卡片使用 weui-panel
- 设备图标使用 ri-hammer-line (塔吊) / ri-arrow-up-down-line (升降机), 48px
- 状态标签使用 weui-badge 在线(绿色)/离线(灰色)
- 实时数据使用 data-grid 2列布局
- 告警使用 ri-error-warning-line (危险/橙色) / ri-alert-line (警告/黄色)
- 刷新栏显示更新时间 + ri-refresh-line 按钮
- 底部 Tabbar 使用 weui-tabbar, 设备高亮 ri-archive-fill
- JS: getQueryParam('id'), loadRealtime(), 30秒自动刷新
2026-04-14 12:56:52 +08:00
e80c0465c0 重建 alerts.html 使用 WeUI + Remix Icon 2026-04-14 12:56:11 +08:00
1cd1835e91 refactor(h5): rebuild index.html with WeUI + Remix Icon
- Replace emoji with Remix Icon classes (ri-user-line, ri-hammer-line, etc.)
- Use WeUI panel components (weui-panel, weui-panel__hd, weui-panel__bd)
- Add weui-tabbar with ri-home-fill highlighted for index
- Update CSS for stat-card icons and panel-more link
- All icons via Remix Icon CDN
2026-04-14 12:53:43 +08:00
d56948dcfd refactor: WeUI+RemixIcon重建全套H5原型 2026-04-14 12:51:44 +08:00
5916ea3525 重建 devices.html 使用 WeUI + Remix Icon 2026-04-14 12:51:33 +08:00
599fc4d1c3 feat: 创建个人中心页面 profile.html 2026-04-14 12:38:06 +08:00
c71353d2c3 feat: add checkbox styles for equipment selection 2026-04-14 12:36:36 +08:00
c9d19adc93 feat: add construction log page (log.html) 2026-04-14 12:36:07 +08:00
b2365a9d10 feat: 创建隐患随手拍页面 report.html 2026-04-14 12:35:09 +08:00
36d8520c30 Create construction log list page (h5/logs.html) 2026-04-14 12:35:01 +08:00
2d2ee1bd8b feat(h5): add device detail page with realtime data 2026-04-14 12:33:37 +08:00
e307ba0512 feat(h5): add alert detail page 2026-04-14 12:30:39 +08:00
74e802e1b6 feat: 创建预警列表页 alerts.html 2026-04-14 12:29:56 +08:00
2cb9177d05 feat(h5): add dashboard index page with device stats, alerts overview 2026-04-14 12:28:48 +08:00
818e385754 feat(h5): add devices list page 2026-04-14 12:28:37 +08:00
fbe78450eb feat(h5): 创建登录页面
- 添加登录页 login.html
- 渐变背景 + 居中白色登录卡片
- 账号/密码输入框(默认admin/123456)
- 登录验证流程: isLoggedIn检查、apiLogin调用、setToken存储
- 空输入提示: showToast('请输入账号和密码')
2026-04-14 12:28:30 +08:00
982f57a169 Task 4: 创建Mock数据文件
- MOCK_DEVICES: 5台设备 (3台塔吊, 2台升降机)
- MOCK_REALTIME: 设备实时监测数据
- MOCK_ALERTS: 6条预警记录
- MOCK_REPORTS: 3条隐患随手拍记录
- MOCK_LOGS: 3条施工日志
- MOCK_USER: 用户信息
- 辅助函数: getDeviceById, getAlertById, getRealtimeById
2026-04-14 12:27:10 +08:00
172f5583b6 feat(h5): add api.js with 11 mock API functions 2026-04-14 12:27:07 +08:00
47c8d92eef feat(h5): add global app.js with utility functions 2026-04-14 12:26:41 +08:00
1c60401958 feat: H5全局样式文件 2026-04-14 12:25:33 +08:00
2bdba41780 chore: create h5 project directory structure 2026-04-14 12:24:30 +08:00