feat: 体重管理子页面补充—饮食/运动/体重打卡与记录、建议页、排行榜、报告页

- weight-main.html: 右上角三点菜单支持三种页面类型切换(已参加活动/已设置个人目标/未参加未设置),各类型卡片显隐控制
- 每日打卡三卡片(吃/动/体重)添加点击跳转至对应打卡页
- 膳食建议/运动建议/体重报告卡片添加跳转,报告卡片携带当前类型参数
- 排行榜新增缺省占位状态(未参加活动时显示空态提示)
- 新增10个子页面: diet-advice/eat-checkin/eat-history/exercise-advice/exercise-checkin/exercise-history/weight-checkin/weight-history/weight-ranking/weight-report
- employee-app/home/index.html 每日打卡卡片同步添加点击跳转
- index.html SITE_MAP 体重管理模块新增10个页面条目

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
liuyunqin
2026-06-12 18:08:29 +08:00
co-authored by Claude Opus 4.8
parent 2373704945
commit 00f2ef7e73
14 changed files with 6239 additions and 17 deletions
+7 -4
View File
@@ -70,7 +70,7 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
.daily-date { font-size: 14px; color: #1f1f1f; text-align: center; margin-bottom: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; }
.daily-date::before, .daily-date::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #ff7a6b, transparent); max-width: 90px; }
.daily-checkin { display: flex; gap: 10px; }
.checkin-card { flex: 1; border-radius: 14px; padding: 14px 8px 12px; text-align: center; color: #fff; position: relative; }
.checkin-card { flex: 1; border-radius: 14px; padding: 14px 8px 12px; text-align: center; color: #fff; position: relative; cursor: pointer; }
.checkin-card--eat { background: linear-gradient(160deg, #6ee16e 0%, #3ec46a 100%); }
.checkin-card--move { background: linear-gradient(160deg, #ffb066 0%, #ff8a3d 100%); }
.checkin-card--weight { background: linear-gradient(160deg, #b08cff 0%, #8b6cff 100%); }
@@ -253,19 +253,22 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
<div class="daily-card">
<div class="daily-date">2025年08月12日</div>
<div class="daily-checkin">
<div class="checkin-card checkin-card--eat">
<!-- [交互] 点击跳转至: eat-checkin.html -->
<div class="checkin-card checkin-card--eat" onclick="location.href='../weight-management/eat-checkin.html'">
<div class="checkin-card__label"></div>
<div class="checkin-card__val">1086<span class="checkin-card__unit">kcal</span></div>
<div class="checkin-card__recommend">推荐 1950千卡</div>
<div class="checkin-card__days">累计行动52天</div>
</div>
<div class="checkin-card checkin-card--move">
<!-- [交互] 点击跳转至: exercise-checkin.html -->
<div class="checkin-card checkin-card--move" onclick="location.href='../weight-management/exercise-checkin.html'">
<div class="checkin-card__label"></div>
<div class="checkin-card__val">12586<span class="checkin-card__unit"></span></div>
<div class="checkin-card__recommend">推荐 12000步</div>
<div class="checkin-card__days">累计行动362天</div>
</div>
<div class="checkin-card checkin-card--weight">
<!-- [交互] 点击跳转至: weight-checkin.html -->
<div class="checkin-card checkin-card--weight" onclick="location.href='../weight-management/weight-checkin.html'">
<div class="checkin-card__label">体重</div>
<div class="checkin-card__val">62.60<span class="checkin-card__unit">kg</span></div>
<div class="checkin-card__recommend">推荐 75-80公斤</div>