import{_ as a,a as l,z as s,b as e,c as t,d as c,e as i,w as o,f as r,i as d,g as u,h as n,u as _,j as f,t as m,l as p,x as h}from"./index-Cd7oqaqo.js";import{b as g}from"./backNav.HgDLXP0M.js";import{h as v}from"./headImg.D8PzAUux.js";import{n as C}from"./navTo.DuPDTCnN.js";import{a as b}from"./api.rwMLhj-q.js";/* empty css                                                                */const z=a({__name:"my",setup(a){const z=l({}),A=l({}),k=l({}),y=a=>{b.getStaticDoctor(a).then((a=>{const l=a.data.data;Object.assign(A,l)}))},j=a=>{b.getStaticHospital(a).then((a=>{const l=a.data.data;Object.assign(k,l)}))};s((()=>{b.getUserInfo().then((a=>{const l=a.data.data;Object.assign(z,l),console.log(l),z.doctor_id&&y(z.doctor_id),z.hospital_id&&j(z.hospital_id)}))}));const w=()=>{C({url:"/pages/certList/certList?doctor_id="+z.doctor_id})},x=()=>{C({url:"/pages/specialList/specialList?userId="+z.user_id})},L=()=>{C({url:"/pages/myJoin/myJoin"})},F=()=>{C({url:"/pages/myCollect/myCollect"})},I=()=>{C({url:"/pages/publish/publish"})};return(a,l)=>{const s=e(t("up--image"),r),b=d,y=e(t("u-icon"),u);return n(),c("div",{class:"upage"},[i(g),i(b,{class:"con"},{default:o((()=>[i(b,{class:"infobox"},{default:o((()=>[i(s,{src:z.avatar?z.avatar:_(v),width:"154rpx",height:"154rpx",radius:"50%"},null,8,["src"]),i(b,{class:"info"},{default:o((()=>[i(b,{class:"name"},{default:o((()=>[f(m(z.user_name)+"（"+m(z.title)+"） ",1)])),_:1}),i(b,{class:"hospital"},{default:o((()=>[f(m(z.hospital_name),1)])),_:1})])),_:1})])),_:1}),i(b,{class:"databox"},{default:o((()=>[i(b,{class:"cell"},{default:o((()=>[i(b,{class:"num"},{default:o((()=>[f(m(A.article_num),1)])),_:1}),i(b,{class:"name"},{default:o((()=>[f("文章")])),_:1})])),_:1}),i(b,{class:"cell"},{default:o((()=>[i(b,{class:"num"},{default:o((()=>[f(m(A.video_num),1)])),_:1}),i(b,{class:"name"},{default:o((()=>[f("视频")])),_:1})])),_:1}),i(b,{class:"cell"},{default:o((()=>[i(b,{class:"num"},{default:o((()=>[f(m(A.video_read_num+A.article_read_num),1)])),_:1}),i(b,{class:"name"},{default:o((()=>[f("阅读量")])),_:1})])),_:1})])),_:1}),i(b,{class:"listbox"},{default:o((()=>[i(b,{class:"titlename"},{default:o((()=>[f("我的临床病例库")])),_:1}),A.article_num>0?(n(),p(b,{key:0,class:"cell",onClick:l[0]||(l[0]=a=>{return l=z.doctor_id,s=z.user_name,void C({url:"/pages/searchList/searchList?type=doctor&id="+l+"&name="+s});var l,s})},{default:o((()=>[i(b,{class:"left"},{default:o((()=>[i(y,{name:"chat-fill",color:"#000",size:"28"}),i(b,{class:"title"},{default:o((()=>[f("我的病例库")])),_:1})])),_:1}),i(y,{name:"arrow-right",color:"#9CA3AF",size:"18"})])),_:1})):h("",!0),i(b,{class:"cell",onClick:w},{default:o((()=>[i(b,{class:"left"},{default:o((()=>[i(y,{name:"chat-fill",color:"#000",size:"28"}),i(b,{class:"title"},{default:o((()=>[f("临床病例库收录证书下载")])),_:1})])),_:1}),i(y,{name:"arrow-right",color:"#9CA3AF",size:"18"})])),_:1}),k.video_read_num>0||k.article_read_num>0?(n(),p(b,{key:1,class:"cell",onClick:l[1]||(l[1]=a=>{return l=z.hospital_id,s=z.hospital_name,void C({url:"/pages/searchList/searchList?type=hospital&id="+l+"&name="+s});var l,s})},{default:o((()=>[i(b,{class:"left"},{default:o((()=>[i(y,{name:"chat-fill",color:"#000",size:"28"}),i(b,{class:"title"},{default:o((()=>[f(m(z.hospital_name)+"临床病例库",1)])),_:1})])),_:1}),i(y,{name:"arrow-right",color:"#9CA3AF",size:"18"})])),_:1})):h("",!0),i(b,{class:"cell",onClick:x},{default:o((()=>[i(b,{class:"left"},{default:o((()=>[i(y,{name:"chat-fill",color:"#000",size:"28"}),i(b,{class:"title"},{default:o((()=>[f("我的病例交流")])),_:1})])),_:1}),i(y,{name:"arrow-right",color:"#9CA3AF",size:"18"})])),_:1}),i(b,{class:"cell",onClick:L},{default:o((()=>[i(b,{class:"left"},{default:o((()=>[i(y,{name:"chat-fill",color:"#000",size:"28"}),i(b,{class:"title"},{default:o((()=>[f("我的参与互动")])),_:1})])),_:1}),i(y,{name:"arrow-right",color:"#9CA3AF",size:"18"})])),_:1}),i(b,{class:"cell",onClick:F},{default:o((()=>[i(b,{class:"left"},{default:o((()=>[i(y,{name:"chat-fill",color:"#000",size:"28"}),i(b,{class:"title"},{default:o((()=>[f("浏览与收藏")])),_:1})])),_:1}),i(y,{name:"arrow-right",color:"#9CA3AF",size:"18"})])),_:1})])),_:1})])),_:1}),i(b,{class:"publish",onClick:I},{default:o((()=>[i(y,{name:"plus",color:"#fff",size:"18"})])),_:1})])}}},[["__scopeId","data-v-353cdb62"]]);export{z as default};
