feat:西安应急大屏 v3 重构 + 膳食建议页 AI 升级

- 西安应急大屏:index.html 归档为 index-v2.html,新增 index-v3.html(重排布局、统计卡片/告警柱状/心脑血管预警/体检雷达图)
- 同步更新 server.js 默认入口及 emergency-app、employee-app 各页面返回/跳转引用至 index-v2.html
- 体重管理:diet-advice.html 大幅升级(偏好标签条、慢病提醒、热量/营养/钠嘌呤指标、三餐推荐),新增膳食推荐 AI 算法需求文档
This commit is contained in:
liuyunqin
2026-06-29 18:00:04 +08:00
parent 29eebdf40a
commit d525cf0eb3
37 changed files with 5636 additions and 306 deletions
+3 -3
View File
@@ -129,9 +129,9 @@ function serveFile(res, filePath) {
fs.stat(resolved, function(err, stats) {
if (err || !stats.isFile()) {
/* 目录请求尝试补 index.html */
/* 目录请求尝试补 index-v2.html */
if (!err && stats.isDirectory()) {
var indexFile = path.join(resolved, 'index.html');
var indexFile = path.join(resolved, 'index-v2.html');
serveFile(res, indexFile);
return;
}
@@ -215,7 +215,7 @@ var server = http.createServer(function(req, res) {
}
/* --- 已登录:返回静态文件 --- */
if (pathname === '/') pathname = '/index.html';
if (pathname === '/') pathname = '/index-v2.html';
var filePath = path.join(STATIC_ROOT, pathname);
serveFile(res, filePath);