Преглед изворни кода

deploy: client-app v1.81 → v1.103 批量上线(Jack 确认 2026-09-05)

联盟机构墙 8 家全真 Logo(assets/orgs/ 新增 · 优家备选注释下架)· 评分中心
MICA+MISS 免疫评估回首位 · MISS 尺 ±25 端点修复+加重 · 免疫卡分值同源 ·
C20 免疫评估屏 · C21 添加家庭成员 · 卒中急救地图 · 永活水四档圆整 + 积分 1% 等
(index.html / cfhi-questions.js 为顾问端并行改动同步)

Co-Authored-By: Claude <noreply@anthropic.com>
Jack пре 2 месеци
родитељ
комит
01e8eca167

BIN
assets/orgs/beijing.png


BIN
assets/orgs/fasheng.png


BIN
assets/orgs/guoce.png


BIN
assets/orgs/jianhe.png


BIN
assets/orgs/lishi.png


BIN
assets/orgs/mingdao.png


BIN
assets/orgs/stroke-map.png


BIN
assets/orgs/tianjiu.png


BIN
assets/orgs/youjia.png


BIN
assets/orgs/zhufei.png


Разлика између датотеке није приказан због своје велике величине
+ 587 - 72
client-app.html


+ 21 - 7
index.html

@@ -6206,7 +6206,7 @@ function initHbsTrend(){
             <button class="cfhi-quiz-tab-btn" onclick="showCfhiQuizTab('D3', this)"><span class="cfhi-quiz-tab-code">D3</span><span class="cfhi-quiz-tab-name">慢病管理</span><span class="cfhi-quiz-tab-score">4.5</span></button>
             <button class="cfhi-quiz-tab-btn warn" onclick="showCfhiQuizTab('D4', this)"><span class="cfhi-quiz-tab-code">D4</span><span class="cfhi-quiz-tab-name">遗传风险</span><span class="cfhi-quiz-tab-score">3.0</span></button>
             <button class="cfhi-quiz-tab-btn" onclick="showCfhiQuizTab('D5', this)"><span class="cfhi-quiz-tab-code">D5</span><span class="cfhi-quiz-tab-name">生活方式</span><span class="cfhi-quiz-tab-score">5.1</span></button>
-            <button class="cfhi-quiz-tab-btn" onclick="showCfhiQuizTab('D6', this)"><span class="cfhi-quiz-tab-code">D6</span><span class="cfhi-quiz-tab-name">心理健康</span><span class="cfhi-quiz-tab-score">4.7</span></button>
+            <button class="cfhi-quiz-tab-btn" onclick="showCfhiQuizTab('D6', this)"><span class="cfhi-quiz-tab-code">D6</span><span class="cfhi-quiz-tab-name">心理与恢复</span><span class="cfhi-quiz-tab-score">4.7</span></button>
             <button class="cfhi-quiz-tab-btn" onclick="showCfhiQuizTab('D7', this)"><span class="cfhi-quiz-tab-code">D7</span><span class="cfhi-quiz-tab-name">医疗可及</span><span class="cfhi-quiz-tab-score">5.7</span></button>
           </div>
 
@@ -6324,10 +6324,10 @@ function initHbsTrend(){
               </div>
             </div>
 
-            <!-- D6 心理健康 -->
+            <!-- D6 心理与恢复 -->
             <div class="cfhi-quiz-pane" id="cfhi-quiz-D6">
-              <div class="cfhi-quiz-pane-title">D6 · 心理健康<span class="max">/ 6 分</span></div>
-              <div class="cfhi-quiz-pane-desc">压力 / 情绪管理 —— 免疫与代谢的隐性调节变量。</div>
+              <div class="cfhi-quiz-pane-title">D6 · 心理与恢复<span class="max">/ 6 分</span></div>
+              <div class="cfhi-quiz-pane-desc">压力 / 情绪 / 睡眠恢复质量 —— 免疫与代谢的隐性调节变量。</div>
               <div class="quiz-card">
                 <div class="quiz-question"><b>Q6.1</b>家庭成员是否有压力 / 情绪管理的意识与方法?</div>
                 <div class="quiz-options">
@@ -6552,7 +6552,7 @@ function initHbsTrend(){
             <div class="cfhi-quiz-pane" id="cfhi-quiz-DEEP-D6">
               <div class="cfhi-quiz-pane-desc">⚠️ 本维度含 PHQ-2 / GAD-2 国际公版筛查题——只作风险提示,不构成医学诊断。</div>
               <div class="quiz-card">
-                <div class="cfhi-quiz-pane-title">D6 · 心理健康<span class="max">深度版 5 题 / 满分 15</span></div>
+                <div class="cfhi-quiz-pane-title">D6 · 心理与恢复<span class="max">深度版 5 题 / 满分 15</span></div>
                 <div class="quiz-question"><b>Q6.1</b>(PHQ-2①)过去 2 周,「做事时提不起劲或没有兴趣」出现的频率?</div>
                 <div class="quiz-options">
                   <div class="quiz-option"><span class="quiz-option-marker">A</span>几乎每天<span class="quiz-option-score">0 分</span></div>
@@ -6759,7 +6759,7 @@ function initHbsTrend(){
               <text x="379" y="241">D3 慢病管理</text>
               <text x="280" y="366">D4 遗传风险</text>
               <text x="120" y="366">D5 生活方式</text>
-              <text x="21" y="241">D6 心理健康</text>
+              <text x="21" y="241">D6 心理与恢复</text>
               <text x="56" y="85">D7 医疗可及</text>
             </g>
           </svg>
@@ -6804,10 +6804,24 @@ function initHbsTrend(){
         </div>
         <div class="cfhi-dim-item">
           <div class="cfhi-dim-code">D6</div>
-          <div class="cfhi-dim-name">心理健康<small>压力 / 情绪管理</small></div>
+          <div class="cfhi-dim-name">心理与恢复<small>压力 / 情绪 / 睡眠恢复</small></div>
           <div class="cfhi-dim-bar"><div style="width:78%"></div></div>
           <div class="cfhi-dim-score">4.7</div>
         </div>
+        <!-- v2.38 · D6 双子分(呈现层 · 70/30 合成规则不变 · 与客户端 v1.96 同口径) -->
+        <div class="cfhi-dim-item" style="opacity:.8">
+          <div class="cfhi-dim-code"></div>
+          <div class="cfhi-dim-name" style="font-size:.72rem;color:#5a6b62;padding-left:8px">心理状态 · 问卷</div>
+          <div class="cfhi-dim-bar" style="height:5px"><div style="width:67%"></div></div>
+          <div class="cfhi-dim-score" style="font-size:.8rem">4.0</div>
+        </div>
+        <div class="cfhi-dim-item" style="opacity:.8">
+          <div class="cfhi-dim-code"></div>
+          <div class="cfhi-dim-name" style="font-size:.72rem;color:#5a6b62;padding-left:8px">恢复质量 · 数据</div>
+          <div class="cfhi-dim-bar" style="height:5px"><div style="width:83%"></div></div>
+          <div class="cfhi-dim-score" style="font-size:.8rem">5.0</div>
+        </div>
+        <div style="font-size:.68rem;color:#8a958e;padding:0 0 6px 30px;line-height:1.5">合成 = 30% 问卷 + 70% 数据(0.3 × 4.0 + 0.7 × 5.0 = 4.7)</div>
         <div class="cfhi-dim-item">
           <div class="cfhi-dim-code">D7</div>
           <div class="cfhi-dim-name">医疗可及<small>家庭医生 / 就医通道</small></div>

+ 4 - 4
shared/cfhi-questions.js

@@ -34,8 +34,8 @@ const CFHI_DIMENSIONS = [
     desc: '直系亲属重大疾病史 + 高危基因筛查(静态 · 一次录入)。' },
   { code: 'D5', name: '生活方式', weight: 1.0, max: 6, drifts: true,
     desc: '睡眠 / 运动 / 饮食——可干预性最强的日常健康杠杆。' },
-  { code: 'D6', name: '心理健康', weight: 1.0, max: 6, drifts: true,
-    desc: '压力 / 情绪管理——免疫与代谢的隐性调节变量。' },
+  { code: 'D6', name: '心理与恢复', weight: 1.0, max: 6, drifts: true,
+    desc: '压力 / 情绪 / 睡眠恢复质量——免疫与代谢的隐性调节变量。' },
   { code: 'D7', name: '医疗可及', weight: 1.0, max: 6, drifts: false,
     desc: '家庭医生 / 私人医生 / 绿通(低频 · 月度结算)。' },
 ];
@@ -89,7 +89,7 @@ const CFHI_ENTRY = [
   { id: 'Q5.2', dim: 'D5', label: '过去 7 天,家庭主要成员有几天做到「23:00 前入睡 + 三餐规律」?',
     options: [ { text: '0-1 天', score: 0 }, { text: '2-3 天', score: 1 },
                { text: '4-5 天', score: 2 }, { text: '6-7 天', score: 3 } ] },
-  /* D6 · 心理健康 */
+  /* D6 · 心理与恢复 */
   { id: 'Q6.1', dim: 'D6', label: '过去 3 个月,家庭主要成员是否出现过持续一周以上的明显压力或情绪低落?',
     options: [ { text: '经常(每月都有)', score: 0 }, { text: '出现过 1-2 次', score: 1 },
                { text: '很少', score: 2 }, { text: '没有,且家庭有固定的减压方式', score: 3 } ] },
@@ -172,7 +172,7 @@ const CFHI_DEEP = [
     options: [ { text: '>10 小时', score: 0 }, { text: '8-10 小时', score: 1 }, { text: '5-7 小时', score: 2 }, { text: '<5 小时', score: 3 } ] },
   { id: 'D5.5', dim: 'D5', label: '(饮食)过去 7 天,家庭主要成员有几天做到「蔬菜 ≥300g + 水果 + 优质蛋白」的均衡饮食?',
     options: [ { text: '0-1 天', score: 0 }, { text: '2-3 天', score: 1 }, { text: '4-5 天', score: 2 }, { text: '6-7 天', score: 3 } ] },
-  /* D6 · 心理健康(5 题 · PHQ-2 + GAD-2 国际公版 · 筛查非诊断) */
+  /* D6 · 心理与恢复(5 题 · PHQ-2 + GAD-2 国际公版 · 筛查非诊断) */
   { id: 'D6.1', dim: 'D6', scale: 'PHQ-2', label: '过去 2 周,「做事时提不起劲或没有兴趣」出现的频率?',
     options: [ { text: '几乎每天', score: 0 }, { text: '一半以上的天数', score: 1 }, { text: '有几天', score: 2 }, { text: '完全不会', score: 3 } ] },
   { id: 'D6.2', dim: 'D6', scale: 'PHQ-2', label: '过去 2 周,「感到心情低落、沮丧或绝望」出现的频率?',

Неке датотеке нису приказане због велике количине промена