feat(ui): use face-map layout for report zones and manual region picker; restrict manual care to smart mode

- scan-report: replace zone card grid with the same oval face-map layout as
  treatment-setup, zones tinted by recommended light with mode label; restore
  the per-light legend under the map
- manual-treatment: region picker now uses the same face-map layout
- manual care mode selection is smart-mode only: entry link hidden for
  non-subscribers and the page itself checks subscription (free mode passes
  since the backend reports it as active)
这个提交包含在:
Guoguo
2026-07-28 06:44:34 -07:00
父节点 39177e5ff4
当前提交 431d4058a8
修改 7 个文件,包含 116 行新增59 行删除
+38 -22
查看文件
@@ -60,34 +60,50 @@
.empty-hint { color: #999; font-size: 26rpx; }
/* 分区卡片栅格 — 与「使用设置」mode-selector 同款:等宽圆角卡片,3+2 排布 */
.zone-grid {
/* 脸型图 — 与「使用设置」同款布局,放大以容纳模式名 */
.face-map {
width: 320rpx;
height: 400rpx;
margin: 0 auto 16rpx;
position: relative;
}
.face-region {
position: absolute;
border: 3rpx solid #e5e5e5;
border-radius: 50%;
display: flex;
flex-wrap: wrap;
gap: 20rpx;
flex-direction: column;
align-items: center;
justify-content: center;
background: #FAFAFA;
color: #999;
}
.zone-card {
flex: 0 0 calc((100% - 40rpx) / 3);
box-sizing: border-box;
padding: 24rpx 12rpx;
border: 4rpx solid #e5e5e5;
border-radius: 24rpx;
text-align: center;
color: #666;
}
.zone-card:active { transform: scale(0.97); }
.zone-card-name { font-size: 28rpx; font-weight: 600; color: inherit; }
.zone-card-mode { font-size: 22rpx; margin-top: 6rpx; }
.zone-card-level { font-size: 20rpx; margin-top: 2rpx; opacity: 0.85; }
.face-region:active { transform: scale(0.96); }
.fz-name { font-size: 22rpx; font-weight: 600; }
.fz-mode { font-size: 18rpx; margin-top: 2rpx; }
.face-region.forehead { top: 5%; left: 25%; width: 50%; height: 15%; border-radius: 40rpx 40rpx 50% 50%; }
.face-region.left-cheek { top: 25%; left: 5%; width: 30%; height: 25%; }
.face-region.right-cheek { top: 25%; right: 5%; width: 30%; height: 25%; }
.face-region.nose { top: 45%; left: 35%; width: 30%; height: 18%; border-radius: 40%; }
.face-region.chin { top: 68%; left: 25%; width: 50%; height: 20%; border-radius: 0 0 50% 50%; }
/* 波长配色(置于 .zone-card 之后以覆盖默认边框/文字色) */
.zone-red { background: rgba(232, 93, 93, 0.10); border-color: rgba(232, 93, 93, 0.55); color: #B23C3C; }
.zone-ir { background: rgba(192, 107, 74, 0.10); border-color: rgba(192, 107, 74, 0.55); color: #8C4A2E; }
.zone-uv { background: rgba(142, 107, 216, 0.10); border-color: rgba(142, 107, 216, 0.55); color: #5F3FAE; }
.zone-yellow { background: rgba(232, 185, 61, 0.12); border-color: rgba(232, 185, 61, 0.6); color: #8A6A10; }
/* 波长配色(置于 .face-region 之后以覆盖默认色) */
.zone-red { background: rgba(232, 93, 93, 0.14); border-color: rgba(232, 93, 93, 0.55); color: #B23C3C; }
.zone-ir { background: rgba(192, 107, 74, 0.14); border-color: rgba(192, 107, 74, 0.55); color: #8C4A2E; }
.zone-uv { background: rgba(142, 107, 216, 0.14); border-color: rgba(142, 107, 216, 0.55); color: #5F3FAE; }
.zone-yellow { background: rgba(232, 185, 61, 0.16); border-color: rgba(232, 185, 61, 0.6); color: #8A6A10; }
.zone-none { background: #FAFAFA; border-color: #e5e5e5; color: #999; }
/* 底部图例:各光简要功效 */
.face-legend { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 8rpx; }
.legend-item { display: flex; align-items: center; margin: 0 16rpx 10rpx 0; }
.legend-dot { width: 16rpx; height: 16rpx; border-radius: 50%; margin-right: 8rpx; }
.dot-red { background: #E85D5D; }
.dot-ir { background: #C06B4A; }
.dot-uv { background: #8E6BD8; }
.dot-yellow { background: #E8B93D; }
.legend-label { font-size: 22rpx; color: #888; }
.face-tap-hint { font-size: 22rpx; color: #bbb; margin-top: 14rpx; text-align: center; }
.face-all-normal-hint { font-size: 24rpx; color: #6BBF59; text-align: center; margin-top: 12rpx; }