feat(h5): 修复alert.html认证Bug + 新增log-detail.html日志详情页

- alert.html: requireAuth()后加return防止未登录时继续执行
- 新增log-detail.html: 独立详情页(骨架屏+设备标签+安全备注+照片)
- logs.html: 列表项跳转log-detail.html?id=xxx
- mock.js: MOCK_LOGS补全part/equipment/author/created_at/safety_note字段
- 补全equip-checkbox等CSS样式
This commit is contained in:
2026-04-14 18:22:00 +08:00
parent 3301d9557b
commit e70e5cc69d
14 changed files with 749 additions and 97 deletions

View File

@@ -123,7 +123,7 @@ function apiGetReportDetail(id) {
});
}
// 获取施工日志列表
// 获取日志列表
function apiGetLogs() {
return new Promise((resolve) => {
setTimeout(() => {
@@ -132,6 +132,16 @@ function apiGetLogs() {
});
}
// 获取日志详情
function apiGetLogDetail(id) {
return new Promise((resolve) => {
setTimeout(() => {
const item = MOCK_LOGS.find(l => l.id === id);
resolve({ code: 0, data: item });
}, 200);
});
}
// 提交施工日志
function apiSubmitLog(formData) {
return new Promise((resolve) => {