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动画用于待处理状态指示
This commit is contained in:
@@ -33,31 +33,23 @@
|
||||
<div id="alertList" class="weui-cells"></div>
|
||||
</div>
|
||||
|
||||
<!-- 底部Tabbar weui-tabbar -->
|
||||
<div class="weui-tabbar">
|
||||
<a href="index.html" class="weui-tabbar__item">
|
||||
<div class="weui-tabbar__icon">
|
||||
<i class="ri-home-line"></i>
|
||||
</div>
|
||||
<p class="weui-tabbar__label">首页</p>
|
||||
<!-- 底部TabBar -->
|
||||
<div class="tab-bar">
|
||||
<a href="index.html" class="tab-item">
|
||||
<i class="ri-home-line tab-item-icon"></i>
|
||||
<span class="tab-item-text">首页</span>
|
||||
</a>
|
||||
<a href="devices.html" class="weui-tabbar__item">
|
||||
<div class="weui-tabbar__icon">
|
||||
<i class="ri-archive-line"></i>
|
||||
</div>
|
||||
<p class="weui-tabbar__label">设备</p>
|
||||
<a href="devices.html" class="tab-item">
|
||||
<i class="ri-archive-line tab-item-icon"></i>
|
||||
<span class="tab-item-text">设备</span>
|
||||
</a>
|
||||
<a href="report.html" class="weui-tabbar__item">
|
||||
<div class="weui-tabbar__icon">
|
||||
<i class="ri-camera-line"></i>
|
||||
</div>
|
||||
<p class="weui-tabbar__label">随手拍</p>
|
||||
<a href="reports.html" class="tab-item">
|
||||
<i class="ri-camera-line tab-item-icon"></i>
|
||||
<span class="tab-item-text">随手拍</span>
|
||||
</a>
|
||||
<a href="logs.html" class="weui-tabbar__item">
|
||||
<div class="weui-tabbar__icon">
|
||||
<i class="ri-file-list-3-line"></i>
|
||||
</div>
|
||||
<p class="weui-tabbar__label">日志</p>
|
||||
<a href="logs.html" class="tab-item">
|
||||
<i class="ri-file-list-3-line tab-item-icon"></i>
|
||||
<span class="tab-item-text">日志</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user