import{_ as a,r as e,a as l,z as t,b as s,c as o,l as r,w as d,i as u,ac as c,f as i,g as n,h as m,e as _,j as v,t as g,x as p,d as h,k as f,F as A,n as C,u as k}from"./index-EvGXnWAc.js";import{_ as x}from"./z-paging.Bt-ikrKR.js";import{n as V}from"./navBarSearch.C961ERUC.js";import{a as j}from"./api.C18nFD5U.js";import{d as y}from"./dayjs.min.C73DX6gN.js";import{n as D}from"./navTo.BcQXR3vU.js";import"./headImg.D8PzAUux.js";import"./logo.Cf3Z9Qoj.js";const O=a({__name:"certList",setup(a){const O=e(null),z=e(!1),I=e([]),w=e(0);e("");const B=e(""),J=e(0);e("");const M=e(""),Q=l({}),E=e("肝胆相照临床病例库"),F=a=>y(a).format("YYYY-MM-DD"),K=e([{name:"文章病例库"},{name:"视频病例库"}]),N=a=>{J.value=a.index,O.value.reload()};t((a=>{a.keyWord&&(B.value=a.keyWord),a.doctor_id&&(M.value=a.doctor_id)}));const S=a=>{B.value=a,z.value=!0,O.value.reload()},T=(a,e)=>{console.log(666666);const l={page:a,page_size:e};0==J.value?(a=>{let e={keyword:B.value,doctor_id:M.value};z.value&&(F.is_need_num=1),j.searchArticle({...e,...a}).then((a=>{O.value.complete(a.data.data.data),w.value=a.data.data.total,Q.search_article_num=a.data.data.search_article_num,Q.search_video_num=a.data.data.search_video_num})).catch((a=>{O.value.complete(!1)}))})(l):(async a=>{let e={keyword:B.value,doctor_id:M.value};j.searchVideo({...e,...a}).then((a=>{O.value.complete(a.data.data.data),w.value=a.data.data.total,Q.search_article_num=a.data.data.search_article_num,Q.search_video_num=a.data.data.search_video_num})).catch((a=>{O.value.complete(!1)}))})(l)};return(a,e)=>{const l=C,t=u,j=s(o("up-tabs"),c),y=s(o("up--image"),i),w=s(o("up-icon"),n),M=s(o("z-paging"),x);return m(),r(t,{class:"u-page"},{default:d((()=>[_(M,{ref_key:"paging",ref:O,"inside-more":"","loading-more-no-more-text":"咱也是有底线的！","auto-show-back-to-top":!0,modelValue:I.value,"onUpdate:modelValue":e[0]||(e[0]=a=>I.value=a),onQuery:T},{top:d((()=>[_(V,{searchWord:B.value,navName:E.value,onChangeWord:S},null,8,["searchWord","navName"]),z.value?(m(),r(t,{key:0,class:"detail"},{default:d((()=>[_(t,{class:"desc"},{default:d((()=>[v("检索到："),_(l,{class:"red"},{default:d((()=>[v(g(Q.search_article_num)+"篇文章",1)])),_:1})])),_:1}),_(t,{class:"desc"},{default:d((()=>[v("检索到："),_(l,{class:"red"},{default:d((()=>[v(g(Q.search_video_num)+"个视频",1)])),_:1})])),_:1}),B.value?(m(),r(t,{key:0,class:"desc"},{default:d((()=>[v("检索词："),_(l,{class:"red"},{default:d((()=>[v(g(B.value),1)])),_:1})])),_:1})):p("",!0)])),_:1})):p("",!0),_(t,{class:"tabcon"},{default:d((()=>[_(j,{activeStyle:{color:"#3CC7C0"},inactiveStyle:{color:"#4B5563"},lineColor:"#3CC7C0",lineWidth:"155rpx",lineHeight:"2",list:K.value,onClick:N},null,8,["list"])])),_:1})])),default:d((()=>[(m(!0),h(A,null,f(I.value,((a,e)=>(m(),r(t,{class:"item",key:e,onClick:e=>{return l=a.cert_image,void D({url:`/pages/certImg/certImg?src=${l}`});var l}},{default:d((()=>[_(t,{class:"title ellipsis"},{default:d((()=>[v(g(0==J.value?a.article_title:a.video_title),1)])),_:2},1024),_(t,{class:"tagsbox"},{default:d((()=>[(m(!0),h(A,null,f(a.author,(a=>(m(),r(t,{class:"tag",key:a.author_id},{default:d((()=>[v(g(a.doctor_name),1)])),_:2},1024)))),128))])),_:2},1024),_(t,{class:"deal"},{default:d((()=>[_(t,{class:"left"},{default:d((()=>[_(t,{class:"recored"},{default:d((()=>[_(y,{src:k("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAnCAYAAACMo1E1AAAAAXNSR0IArs4c6QAAAlhJREFUWEftmMFrE0EUxr9vsi1pQfCgiGhPFQTxVjHdZGN3QcRTQRTpsTeV/gd614MHb0q9lB5FFD206qFZ2uwmOehRENFD8Q+wN21D9kmqpRGT3c3sbgzavc57M7/55s3bN48Y4o9DzIZ/A8523fzOodET/L5thKlNCZrfxj5/eXfuRjPpqUQqZ7uu0RzjXQgXCBmPtaDIFsl7VdO+D0Bi+XQxioQr1dxHJG/qLCDkol+4cAukFmAoXKHhnjSEmwSUDlzbJwlgKJxVcy+DfKULtuenCxgKV6qvzxLyMimcroIDg9MBHChcv4ADh/sVIg89016ICpe/BYeWkiv1gvMiNKGHDaZ5If5Yh3jqTdvXhxMO8DzTLg8pnPie6Vj/FdxSQLVCkdhVByWYgOIdCI7vK5W2ciJrXtG5GJUCuo0XG+uXlMibzOB2/5HTM1oVStFfm1Qq9ykzOABfJWeU/fPW+37Um3q7OJJvnn5MYD5LuHbp2AKwCcSPOSgeg+Dw7xtKO+b6kSvS9gAuUqIeBmkrJ7LdAuZ2Rj+u9PO6apf7I8IlAB1pKGU4gSz7ptNx4+KrVm5snBEJOm55+nDPfNO5Fh9p39KqVgowVCOzVCJAQMjtIEB/v68cJ0T4gMTZzOB0FOvtk/hYK7OESuX11QUyWT1n1SsFoDNO0tNOgOe+aV/Vrud2+yR5fiAwmR7Wz5kEMuebzhNtuLajVa1MwVCvARxJETD562sPpryxejQwxucJnAIQ2gLruYF2M4fYClpYrZVmKnE2GtllijNJVjYHcLrKDrVyPwCuPTw3CmIhlQAAAABJRU5ErkJggg=="),width:"39rpx",height:"39rpx"},null,8,["src"]),v(" 收录证书 ")])),_:1})])),_:1}),_(t,{class:"time"},{default:d((()=>[_(w,{name:"clock",color:"#6B7280",size:"28rpx"}),_(t,{class:"num"},{default:d((()=>[v(g(F(a.push_date)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1},8,["modelValue"])])),_:1})}}},[["__scopeId","data-v-107e6073"]]);export{O as default};
