diff --git a/employee-app/weight-management/weight-main.html b/employee-app/weight-management/weight-main.html index de94b95..a5f4ed7 100644 --- a/employee-app/weight-management/weight-main.html +++ b/employee-app/weight-management/weight-main.html @@ -323,7 +323,60 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items: .video-card__author-overlay { position: absolute; bottom: 4px; left: 6px; font-size: 10px; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.5); } .video-card__info { padding: 8px 10px 10px; } .video-card__title { font-size: 13px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } - .video-card__org { font-size: 10px; color: #bbb; margin-top: 3px; } + .video-card__org { font-size: 10px; color: #bbb; margin-top: 3px; } + + /* ===== 本月吃动:日历导航 ===== */ + .cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 4px; } + .cal-nav__arrow { width: 26px; height: 26px; border-radius: 50%; background: #f7f8fa; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; } + .cal-nav__arrow svg { width: 14px; height: 14px; stroke: #333; } + .cal-nav__month { font-size: 14px; font-weight: 700; color: #1a1a1a; } + + /* ===== 本月吃动:日历 ===== */ + .cal-grid { padding: 0 0 8px; } + .cal-grid__wd { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 3px; } + .cal-grid__wd span { font-size: 10px; color: #999; text-align: center; } + .cal-grid__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } + .cal-day { display: flex; flex-direction: column; align-items: center; padding: 1px 0 2px; border-radius: 6px; cursor: pointer; min-height: 34px; } + .cal-day:hover { background: #f0f8f8; } + .cal-day.today { background: #e8f8f7; } + .cal-day.sel { background: #e8f8f7; border: 1.5px solid #36cfc9; } + .cal-day__num { font-size: 12px; font-weight: 700; color: #333; line-height: 1.2; } + .cal-day.today .cal-day__num, .cal-day.sel .cal-day__num { color: #36cfc9; } + .cal-day--empty { min-height: 34px; } + + .cal-ring-wrap { display: flex; align-items: center; justify-content: center; margin-top: 2px; width: 24px; height: 24px; position: relative; } + .cal-ring--o { position: absolute; width: 21px; height: 21px; } + .cal-ring--o svg { width: 100%; height: 100%; } + .cal-ring--i { position: absolute; width: 14px; height: 14px; } + .cal-ring--i svg { width: 100%; height: 100%; } + + .cal-day-diff { font-size: 7px; color: #bbb; margin-top: 0; text-align: center; line-height: 1.2; } + .cal-day-diff span:first-child { color: #36cfc9; } + + /* ===== 本月吃动:柱状图 ===== */ + .bar-section { padding: 8px 0 4px; } + .bar-section__title { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; padding-left: 2px; } + .bar-area { position: relative; width: 100%; height: 200px; } + .bar-area svg { width: 100%; height: 100%; display: block; } + .bar-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } + .bar-hit { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 3px 3px 0 0; } + .bar-hit:hover { opacity: 0.85; } + .bar-legend { display: flex; justify-content: center; gap: 14px; margin-top: 6px; } + .bar-legend__item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #666; } + .bar-legend__sw { width: 10px; height: 7px; border-radius: 2px; flex-shrink: 0; } + .bar-legend__sw--in { background: #5470c6; } + .bar-legend__sw--ex { background: #fac858; } + + /* 本月吃动 Tooltip */ + .balance-tip { display: none; position: absolute; background: rgba(30,30,30,0.9); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 11px; line-height: 1.7; pointer-events: none; z-index: 10; min-width: 130px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); } + .balance-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: rgba(30,30,30,0.9); } + .balance-tip__date { font-weight: 700; font-size: 12px; margin-bottom: 4px; } + .balance-tip__row { display: flex; justify-content: space-between; } + .balance-tip__lbl { color: #ccc; } + .balance-tip__val { font-weight: 600; } + .balance-tip__val--b { color: #7eb8f7; } + .balance-tip__val--y { color: #f7d794; } + .balance-tip__div { border-top: 1px solid rgba(255,255,255,0.15); margin: 4px 0; } @@ -349,7 +402,7 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
已参加活动
已设置个人目标
-
未参加未设置
+
未参加未设置未组织
@@ -643,46 +696,56 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items: