PrintAuth-legacy.5e3ed800.js 14 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML='html{font-size:10px}body.pc{font-size:14px;min-width:1140px}body.pc .wrap{width:1024px;padding:64px 0;margin:auto;display:flex;flex-direction:column;position:relative}body.pc .build-report{position:fixed;width:1024px;text-align:right;z-index:100}body.pc .build-report span{cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;border-radius:4px;font-weight:500;position:absolute}body.pc .build-report2{position:fixed;width:950px;text-align:right;z-index:100}body.pc .build-report2 span{cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;border-radius:4px;font-weight:500;position:absolute}body.pc .btmpoint{font-size:1.7rem;line-height:2;width:100%;text-align:center;font-weight:600}body.pc .btmbutton{width:20%;padding:10px;background-color:#39caaf;color:#fff;font-size:20px;text-align:center;border-radius:50px;position:fixed;left:43%;bottom:30px}body.pc .mai-item{letter-spacing:1px}body.pc .mai-item.device-info{border-top:2px solid #e5e9f2;padding:8px;margin-top:12px}body.pc .mai-item h1.title{font-size:26px;color:#39caaf;border-left:40px solid #39caaf;padding-left:12px;line-height:40px;font-weight:500}body.pc .mai-item h1.title.yellow{border-color:#f5b52a;color:#f5b52a}body.pc .mai-item h1.title.blue{border-color:#2291fb;color:#2291fb}body.pc .mai-item h2.sub-title{font-size:18px;font-weight:600;margin-bottom:3rem}body.pc .item-border-top{border-top:2px solid #e5e9f2;margin-top:16px;padding-top:36px}body.pc .mai{font-size:24px;line-height:2;padding-left:53px}body.pc .legend{border:1px solid #eff2f7;background-color:#fbfbfb;border-radius:6px;padding:10px 10px 10px 0;display:flex;justify-content:space-between;align-items:center;text-align:center;color:#475669;font-size:12px;min-height:60px}body.pc .legend>.title{border-right:1px solid #e5e9f2;width:52px;color:#8492a6}body.pc .legend .item{border-radius:1px}body.pc .legend-mai{width:280px;margin-left:53px}body.pc .legend-mai .item{background-image:url(//taiyi.oss-accelerate.aliyuncs.com/website/hybrid-app/test/report/3d_unhealthy.png?v=2.25.2);background-position:top;background-size:80px 25px;background-repeat:no-repeat;padding-top:30px;width:80px}body.pc .legend-mai .item2{background-image:url(//taiyi.oss-accelerate.aliyuncs.com/website/hybrid-app/test/report/3d_healthy.png?v=2.25.2)}body.pc .hand-branch_legend{margin-left:53px;display:flex;flex-direction:column;align-items:center}body.pc .legend-branch .title{margin-right:12px}body.pc .legend-branch .item{border-left:#f7f3e9 solid 20px;padding-left:8px;font-weight:400;line-height:1}body.pc .legend-branch .item2{border-color:#a3e5d9;margin-top:10px}body.pc .paragraph-wrap{padding-left:52px;padding-top:12px;margin-bottom:20px}body.pc .paragraph{padding-top:12px}body.pc .paragraph h3{font-weight:400;font-size:18px}body.pc .paragraph-p{margin-bottom:16px;text-align:justify;font-size:18px}body.pc .paragraph-p:last-child{margin-bottom:0}body.pc .legend-channel{width:260px;margin-bottom:4px}body.pc .legend-channel .item{position:relative;line-height:16px}body.pc .legend-channel .item:before{position:absolute;content:"";width:24px;height:16px;background-color:#c23534;left:0}body.pc .legend-channel .item2:before{background-color:#fff;border:1px solid #f1b5b7}body.pc .legend-dialectical{width:260px}body.pc .legend-dialectical>div>div{text-align:left}body.pc .legend-dialectical .dialectical{display:flex;flex-wrap:wrap;width:180px}body.pc .legend-dialectical .dialectical .item{width:50%;border-left:#3bdcc9 solid 24px;padding-left:8px;font-weight:400;line-height:16px;margin-top:8px}body.pc .legend-dialectical .dialectical .item2{border-color:#fbb74a}body.pc .legend-dialectical .dialectical .item3{border-color:#fee273}body.pc .legend-dialectical .dialectical .item4{border-color:#de4d56}body.pc .user-info{margin-bottom:40px;width:360px;display:flex;justify-content:space-between;text-align:center}body.pc .user-info .user{width:220px}body.pc .user-info .user p{color:#99a9bf}body.pc .user-info .name{font-size:22px;padding:6px 0;line-height:1.5;min-height:45px}body.pc .user-info .name span{font-size:10px;padding-left:10px}body.pc .user-info .portrait{margin:auto;width:94px;height:94px;border:1px solid #eff2f7;border-radius:10px;background-size:cover;background-position:center}body.pc .mai-hand{width:100px;height:180px}body.pc .mai-total h1.title{margin-bottom:20px}body.pc .mai-desc{padding-top:0}body.pc .heart-rate{background-position:left;background-size:30px;padding-left:52px;font-size:16px;font-weight:bolder;line-height:2.5}body.pc .user-desc-three{display:flex;justify-content:space-between;align-items:center}body.pc .user-desc-three .user-desc{width:380px}body.pc .user-desc-three .three{width:640px}body.pc .user-desc-three .three .loading-component{height:512px}body.pc .stability .paragraph{padding-top:0}body.pc .stability .paragraph p{margin-bottom:0;font-size:12px;letter-spacing:0;color:#99a9bf}body.pc .stability .num{font-size:40px;font-weight:bolder;padding-right:50px}body.pc .stability .num i{font-size:24px;font-style:normal}body.pc .pc-branch-warp{min-height:444px;display:flex;align-items:center;justify-content:space-between}body.pc .pc-branch-warp .loading-component{height:444px;width:780px}body.pc .pc-branch{width:780px;display:flex;justify-content:space-between;text-align:center}body.pc .pc-branch .branch-canvas-wrap{margin:auto}body.pc .mai-channel{display:flex;flex-direction:column;justify-content:space-between}body.pc .mai-channel .channel-content{padding-left:52px;width:100%}body.pc .mai-channel .chart-channel{margin:0;height:900px}body.pc .mai-qxjy{display:flex;flex-direction:column;justify-content:space-between}body.pc .mai-qxjy .qxjy-content{padding-left:52px;width:100%;display:flex;align-items:center;justify-content:space-between}body.pc .mai-qxjy .chart-qxjy{width:540px}body.pc .mai-qxjy .chart-qxjy .column{width:280px;height:320px}body.pc .mai-qxjy .chart-qxjy .icon{background-size:35px;padding-top:36px}body.pc .mai-heresy{display:flex}body.pc .mai-heresy .desc-heresy{width:100%}body.pc .mai-heresy .chart-heresy{align-items:center}body.pc .mai-heresy .chart-heresy .item{width:132px;background-size:60%;padding-top:80px}\n',document.head.appendChild(e),System.register(["./preload-helper-legacy.ee49126d.js","./vendor-legacy.4c930df7.js","./Loading-legacy.1b89f9f2.js","./maiResult-legacy.6bee908b.js","./Chart.vue_vue_type_style_index_0_lang-legacy.4750c813.js","./Stability.vue_vue_type_script_lang-legacy.3bab7056.js","./DeviceInfo.vue_vue_type_style_index_0_lang-legacy.9fd609bf.js","./Chart.vue_vue_type_style_index_0_lang-legacy.e1986213.js","./QxjyLegend-legacy.46052cf7.js","./useMaiResult-legacy.8c243de6.js","./index-legacy.34f943bd.js","./service-legacy.34640094.js","./plugin-vue_export-helper-legacy.d48ec26d.js","./Item.vue_vue_type_script_lang-legacy.57789042.js"],(function(e,t){"use strict";var i,a,l,n,o,c,d,p,r,s,u,h,b,g,y,m,f,x,v,w,_,j,k,z,q,R,C,T,I,L,S,B,F,K,D,E,M,$,P,Q;return{setters:[function(e){i=e.a},function(e){a=e.d,l=e.y,n=e.x,o=e.h,c=e.B,d=e.j,p=e.o,r=e.c,s=e.m,u=e.k,h=e.v,b=e.l,g=e.e,y=e.t,m=e.p,f=e.F,x=e.C,v=e.D,w=e.b},function(e){_=e.L},function(e){j=e.L,k=e.T},function(e){z=e._},function(e){q=e._,R=e.a,C=e.b,T=e.c,I=e.d},function(e){L=e._},function(e){S=e._,B=e.a},function(e){F=e._,K=e.B,D=e.C,E=e.Q},function(e){M=e.u},function(e){$=e.s,P=e.C},function(e){Q=e.f},function(){},function(){}],execute:function(){const A={class:"build-report"},G={class:"build-report2"},H={class:"user-desc-three"},X={class:"user-desc"},J={class:"mai-item mai-total"},N={class:"title"},O={class:"heart-rate img-heart-rate"},U={key:0,class:"mai"},V={class:"three"},W={class:"paragraph-wrap mai-desc"},Y={class:"item-border-top"},Z={class:"mai-item"},ee=s("h1",{class:"title"},"分部脉象",-1),te={key:0,class:"pc-branch-warp"},ie={class:"hand-branch_legend"},ae={class:"pc-branch"},le={key:1,class:"pc-branch-warp"},ne={class:"hand-branch_legend"},oe=s("div",{class:"mai-hand img-hand"},null,-1),ce={class:"pc-branch"},de={key:2,class:"pc-branch-warp",style:{"margin-top":"70px"}},pe={class:"hand-branch_legend"},re=s("div",{class:"mai-hand img-hand left"},null,-1),se={class:"pc-branch"},ue={class:"item-border-top"},he={class:"mai-item mai-channel"},be=s("h1",{class:"title yellow"},"六经辨证",-1),ge={class:"channel-content"},ye={class:"mai-item mai-channel"},me={class:"desc-channel"},fe={class:"item-border-top"},xe={class:"mai-item mai-qxjy"},ve=s("h1",{class:"title yellow"},"气血津液",-1),we={class:"qxjy-content"},_e={class:"mai-item mai-qxjy"},je={class:"desc-qxjy"},ke={class:"item-border-top"},ze={class:"mai-item mai-heresy"},qe={class:"desc-heresy"},Re=s("h1",{class:"title yellow"},"邪性",-1),Ce={class:"item-border-top"},Te={class:"mai-item"},Ie=s("h1",{class:"title blue"},"养生建议",-1),Le=s("div",{class:"btmpoint"},"(以上分析结果为大数据分析所得,请结合临床)",-1);e("default",a({setup(e){const a=l({loader:()=>i((()=>t.import("./Group-legacy.e2930ad3.js")),void 0),loadingComponent:j}),Se=l({loader:()=>i((()=>t.import("./Total3d-legacy.c9b1e6db.js")),void 0),loadingComponent:j});$("pc");const Be=n().query,Fe=o(),Ke=o(),De=o(),Ee=o(""),Me=Be.appId||"",$e=o(!(!P||!P.showKaiFang||"True"!==P.showKaiFang()));if(Me){(async e=>{const t=await Q(e);"000000"===t.code&&(Ee.value=t.data||"")})({appId:Me,access_session:Be.access_session,X_SDKClient_API_Key:"e517ed538290423083825f6078985c9b"})}const Pe=o(!0),Qe=o(!0),Ae=o(!0),Ge=o(!0),He=o(!0),{loading:Xe,branchResult:Je,channelReault:Ne,createTime:Oe,deviceInfo:Ue,hand:Ve,handText:We,heartrate:Ye,heresyResult:Ze,proposeResult:et,qxjyResult:tt,feature:it,summary:at,symptomsResult:lt,totalMai:nt,score:ot}=M(Be.mid,Be.access_session,!1,Me),ct=()=>{try{P.runReturn()}catch(e){k.fail("返回错误")}},dt=()=>{try{P.buildReport(`/print.html#/print?mid=${Be.mid}&uid=${Be.uid}&access_session=${Be.access_session}`)}catch(e){k.fail("报告生成失败")}};function pt(e,t){try{const i=document.getElementById(e),a=getComputedStyle(i).background;const l=/url\((['"])?(.*?)\1\)/gi.exec(a)[2],n=document.createElement("img");n.src=l,n.onload=()=>{console.log(e,"加载成功"),t()},n.onerror=()=>{console.log(e,"加载失败")}}catch(i){console.log(e,"加载失败"),console.log(i)}}const rt=o(!1),st=o(0),ut=o(0);function ht(){0==Pe.value&&pt("mailegenditem1",(()=>{Pe.value=!0})),0==Qe.value&&pt("mailegenditem2",(()=>{Qe.value=!0})),0==Ae.value&&pt("channelchartbg",(()=>{Ae.value=!0})),0==Ge.value&&pt("handLeftImg",(()=>{Ge.value=!0})),0==He.value&&pt("handRightImg",(()=>{He.value=!0})),0==Pe.value||0==Qe.value||0==Ae.value||0==Ge.value||0==He.value?setTimeout(ht,1e3):setTimeout(bt,3e3)}const bt=()=>{try{P.buildPdf(Be.mid,Ve.value)}catch(e){console.log(e)}};return c([Xe,Pe,Qe,Ae,rt,st,ut,Ge,He],(()=>{Pe.value&&Qe.value&&Ae.value&&rt.value&&st.value&&ut.value&&(9==st.value&&3==ut.value||2==Ve.value)&&(18==st.value&&6==ut.value||2!==Ve.value)&&(Ge.value||0!==Ve.value)&&(He.value||1!==Ve.value)&&(Ge.value&&He.value||2!==Ve.value)&&setTimeout(bt,3e3)})),d((()=>{ht(),Pe.value=!1,Qe.value=!1,Ae.value=!1,Ge.value=!1,He.value=!1,Fe.value.onclick=dt,Ke.value.onclick=ct})),(e,t)=>(p(),r(f,null,[s("div",A,[u(s("span",{ref_key:"refBuildReport",ref:Fe},"生 成报 告",512),[[h,!b(Me)]])]),u(s("div",G,[s("span",{ref_key:"refBack",ref:Ke},"返 回测 脉",512)],512),[[h,"True"===b(Be).showreturn]]),s("div",H,[s("div",X,[u(s("div",null,[g(q,{pc:"",num:b(ot)},null,8,["num"])],512),[[h,!b(Me)||Ee.value.includes("0")]]),u(s("div",J,[s("h1",N,y(b(We))+"脉象",1),g(F),s("div",O,"心率:"+y(b(Ye))+"次/分钟",1),b(nt).title.length>0?(p(),r("h1",U,y(b(nt).title.join(" ")),1)):m("",!0)],512),[[h,!b(Me)||Ee.value.includes("2")]])]),s("div",V,[g(b(Se),{feature:b(it).left||b(it).right,"auto-rotate":"",width:640,"total-mai":b(nt).title},null,8,["feature","total-mai"])])]),s("div",W,[(p(!0),r(f,null,x(b(nt).desc,((e,t)=>(p(),r("p",{style:{"font-size":"18px"},key:t},y(e),1)))),128))]),u(s("div",Y,null,512),[[h,!b(Me)||Ee.value.includes("3")]]),u(s("div",Z,[ee,2!==b(Ve)?(p(),r("div",te,[s("div",ie,[s("div",{class:v("mai-hand img-hand "+(0===b(Ve)?"left":""))},null,2),g(K)]),s("div",ae,[g(b(a),{"branch-result":0===b(Ve)?b(Je).left:b(Je).right,feature:b(it).left||b(it).right},null,8,["branch-result","feature"])])])):m("",!0),2===b(Ve)?(p(),r("div",le,[s("div",ne,[oe,g(K)]),s("div",ce,[g(b(a),{"branch-result":b(Je).right,feature:b(it).right},null,8,["branch-result","feature"])])])):m("",!0),2===b(Ve)?(p(),r("div",de,[s("div",pe,[re,g(K)]),s("div",se,[g(b(a),{"branch-result":b(Je).left,feature:b(it).left},null,8,["branch-result","feature"])])])):m("",!0)],512),[[h,!b(Me)||Ee.value.includes("3")]]),u(s("div",ue,null,512),[[h,!b(Me)||Ee.value.includes("4")]]),u(s("div",null,[s("div",he,[be,s("div",ge,[s("div",null,[g(D)]),g(z,{channels:b(Ne),heartrate:b(Ye),summary:b(at),width:540},null,8,["channels","heartrate","summary"])])]),s("div",ye,[s("div",me,[g(R,{channels:b(Ne),symptoms:b(lt)},null,8,["channels","symptoms"])])])],512),[[h,!b(Me)||Ee.value.includes("4")]]),u(s("div",fe,null,512),[[h,!b(Me)||Ee.value.includes("5")]]),u(s("div",null,[s("div",xe,[ve,s("div",we,[g(E),g(S,{value:b(tt).level},null,8,["value"])])]),s("div",_e,[s("div",je,[g(C,{qxjy:b(tt)},null,8,["qxjy"])])])],512),[[h,!b(Me)||Ee.value.includes("5")]]),u(s("div",ke,null,512),[[h,!b(Me)||Ee.value.includes("6")]]),u(s("div",ze,[s("div",qe,[Re,g(B,{value:b(Ze).value},null,8,["value"]),g(T,{heresy:b(Ze)},null,8,["heresy"])])],512),[[h,!b(Me)||Ee.value.includes("6")]]),u(s("div",Ce,null,512),[[h,!b(Me)||Ee.value.includes("7")]]),u(s("div",Te,[Ie,g(I,{propose:b(et)},null,8,["propose"])],512),[[h,!b(Me)||Ee.value.includes("7")]]),Le,b(Ue)?(p(),w(L,{key:0,info:b(Ue),class:"mai-item"},null,8,["info"])):m("",!0),u(s("div",{class:"btmbutton",id:"id_ShowFang",ref_key:"refShowFang",ref:De},"查看建议方",512),[[h,$e.value&&2===b(Ve)]]),g(b(_),{message:"加载中...",visible:b(Xe)},null,8,["visible"])],64))}}))}}}))}();