- 新协议《协议简述-添加扫描时光色》落地: FFE4 Byte17 高3位=扫描光色(1红/2红外/3紫外/4暖黄), 低5位保留贴合状态; Byte18=0xFF 故障; auto-scan 按光色分桶采集(旧固件无标识归 red 桶降级) - diagnosis.js 重写: PD极性(值大=吸收多,固件已确认) NR=本区/本色5区平均-1; 每区4色argmax>0.10判定; 3路PD区几何平均+MAD剔奇异(3σ对n=3失效,审计实证); 严重度0.05/0.15/0.30仅展示; 全参数走 diagnosis_config 热调(极性/阈值/PD映射/亮度) - buildVendorCommand 支持 plan 多区多色单命令下发(每IO独立 红/红外/紫外/暖黄); builder层安全硬上限 治疗亮度≤204(80%) 时长≤600s - 区域映射修正: 掩码=IO纵列 左0x01/中上0x02/中0x04/中下0x08/右0x10, 修复 treatment-setup/manual/treating/getRegionName/i18n 共7处标签错位, FULL_FACE 0x7F→0x1F - 扫描报告页: 新增分区面罩示意图(5区按推荐光着色+模式名+严重度,点击跳光疗介绍), 推荐护理改一条命令多色下发(亮度204); 扫描中设备故障即时中止 - schema.sql diagnosis_config 种子更新(新结构); i18n 清理死键,中英对齐25/24键
168 行
4.9 KiB
Plaintext
168 行
4.9 KiB
Plaintext
.page {
|
|
min-height: 100vh;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.loading-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding-top: 120rpx;
|
|
}
|
|
.loading-spinner {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
border: 6rpx solid #eee;
|
|
border-top-color: #E8503A;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
.loading-text { margin-top: 20rpx; color: #999; font-size: 26rpx; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.concept-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
background: #FFF7E6;
|
|
border: 1rpx solid #FFE1A8;
|
|
border-radius: 14rpx;
|
|
padding: 18rpx 22rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
.concept-icon { color: #E8971A; margin-right: 12rpx; font-size: 30rpx; }
|
|
.concept-text { color: #A66908; font-size: 24rpx; line-height: 1.4; flex: 1; }
|
|
|
|
.scan-time { color: #999; font-size: 24rpx; margin: 0 6rpx 20rpx; }
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: 18rpx;
|
|
padding: 28rpx 26rpx;
|
|
margin-bottom: 22rpx;
|
|
box-shadow: 0 4rpx 18rpx rgba(0,0,0,0.04);
|
|
}
|
|
.card-title { font-size: 30rpx; font-weight: 600; color: #333; margin-bottom: 20rpx; }
|
|
|
|
.chip-row { display: flex; flex-wrap: wrap; }
|
|
.chip {
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 999rpx;
|
|
padding: 10rpx 22rpx;
|
|
margin: 0 16rpx 16rpx 0;
|
|
background: #F3F4F6;
|
|
}
|
|
.chip-name { font-size: 26rpx; color: #333; }
|
|
.chip-lv { font-size: 22rpx; color: #fff; margin-left: 12rpx; padding: 2rpx 14rpx; border-radius: 999rpx; background: #bbb; }
|
|
.chip-lv1 .chip-lv { background: #6BBF59; }
|
|
.chip-lv2 .chip-lv { background: #F5B841; }
|
|
.chip-lv3 .chip-lv { background: #E8503A; }
|
|
|
|
.empty-hint { color: #999; font-size: 26rpx; }
|
|
|
|
.face-map {
|
|
display: flex;
|
|
height: 480rpx;
|
|
gap: 8rpx;
|
|
padding: 12rpx;
|
|
box-sizing: border-box;
|
|
background: #FAFAFA;
|
|
border-radius: 32rpx;
|
|
}
|
|
.face-col { display: flex; flex-direction: column; flex: 1; gap: 8rpx; }
|
|
.face-col-mid { flex: 1.15; }
|
|
.face-zone {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 20rpx;
|
|
border: 2rpx solid transparent;
|
|
padding: 8rpx;
|
|
box-sizing: border-box;
|
|
transition: transform 0.1s ease;
|
|
}
|
|
.face-col-side .face-zone { border-radius: 28rpx; }
|
|
.face-zone:active { transform: scale(0.96); }
|
|
.face-zone-name { font-size: 26rpx; font-weight: 600; }
|
|
.face-zone-mode { font-size: 22rpx; margin-top: 6rpx; }
|
|
.face-zone-level { font-size: 20rpx; margin-top: 2rpx; opacity: 0.85; }
|
|
|
|
.zone-red {
|
|
background: rgba(232, 93, 93, 0.14);
|
|
border-color: rgba(232, 93, 93, 0.4);
|
|
color: #B23C3C;
|
|
}
|
|
.zone-ir {
|
|
background: rgba(192, 107, 74, 0.14);
|
|
border-color: rgba(192, 107, 74, 0.4);
|
|
color: #8C4A2E;
|
|
}
|
|
.zone-uv {
|
|
background: rgba(142, 107, 216, 0.14);
|
|
border-color: rgba(142, 107, 216, 0.4);
|
|
color: #5F3FAE;
|
|
}
|
|
.zone-yellow {
|
|
background: rgba(232, 185, 61, 0.18);
|
|
border-color: rgba(232, 185, 61, 0.45);
|
|
color: #8A6A10;
|
|
}
|
|
.zone-none {
|
|
background: #F0F0F0;
|
|
border-color: #E5E5E5;
|
|
color: #999;
|
|
}
|
|
|
|
.face-legend { display: flex; flex-wrap: wrap; margin-top: 20rpx; }
|
|
.legend-item { display: flex; align-items: center; margin: 0 20rpx 10rpx 0; }
|
|
.legend-dot { width: 16rpx; height: 16rpx; border-radius: 50%; margin-right: 8rpx; }
|
|
.legend-dot.zone-red { background: #E85D5D; border: none; }
|
|
.legend-dot.zone-ir { background: #C06B4A; border: none; }
|
|
.legend-dot.zone-uv { background: #8E6BD8; border: none; }
|
|
.legend-dot.zone-yellow { background: #E8B93D; border: none; }
|
|
.legend-label { font-size: 22rpx; color: #666; }
|
|
|
|
.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; }
|
|
|
|
.region-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
.region-row:last-child { border-bottom: none; }
|
|
.region-name { font-size: 28rpx; color: #333; }
|
|
.region-right { display: flex; align-items: center; }
|
|
.region-problem { font-size: 26rpx; color: #555; margin-right: 14rpx; }
|
|
.region-problem-none { color: #aaa; }
|
|
.region-lv { font-size: 22rpx; color: #fff; padding: 2rpx 14rpx; border-radius: 999rpx; background: #bbb; }
|
|
.region-lv1 { background: #6BBF59; }
|
|
.region-lv2 { background: #F5B841; }
|
|
.region-lv3 { background: #E8503A; }
|
|
|
|
.rec-row { display: flex; align-items: flex-start; padding: 16rpx 0; }
|
|
.rec-dot {
|
|
width: 14rpx; height: 14rpx; border-radius: 50%;
|
|
background: #E8503A; margin-top: 12rpx; margin-right: 18rpx; flex-shrink: 0;
|
|
}
|
|
.rec-body { display: flex; flex-direction: column; }
|
|
.rec-label { font-size: 28rpx; color: #333; font-weight: 500; }
|
|
.rec-meta { font-size: 24rpx; color: #999; margin-top: 6rpx; }
|
|
|
|
.error-text { color: #E8503A; font-size: 26rpx; text-align: center; margin: 10rpx 0; }
|
|
|
|
.actions { margin-top: 12rpx; }
|
|
.actions .btn-primary, .actions .btn-secondary { margin-bottom: 20rpx; }
|
|
|
|
.disclaimer {
|
|
color: #b0b0b0;
|
|
font-size: 22rpx;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
margin: 20rpx 10rpx 40rpx;
|
|
}
|