Case-legacy.0000fba9.js 5.4 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML=".article-wrap .article{display:block;border-bottom:5px solid #f0f0f0}.article-wrap .article h4{font-size:14px;font-weight:400;color:#9aaac0;padding:10px 15px;border-bottom:1px solid #eef1f7}.article-wrap .article-info{box-sizing:content-box;padding:10px 15px;height:68px}.article-wrap .article-info h1{font-size:28px;font-weight:400;line-height:40px}.article-wrap .article-info p{font-size:16px;line-height:28px}.article-wrap .info-l{float:left}.article-wrap .info-r{padding-top:12px;float:right;color:#3ecbb1;font-size:16px;line-height:28px;text-align:right}.article-data table{width:100%;text-align:center;border-collapse:collapse;border-spacing:0}.article-data table th{font-weight:400;color:#8a98aa}.article-data table td,.article-data table th{padding:6px 2px;line-height:20px;white-space:pre-line}.article-data table tr:nth-child(2n) td{background-color:#f9fafc}.article-data table .text-left{text-align:left;padding-left:20px;width:90px}.article-txt p{padding:10px 15px;word-break:break-all}.article-report.article{padding-bottom:30px;border-bottom:0;overflow:hidden}.article-report.article .report-l{text-align:center;float:left;width:50%;overflow:hidden}.article-report.article .report-r{text-align:center;float:right;width:50%}.article-report.article p{padding-top:10px;color:#8a98aa;line-height:40px}.article-report.article img{vertical-align:middle;width:60%}\n",document.head.appendChild(e),System.register(["./vendor-legacy.ab945ac3.js","./addRead-legacy.90c0aa44.js","./ToApp.vue_vue_type_style_index_0_lang-legacy.f3ad4143.js","./Loading-legacy.9c349192.js","./index-legacy.3f143d64.js","./service-legacy.395b8fc2.js","./wxShare-legacy.5aed9c11.js","./plugin-vue_export-helper-legacy.d48ec26d.js","./preload-helper-legacy.2e08847a.js"],(function(e){"use strict";var a,t,l,i,r,n,c,o,d,s,u,p,f,v,g,h,x,b,m,y,w,_,j,C,k;return{setters:[function(e){a=e.d,t=e.x,l=e.h,i=e.j,r=e.o,n=e.c,c=e.m,o=e.t,d=e.E,s=e.F,u=e.C,p=e.l,f=e.k,v=e.v,g=e.p,h=e.e,x=e.G},function(e){b=e.a,m=e.N},function(e){y=e._},function(e){w=e.L},function(e){_=e.g,j=e.c},function(e){C=e.x},function(e){k=e.w},function(){},function(){}],execute:function(){const T={key:0,class:"article-wrap"},z={class:"article article-info"},S={class:"info-l"},Y={class:"info-r"},D=c("br",null,null,-1),N={class:"article article-data"},L=c("h4",null,"数据对比",-1),$=c("tr",null,[c("th",{class:"text-left"},"项目"),c("th",null,"治疗前"),c("th",null,"治疗后")],-1),A=c("td",{class:"text-left"},"日期",-1),B=c("td",{class:"text-left"},"药物使用",-1),M={class:"text-left"},E={class:"article article-txt"},R=c("h4",null,"治疗前情况",-1),U={class:"article article-txt"},q=c("h4",null,"治疗经过",-1),F={class:"article article-txt"},G=c("h4",null,"治疗后情况",-1),H={class:"article article-report"},J=c("h4",null,"验血报告对比",-1),O={class:"report-l"},P=c("p",null,"治疗前",-1),I=["src"],K={class:"report-r"},Q=c("p",null,"治疗后",-1),V=["src"];e("default",a({setup(e){const a=t().query,W=l(!0),X=l(!1),Z=l(),ee=l(!1),ae=()=>{ee.value=!0};return i((()=>{b(a.id,"treatment_case"),(async()=>{const e={id:a.id},t=await C(e);if(W.value=!1,"000000"===t.status_code){if(!t.isRelease)return void(X.value=!0);t.dataContrast=JSON.parse(t.dataContrast),t.birthday=x(t.birthday).format("YYYY年"),t.groupBeginDay=x(t.groupBeginDay).format("YYYY年MM月");const e=t.dataContrast;if(0===t.diseaseType)t.tableData=[{name:"空腹血糖\nmmol/L",value1:e.before.glucose,value2:e.after.glucose},{name:"糖化血红蛋白 %",value1:e.before.hemoglobin,value2:e.after.hemoglobin}];else if(1===t.diseaseType||2===t.diseaseType){const a=1===t.diseaseType?"斑块大小":"结节大小";t.tableData=[{name:a,value1:e.before.dataSize,value2:e.after.dataSize},{name:"面积/体积",value1:e.before.dataArea,value2:e.after.dataArea}]}else t.tableData=[{name:"指标",value1:e.before.indicator,value2:e.after.indicator}];Z.value=t,document.title=t.name;const l="治疗案例:"+t.callName,i=`${location.origin}${location.pathname}#/case?id=${a.id}`,r=`${t.surfaceUrlSmall}?x-oss-process=image/resize,m_fill,h_320,w_320`;k(l,l,i,r)}else X.value=!0,W.value=!1})()})),(e,a)=>(r(),n(s,null,[Z.value?(r(),n("div",T,[c("div",z,[c("div",S,[c("h1",null,o(Z.value.callName),1),c("p",null,o(Z.value.birthday),1)]),c("div",Y,[d(o(Z.value.country)+" | "+o(Z.value.groupName),1),D,d(o(Z.value.groupBeginDay),1)])]),c("div",N,[L,c("table",null,[$,c("tr",null,[A,c("td",null,o(Z.value.dataContrast.before.date),1),c("td",null,o(Z.value.dataContrast.after.date),1)]),c("tr",null,[B,c("td",null,o(Z.value.dataContrast.before.medication),1),c("td",null,o(Z.value.dataContrast.after.medication),1)]),(r(!0),n(s,null,u(Z.value.tableData,((e,a)=>(r(),n("tr",{key:a},[c("td",M,o(e.name),1),c("td",null,o(e.value1),1),c("td",null,o(e.value2),1)])))),128))])]),c("div",E,[R,c("p",null,o(Z.value.preTreatmentSituation),1)]),c("div",U,[q,c("p",null,o(Z.value.treatmentProcess),1)]),c("div",F,[G,c("p",null,o(Z.value.afterTreatmentSituation),1)]),c("div",H,[J,c("div",O,[P,c("img",{src:p(_)("/article/report.jpg"),onClick:ae},null,8,I)]),c("div",K,[Q,c("img",{src:p(_)("/article/report.jpg"),onClick:ae},null,8,V)])]),f(c("div",{class:"read"},"阅读 "+o(Z.value.readTimes),513),[[v,p(j)]])])):g("",!0),h(y,{visible:ee.value,"onUpdate:visible":a[0]||(a[0]=e=>ee.value=e)},null,8,["visible"]),f(h(m,null,null,512),[[v,X.value&&!W.value]]),h(p(w),{message:"加载中...",visible:W.value},null,8,["visible"])],64))}}))}}}))}();