| 123456 |
- <!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>铭道健康家办|会员报告审阅版</title><link rel="stylesheet" href="../shared/wide-members.css"><script src="../shared/wide-members.js" defer></script><style>*{box-sizing:border-box}body{background:#f3f4ee;color:#173d36;margin:0;font:16px/1.65 system-ui,sans-serif}main{max-width:610px;margin:auto;padding:22px}header,nav,.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}header{padding-bottom:15px;border-bottom:1px solid #c7d3c7}small{color:#51665a}h1{font-size:32px;line-height:1.25;margin:20px 0 8px}h2{font-size:20px}article{background:white;border-radius:16px;padding:20px;margin:15px 0}.hero{background:linear-gradient(125deg,#0c3b36,#13614f);color:white}.hero small{color:#d7e7d9}a{color:#125546;text-underline-offset:4px}.btn{display:inline-block;border-radius:9px;background:#125546;color:white;padding:10px 15px;text-decoration:none}.hero .btn{background:#fff;color:#124d40}p{margin:9px 0 16px}footer{font-size:13px;color:#58655c;margin-top:22px}nav a{padding:8px 0}</style><main><header><b>铭道 · 健康家办</b><small>本地审阅|虚构会员</small></header><div id="view"></div><nav><a href="../index.html">探索家办服务</a><a href="../app.html#c4">进入原有商城 →</a></nav><footer>本页展示会员登录后的使用方式,不包含真实家庭资料。</footer></main><script>const dates=['2026-09-16','2025-09-12'];function draw(){const key=location.hash.slice(1),idx=dates.indexOf(key);let v='';const who=owner?'我的报告 · 示例会员 A':'正在代看:示例会员 A 的报告',years=[...new Set(dates.map(d=>d.slice(0,4)))];if(key==='history'){v=`<h1>历次报告</h1>${years.map(y=>`<h2>${y} 年</h2>${dates.filter(d=>d.startsWith(y)).map(d=>`<article><small>${who}</small><div class="row"><b>${d}</b><a href="#${d}">查看报告 →</a></div></article>`).join('')}`).join('')}<a href="#home">返回会员首页</a>`}else if(idx>=0){v=`<h1>免疫检测报告</h1><p>${who} · ${key}</p><article><h2>原始报告</h2><p>核对成员和检测日期后,可打开本次归档文件。</p><a class="btn" href="sample-${key}.pdf">打开原始 PDF(示例)</a></article><article><h2>历次免疫指标</h2><small>虚构数值,仅演示读图,不是 PDF 检测结果。</small><p><label>选择指标 <select id="metric" onchange="plot()"></select></label></p><div id="plot" aria-live="polite"></div></article><article><h2>铭道医疗 · 报告解读</h2><p>此处展示铭道医疗对本次检测的专业解读。当前为虚构报告,不提供医学结论。</p></article><article><h2>本次健康管理方案</h2>${idx===0?`<small>示例会员 A · 2026-09-16 检测|铭道定制 · 已发布(演示)</small><p>下次沟通前,请准备本次和上次的报告,记下希望了解的指标,由健康管理团队逐项说明。</p><details><summary>需要进一步沟通?查看可选服务</summary><p>如需单独预约,可了解「免疫检测报告专家解读」。无需购买即可查询报告和方案。</p><a class="btn" href="../app.html#c4:~:text=免疫检测报告专家解读">到商城查看这项服务 →</a></details>`:`<small>示例会员 A · ${key} 检测</small><p>本次方案待发布。原始报告仍可正常查阅。</p>`}</article><a href="#history">← 返回历次报告</a>`}else{v=`<article class="hero"><svg aria-hidden="true" width="64" height="52" viewBox="0 0 76 62" style="float:right" fill="#dce8d4" stroke="#28584b" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"><path d="M14 7l34-2 13 13-2 37-46 2Z"/><path fill="#fffdf3" d="M48 5l-1 15 14-2"/><path fill="none" d="M22 27l25-1m-26 8 30-1m-30 8 20-1"/></svg><small>${who}</small><h1>最新报告</h1><p>检测日期 <b>${dates[0]}</b></p><a class="btn" href="#${dates[0]}">查看本次报告 →</a></article><article><svg aria-hidden="true" width="64" height="52" viewBox="0 0 76 62" style="float:right" fill="#dce8d4" stroke="#28584b" stroke-width="1.7" stroke-linejoin="round" stroke-linecap="round"><path d="M6 19l2-9 23-1 6 7 28-1 1 34-58 4Z"/><path fill="#fffdf3" d="M15 21l1-8 22 1 2 6 19-1-1 25-44 1Z"/><path d="M7 28l62-5-6 29-53 3Z"/><path d="M20 37l21-2"/></svg><b>历次报告</b><br><small>${years.join(" · ")} 年</small><br><a href="#history">按年份查报告 →</a></article>`}document.querySelector('#view').innerHTML=v;window.scrollTo(0,0)}let owner=true,allowed=false;
- function render(){const view=document.querySelector('#view');if(!owner&&!allowed){view.innerHTML='<article><h1>暂无代看权限</h1><p>同属一个家庭不会自动获得报告查看权。请由示例会员 A 本人授权。</p></article>'}else{draw();if(!owner){view.innerHTML=view.innerHTML.replaceAll('本人 · 示例会员 A','示例会员 A(家人 B 代看)').replaceAll('示例会员 A(本人)','示例会员 A(家人 B 代看)').replaceAll('我的检测报告','A 的检测报告')}}view.insertAdjacentHTML('beforeend',`<article><small>审阅工具 · 模拟身份,不是真实登录</small><h2>${owner?'本人 A':'家人 B'}视角</h2><p>报告属于 A。当前${allowed?'已授权 B 查看历次报告和原件':'未授权 B 代看'}。</p>${owner?`<button id="consent">${allowed?'撤销 B 的代看授权':'授权 B 代看报告'}</button> `:''}<button id="role">切换为${owner?'家人 B':'本人 A'}</button></article>`);document.querySelector('#role').onclick=()=>{owner=!owner;render()};if(owner)document.querySelector('#consent').onclick=()=>{allowed=!allowed;render()}}
- const demo={'NK 细胞比例(%)':[12,15],'NK 绝对计数(个/μL)':[null,218],'CD3 比例(%)':[64,67],'CD4 比例(%)':[35,37],'CD8 比例(%)':[25,24],'B 细胞比例(%)':[null,null]};
- function plot(){const key=document.querySelector('#metric').value,ds=dates.slice().reverse(),pts=demo[key].map((v,i)=>({v,d:ds[i]})).filter(o=>o.v!==null&&o.d<=location.hash.slice(1));let unit=key.includes('绝对')?'个/μL':'%',max=Math.max(1,...pts.map(o=>o.v))*1.2,xy=pts.map((o,i)=>[pts.length===1?145:55+i*180,100-75*o.v/max]);document.querySelector('#plot').innerHTML='<b>'+key+'</b><br><small>截至本次检测 · 示例会员 A</small>'+(pts.length?`<svg viewBox="0 0 290 134" style="display:block;width:100%" aria-hidden="true"><path d="M25 101H265" stroke="#b8c9c1"/>${xy.length>1?`<polyline points="${xy.map(p=>p.join(',')).join(' ')}" fill="none" stroke="#19654f" stroke-width="2"/>`:''}${xy.map(([x,y],i)=>`<circle cx="${x}" cy="${y}" r="4" fill="#19654f"/><text x="${x}" y="${y-10}" text-anchor="middle">${pts[i].v}</text><text x="${x}" y="122" font-size="12" text-anchor="middle">${pts[i].d}</text>`).join('')}</svg>${pts.length===1?'<p>仅有一次可比结果,不连线。</p>':''}${pts.map(o=>`<p>${o.d} · ${o.v} ${unit} <a href="sample-${o.d}.pdf">查看当次示例 PDF</a></p>`).join('')}`:'<p>暂无已核对数值。可查阅本次原始 PDF。</p>')}
- const originalRender=render;render=function(){originalRender();const el=document.querySelector('#metric');if(el){el.innerHTML=Object.keys(demo).map(m=>`<option>${m}</option>`).join('');plot();addFollowup()}};
- function addFollowup(){if(!owner)return;const date=location.hash.slice(1),plan=[...document.querySelectorAll('#view article')].find(a=>a.querySelector('h2')?.textContent==='本次健康管理方案');if(!plan)return;const key='md-demo-A-followup:'+date;let state={};try{state=JSON.parse(sessionStorage.getItem(key))||{}}catch{}plan.insertAdjacentHTML('beforeend',`<section style="border-top:1px solid #d6ded6;margin-top:18px;padding-top:12px"><svg aria-hidden="true" focusable="false" viewBox="0 0 100 68" width="82" height="56" style="float:right;pointer-events:none" fill="none" stroke="#28584b" stroke-width="1.6" stroke-linejoin="round" stroke-linecap="round"><path fill="#dce8d4" stroke="none" d="M6 48Q2 28 30 19T80 16Q99 25 91 44T59 58Q24 68 6 48Z"/><g transform="rotate(-8 35 30)"><path fill="#f5f6e8" d="M12 5L52 6 50 49 13 48Z"/><text x="18" y="21" stroke="none" fill="#28584b" font-size="12">上次</text><path d="M18 28l26 1m-25 6h15"/></g><g transform="rotate(5 61 40)"><path fill="#fffdf3" d="M41 18L80 17 81 62 39 61Z"/><text x="46" y="36" stroke="none" fill="#28584b" font-size="12">本次</text><path d="M46 42l26 1m-25 5h18M68 21v-8q3-7 7-1v13q-2 5-5 1v-9"/></g></svg><h3>随访准备</h3>${date===dates[0]?'<label><input id="prepared" type="checkbox"> 两份报告已备好</label>':'<p>本次尚无随访约定。</p>'}<svg aria-hidden="true" focusable="false" viewBox="0 0 100 68" width="82" height="56" style="float:right;pointer-events:none" fill="none" stroke="#28584b" stroke-width="1.6" stroke-linejoin="round" stroke-linecap="round"><path fill="#dce8d4" stroke="none" d="M6 48Q2 28 30 19T80 16Q99 25 91 44T59 58Q24 68 6 48Z"/><path fill="#fffdf2" d="M17 19Q36 16 66 18L68 51 57 60 18 59Z"/><path d="M57 60l1-10 10 1M25 40l22-1m-22 8 26-1"/><path fill="#b5cbaa" d="M43 33l6-12L78 3q4-1 6 6L54 30Z"/><path d="M49 21l5 9m-11 3 5-2-3-3m8-4L79 7M26 33q5-4 8-1t7-1"/></svg><h3><label for="myQuestion">我想问铭道什么</label></h3><textarea id="myQuestion" maxlength="240" rows="3" style="width:100%;font:inherit" placeholder="例如:两次报告里的 NK 比例可以直接比较吗?"></textarea><small>仅本人演示视角可见。本标签页暂存,不发给医生。请勿填写真实健康资料。</small><div><button id="saveQuestion" style="background:#125546;color:white;border:0;border-radius:8px;padding:9px 15px">暂存问题</button> <button type="button" id="copyQuestion">复制问题</button> <button id="clearQuestion" style="border:0;background:transparent;color:#51665a;text-decoration:underline;padding:9px">清除</button></div><small role="status" id="noteStatus"></small></section>`);const q=document.querySelector('#myQuestion'),ready=document.querySelector('#prepared'),msg=document.querySelector('#noteStatus');q.value=state.note||'';const saved='已暂存 · 未发送';function status(){msg.textContent=q.value.trim()!==(state.note||'')?'有修改,尚未暂存':state.note?saved:''}q.oninput=status;status();if(ready)ready.checked=!!state.ready;function save(text){try{sessionStorage.setItem(key,JSON.stringify(state));msg.textContent=text}catch{msg.textContent='当前浏览器无法暂存,请勿关闭本页。'}}if(ready)ready.onchange=()=>{state.ready=ready.checked;save(q.value.trim()!==(state.note||'')?'准备状态已更新;问题尚未暂存':state.note?saved:'准备状态已更新。')};document.querySelector('#saveQuestion').onclick=()=>{if(!q.value.trim()){msg.textContent='请先填写问题,或使用清除。';return}state.note=q.value.trim();save(saved)};document.querySelector('#copyQuestion').onclick=async()=>{const text=q.value.trim();if(!text){msg.textContent='请先填写要复制的问题。';q.focus();return}try{await navigator.clipboard.writeText(text);msg.textContent='已复制,请到微信粘贴发送。'}catch{q.focus();q.select();msg.textContent='请手动复制已选中的问题,再到微信粘贴发送。'}};document.querySelector('#clearQuestion').onclick=()=>{state.note='';q.value='';save('便笺已清除。')}}window.onhashchange=render;render()</script></html>
|