diff --git a/employee-app/emergency-medical/index.html b/employee-app/emergency-medical/index.html index c70840c..78f5e94 100644 --- a/employee-app/emergency-medical/index.html +++ b/employee-app/emergency-medical/index.html @@ -97,7 +97,7 @@ diff --git a/employee-app/weight-management/eat-detail-v2.html b/employee-app/weight-management/eat-detail-v2.html index b693658..b8cf9b6 100644 --- a/employee-app/weight-management/eat-detail-v2.html +++ b/employee-app/weight-management/eat-detail-v2.html @@ -126,6 +126,9 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items: .meal-item__src { font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; line-height: 1.5; } .meal-item__src--auto { color: #1890ff; background: #e6f7ff; } .meal-item__src--manual { color: #fa8c16; background: #fff7e6; } +.meal-item__src--wearable { color: #1890ff; background: #e6f7ff; } +.meal-item__src--equip { color: #52c41a; background: #f6ffed; } +.meal-item__src--wechat { color: #597ef7; background: #f0f5ff; } .meal-item__meta { font-size: 11px; color: #bbb; margin-top: 1px; } .meal-item__kcal { font-size: 13px; font-weight: 700; color: #fa8c16; white-space: nowrap; flex-shrink: 0; } .meal-item--exercise .meal-item__kcal { color: #52c41a; } @@ -496,28 +499,28 @@ var dayData = { lunch: { source:'auto', kcal: 450, items: [{e:'🍚',n:'白米饭',m:'×1 · 约200g',k:232},{e:'🐔',n:'红烧鸡块',m:'×1 · 约150g',k:140},{e:'🥬',n:'炒青菜',m:'×1',k:78}] }, dinner: { source:'auto', kcal: 260, items: [{e:'🥗',n:'蔬菜沙拉',m:'×1 · 约200g',k:160},{e:'🍠',n:'蒸红薯',m:'×1',k:100}] }, snack: { source:'manual', kcal: 60, items: [{e:'🍌',n:'香蕉',m:'×1',k:60}] }, - exercise: { kcal: -280, items: [{e:'🏃',n:'户外跑步',m:'4.5km · 28分钟',k:-200},{e:'🚶',n:'步行',m:'5500步',k:-80}] } + exercise: { kcal: -280, items: [{e:'🏃',n:'户外跑步',m:'4.5km · 28分钟',k:-200,src:'wearable'},{e:'🚶',n:'步行',m:'5500步',k:-80,src:'wechat'}] } }}, '2026-07-21': { intake: 1120, consume: 790, gap: -330, macros: {carb:165,carbT:260,protein:44,proteinT:82,fat:34,fatT:60}, meals: { breakfast: { source:'manual', kcal: 350, items: [{e:'🥛',n:'豆浆',m:'×1 · 300ml',k:90},{e:'🥮',n:'肉包',m:'×2',k:180},{e:'🥚',n:'茶叶蛋',m:'×1',k:80}] }, lunch: { source:'manual', kcal: 480, items: [{e:'🍜',n:'牛肉面',m:'×1 · 约400g',k:380},{e:'🥒',n:'凉拌黄瓜',m:'×1',k:100}] }, dinner: { source:'manual', kcal: 210, items: [{e:'🐟',n:'清蒸鱼',m:'×1 · 约150g',k:130},{e:'🥦',n:'西兰花',m:'×1',k:80}] }, snack: { source:'manual', kcal: 80, items: [{e:'🥜',n:'坚果',m:'×1把 · 约20g',k:80}] }, - exercise: { kcal: -250, items: [{e:'🚴',n:'骑行',m:'8km · 35分钟',k:-250}] } + exercise: { kcal: -250, items: [{e:'🚴',n:'骑行',m:'8km · 35分钟',k:-250,src:'equip'}] } }}, '2026-07-22': { intake: 980, consume: 740, gap: -412, macros: {carb:120,carbT:260,protein:58,proteinT:82,fat:22,fatT:60}, meals: { breakfast: { source:'auto', kcal: 220, items: [{e:'🥚',n:'水煮蛋',m:'×2',k:160},{e:'☕',n:'黑咖啡',m:'×1',k:5},{e:'🍞',n:'全麦吐司',m:'×1',k:55}] }, lunch: { source:'auto', kcal: 420, items: [{e:'🍚',n:'杂粮饭',m:'×1 · 约180g',k:200},{e:'🐔',n:'鸡胸肉',m:'×1 · 约120g',k:120},{e:'🥬',n:'蒜蓉菠菜',m:'×1',k:100}] }, dinner: { source:'auto', kcal: 280, items: [{e:'🥗',n:'凯撒沙拉',m:'×1 · 约250g',k:220},{e:'🍎',n:'苹果',m:'×1',k:60}] }, snack: { source:'auto', kcal: 60, items: [{e:'🥒',n:'黄瓜',m:'×1根',k:15},{e:'🍅',n:'小番茄',m:'×5颗',k:45}] }, - exercise: { kcal: -320, items: [{e:'🏊',n:'游泳',m:'40分钟',k:-260},{e:'🚶',n:'步行',m:'5000步',k:-60}] } + exercise: { kcal: -320, items: [{e:'🏊',n:'游泳',m:'40分钟',k:-260,src:'wearable'},{e:'🚶',n:'步行',m:'5000步',k:-60,src:'wechat'}] } }}, '2026-07-23': { intake: 1086, consume: 820, gap: -364, macros: {carb:155,carbT:260,protein:47,proteinT:82,fat:31,fatT:60}, meals: { breakfast: { source:'auto', kcal: 320, items: [{e:'🥚',n:'水煮鸡蛋',m:'×1 · 约50g',k:80},{e:'🥛',n:'纯牛奶',m:'×1 · 250ml',k:120},{e:'🍞',n:'全麦面包',m:'×2 · 约80g',k:120}] }, lunch: { source:'manual', kcal: 480, items: [{e:'🍚',n:'白米饭',m:'×1 · 约200g',k:232,src:'auto'},{e:'🐔',n:'宫保鸡丁',m:'×1 · 约150g',k:148},{e:'🥬',n:'清炒时蔬',m:'×1 · 约200g',k:100}] }, dinner: { source:'auto', kcal: 220, items: [{e:'🥗',n:'鸡胸肉沙拉',m:'×1 · 约250g',k:180},{e:'🍠',n:'蒸红薯',m:'×1 · 约100g',k:40}] }, snack: { source:'manual', kcal: 66, items: [{e:'🍎',n:'苹果',m:'×1 · 约200g',k:66}] }, - exercise: { kcal: -320, items: [{e:'🏃',n:'户外跑步',m:'5.2km · 32分钟',k:-260},{e:'🚶',n:'步行',m:'6800步 · 今日累计',k:-60}] } + exercise: { kcal: -320, items: [{e:'🏃',n:'户外跑步',m:'5.2km · 32分钟',k:-260,src:'wearable'},{e:'🚶',n:'步行',m:'6800步 · 今日累计',k:-60,src:'wechat'}] } }}, '2026-07-24': { intake: 0, consume: 0, gap: 0 }, '2026-07-25': { intake: 0, consume: 0, gap: 0 }, @@ -863,9 +866,13 @@ function renderMeals(dateStr) { exCard.style.display = ''; var html = ''; exMd.items.forEach(function(item) { + var srcTag = ''; + if (item.src) { + srcTag = '' + ({wearable:'穿戴',equip:'器械',wechat:'微信',manual:'自记'}[item.src] || item.src) + ''; + } html += '
' + '
' + item.e + '
' + - '
' + item.n + '
' + item.m + '
' + + '
' + item.n + srcTag + '
' + item.m + '
' + '
' + item.k + ' kcal
'; }); exContainer.innerHTML = html; diff --git a/employee-app/weight-management/exercise-advice-v2.html b/employee-app/weight-management/exercise-advice-v2.html new file mode 100644 index 0000000..3b8b766 --- /dev/null +++ b/employee-app/weight-management/exercise-advice-v2.html @@ -0,0 +1,621 @@ + + + + + +智能运动计划 - 员工端 | 健康CQ原型 v2 + + + +
+ + +
+ 09:40 +
+ + + +
+
+ + + + +
+ + +
+
+
+ +
+ + 2026年7月27日 + + +
+ +
+
+ + +
+
+
+ 2026年7月 +
+
+
+ +
+
+
+ +
+
+ + +
+
+ 💡 + 本周运动建议 + +
+
+

+ 根据你的身体数据和运动目标,本周建议每周运动 5 天,每天总消耗目标约 600-1000 千卡。以有氧运动为主(每周3-4次),配合力量训练(每周2次,隔天进行),穿插柔韧拉伸帮助肌肉恢复。周六安排趣味球类运动提高参与度,周日为主动恢复日,以低强度活动为主。运动时注意监测心率,保持在 (220-年龄)×60%~70% 区间。 +

+
+
!
+
高血压注意:避免憋气用力动作(如大重量举重),运动中监测心率不超过(220-年龄)×70%。首选快走、游泳、太极等中低强度有氧运动。
+
+
+
!
+
高尿酸提醒:避免剧烈无氧运动(产生乳酸抑制尿酸排泄),运动后及时补水2000ml以上。急性发作期应暂停运动,待症状缓解后从低强度开始恢复。
+
+
+
+ + +
+
+ 本周目标概览 + 7/27 - 8/2 +
+
+
+
📅
+
5
+
运动天数
+
+
+
🔥
+
4780
+
周消耗(kcal)
+
+
+
⏱️
+
310
+
周时长(分钟)
+
+
+
🧘
+
2
+
休息日
+
+
+
+ + +
+
+ 运动安排详情 + + 7月27日 周一 + +
+ + +
+ + +
+ + + +
+ +
+
+ +
+ + + + diff --git a/employee-app/weight-management/exercise-checkin-v2.html b/employee-app/weight-management/exercise-checkin-v2.html new file mode 100644 index 0000000..4d764e0 --- /dev/null +++ b/employee-app/weight-management/exercise-checkin-v2.html @@ -0,0 +1,706 @@ + + + + + +运动录入 - 员工端 | 健康CQ原型 v2 + + + +
+ + +
+ 09:40 +
+ + + +
+
+ + + + + +
+ +
+ + +
+
+ +
+
+
运动分类
+
+
+
+ + +
+
+
+
暂无匹配运动
+
+
+
+
+ + +
+
+ +
+
+ +
+ + +
+
+
+
+
+
+
+
千卡/30分钟
+
+
+
录入时长
+
+ + + + 分钟 +
+
+ 预估消耗 0 千卡 +
+ +
+
+ + +
+
+
+
+
已记录运动
+
+
+
+
+
+
+
+ +
+
+ + +
+ +
+ + + + diff --git a/employee-app/weight-management/exercise-detail-v2.html b/employee-app/weight-management/exercise-detail-v2.html new file mode 100644 index 0000000..81fcf37 --- /dev/null +++ b/employee-app/weight-management/exercise-detail-v2.html @@ -0,0 +1,1011 @@ + + + + + +运动记录 - 员工端 | 健康CQ原型 v2 + + + +
+ +
+ 09:40 +
+ + + +
+
+ + + +
+ + +
+
+
+ +
+ + 2026年7月23日 + + +
+ +
+
+ + +
+
+
+ 2026年7月 +
+
+
+ +
+
+ +
+ 穿戴 + 器械 + 微信 + 自记 + 多途径 +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 基础消耗 + 1200 千卡 + + + 活动消耗 + 320 千卡 + + + 总消耗 + 1520 + / 1800 千卡 + +
+ + +
+
+
今日步数
+
6800
+
+
+
运动次数
+
3
+
+
+
运动时长
+
62分钟
+
+
+
+ + +
+
+
变化趋势
+
+
+
+
+
+
活动期间
+
+
+
+
步数趋势
+
消耗趋势
+
时长趋势
+
+ + +
+ +
+
+
+
步数:
+
+ + + + + + + + + 15000 + 10000 + 5000 + 0 + + + + + + 07-20 + 07-21 + 07-22 + 07-23 + 07-24 + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+ + + + + + + + +
+
运动明细
+
+
+
+ +
+
+ + +
+ +
+ +
+ + + + diff --git a/employee-app/weight-management/fenxi.jpg b/employee-app/weight-management/fenxi.jpg new file mode 100644 index 0000000..a134549 Binary files /dev/null and b/employee-app/weight-management/fenxi.jpg differ diff --git a/employee-app/weight-management/goal-detail-v2.html b/employee-app/weight-management/goal-detail-v2.html new file mode 100644 index 0000000..fcb77e3 --- /dev/null +++ b/employee-app/weight-management/goal-detail-v2.html @@ -0,0 +1,457 @@ + + + + + +目标详情 - 员工端 | 健康CQ原型 v2 + + + +
+ +
+ 09:40 +
+ + + +
+
+ + +
+ +
+ + +
+ + +
+ + + + +
+ + +
+
+ +
+
目标审核中,请耐心等待
+
提交时间:2026-04-02 10:30
+
+
+ + +
+
活动信息活动详情
+
+
活动名称
2026年二季度体重管理活动
+
+
+
起止日期
2026-04-01 ~ 2026-09-30
+
组织机构
公司机关
+
+
+ + +
+
目标信息
+
+
+ + 初始 + + 目标 +
+
+ 体重 + 73.5kg + + 65.0kg +
+
+ 体脂率 + 28.6% + + 22.0% +
+
+ 腰围 + 88cm + + 78cm +
+
+
+
+ + + + + + + + + +
+ + + + +
+ +
+ +
+
+ +
+ + + + diff --git a/employee-app/weight-management/goal-management-v2.html b/employee-app/weight-management/goal-management-v2.html new file mode 100644 index 0000000..e7481b1 --- /dev/null +++ b/employee-app/weight-management/goal-management-v2.html @@ -0,0 +1,545 @@ + + + + + +目标管理 - 员工端 | 健康CQ原型 v2 + + + +
+ + +
+ 09:40 +
+ + + +
+
+ + + + +
+ + +
+
+
+
+ 🏆 + 活动目标 +
+
+
+
+
+ 🎯 + 个人目标 +
+
+
+ + +
+ + +
+
+ 选择活动 + +
+
+ 请选择体重管理活动 + +
+ + +
+ + +
+
数据设定
+ + +
+
基础信息
+
+ 性别 + +
+
+ 出生年月 + +
+
+ 身高 + + cm +
+
+ + +
+
初始数据
+
+ 体重 + + kg +
+
+ 体脂率 + + % +
+
+ 腰围 + + cm +
+
+ + +
+
目标数据
+
+ 体重 + + kg +
+
+ 体脂率 + + % +
+
+ 腰围 + + cm +
+
+
+ +
+ + + + +
+
+ + +
+ +
+ + +
+
+
+
选择体重管理活动
+
+
+
+
2026年二季度体重管理活动
+
2026-04-01 ~ 2026-09-30公司机关
+
+ +
+
+
+
2026年一季度减重挑战赛
+
2026-01-01 ~ 2026-03-31第一采油厂
+
+ +
+
+
+
全员健康体重管理计划
+
2025-10-01 ~ 2026-06-30第一采气厂
+
+ +
+
+
+ +
+
+ + +
+
+
+
确认提交
+
+
活动信息
+
活动名称--
+
起止日期--
+
组织机构--
+
+
+
初始数据
+
体重73.5 kg
+
体脂率28.6 %
+
腰围88 cm
+
+
+
目标数据
+
体重65.0 kg
+
体脂率22.0 %
+
腰围78 cm
+
+
+ + +
+
+
+ +
+ + + + diff --git a/employee-app/weight-management/report-detail.html b/employee-app/weight-management/report-detail.html index 981704a..436efca 100644 --- a/employee-app/weight-management/report-detail.html +++ b/employee-app/weight-management/report-detail.html @@ -122,7 +122,11 @@ var device = new URLSearchParams(location.search).get('device') || 'fat'; /* 返回来源页面 */ function goBack() { - location.href = 'weight-history.html'; + if (document.referrer) { + location.href = document.referrer; + } else { + history.back(); + } } /* 头部设备标签 */ diff --git a/employee-app/weight-management/weight-detail-v2.html b/employee-app/weight-management/weight-detail-v2.html index 5a087cc..113bc2f 100644 --- a/employee-app/weight-management/weight-detail-v2.html +++ b/employee-app/weight-management/weight-detail-v2.html @@ -15,7 +15,6 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items: .nav-bar { height: 44px; background: #fff; display: flex; align-items: center; padding: 0 16px; flex-shrink: 0; border-bottom: 1px solid #f0f0f0; } .nav-back { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1a1a1a; } .nav-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; color: #1a1a1a; } -.nav-add { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #36cfc9; } .scroll-content { flex: 1; overflow-y: auto; background: #f5f7fa; } .scroll-content::-webkit-scrollbar { display: none; } @@ -270,9 +269,6 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items: -
@@ -365,11 +361,12 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
变化趋势
-
-
-
活动期间
-
全部
-
+
+
+
+
+
活动期间
+
体重变化
@@ -1181,17 +1178,18 @@ function submitRecord() { // 刷新界面 renderWeek(); // 重新激活当前时间范围,刷新记录列表 - var activeTab = document.querySelector('.time-range-tab.active'); - if (activeTab) { - var range = 'month'; - if (activeTab.textContent === '季') range = 'quarter'; - else if (activeTab.textContent === '活动期间') range = 'activity'; - else if (activeTab.textContent === '全部') range = 'all'; - renderRecordList(range); - } else { - renderRecordList('month'); - } -} + var activeTab = document.querySelector('.time-range-tab.active'); + if (activeTab) { + var range = 'week'; + if (activeTab.textContent === '月') range = 'month'; + else if (activeTab.textContent === '季') range = 'quarter'; + else if (activeTab.textContent === '年') range = 'year'; + else if (activeTab.textContent === '活动期间') range = 'activity'; + renderRecordList(range); + } else { + renderRecordList('week'); + } + } function renderRecordFields() { var body = document.getElementById('recordSheetBody'); @@ -1349,12 +1347,18 @@ function switchTimeRange(el, range) { function renderRecordList(range) { var now = today; var cutoff; - if (range === 'month') { + if (range === 'week') { + cutoff = new Date(now); + cutoff.setDate(cutoff.getDate() - 7); + } else if (range === 'month') { cutoff = new Date(now); cutoff.setMonth(cutoff.getMonth() - 1); } else if (range === 'quarter') { cutoff = new Date(now); cutoff.setMonth(cutoff.getMonth() - 3); + } else if (range === 'year') { + cutoff = new Date(now); + cutoff.setFullYear(cutoff.getFullYear() - 1); } else if (range === 'activity') { // 活动期间:演示用最近60天 cutoff = new Date(now); @@ -1517,7 +1521,7 @@ document.addEventListener('click', function(e) { /* ===== 初始化 ===== */ // renderWeek → selectDay → renderDayDetail → renderFatMetric/renderBmiMetric 已形成完整调用链 renderWeek(); -renderRecordList('month'); +renderRecordList('week'); diff --git a/employee-app/weight-management/weight-main-v2.html b/employee-app/weight-management/weight-main-v2.html index cd88649..c84bf02 100644 --- a/employee-app/weight-management/weight-main-v2.html +++ b/employee-app/weight-management/weight-main-v2.html @@ -7,7 +7,7 @@ @@ -179,7 +305,10 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
@@ -342,7 +504,7 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
- 吃记录 + 吃记录
+ -
+ +
+
-
+
@@ -443,13 +608,13 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
- 体重记录 + 体重记录
-
@@ -501,6 +666,91 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
+ +
+
+ 🏆 排行榜 + 查看全部 +
+
+
12
+
+
+
技术研发部
+
+
86
+
+
+
+ 1 + 张明 + 98 分 +
+
+ 2 + 李婷 + 95 分 +
+
+ 3 + 王磊 + 92 分 +
+
+
+ + +
+
+ 📊 体重报告 + 查看详情 +
+
+ 截止至 2026-08-26 + | + 62天 +
+
+
+
65.2
+
初始体重 kg
+
+ +
+
62.6
+
当前体重 kg
+
+ +
+
60.0
+
目标体重 kg
+
+
+
+
+
-2.6kg
+
已减体重
+
+
+
2.6kg
+
距目标
+
+
+
50%
+
目标进度
+
+
+
+
+
+
+
+ 0% + 目标 60.0kg +
+
+
+
推荐视频
@@ -559,6 +809,30 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
+ +
+
+
+
+
+ + + + + + +
+
+
记录体重
+
滑动尺子调整数值
+
+
+
+
+ +
+
+
diff --git a/employee-app/weight-management/weight-ranking.html b/employee-app/weight-management/weight-ranking.html index 0490bf4..d34e45f 100644 --- a/employee-app/weight-management/weight-ranking.html +++ b/employee-app/weight-management/weight-ranking.html @@ -104,7 +104,7 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items: