import{_ as a,b as e,g as l,c as t,f as s,h as o,l as n,w as c,e as u,u as d,j as r,t as i,M as v,i as m,r as _,z as p,d as f,F as h,ac as g,D as k,E as C,k as x,L as y,x as b}from"./index-Cd7oqaqo.js";import{_ as z}from"./z-paging.Cu8jht51.js";import{l as w}from"./logo.Cf3Z9Qoj.js";import{a as j}from"./api.rwMLhj-q.js";import{d as N}from"./dayjs.min.C73DX6gN.js";const V=a({__name:"backLogoNav",props:{navName:{type:String,default:"我的"}},setup(a){const _=()=>{v({delta:1})};return(v,p)=>{const f=m,h=e(t("u-icon"),l),g=e(t("up--image"),s);return o(),n(f,{class:"navbox"},{default:c((()=>[u(f,{class:"bg"}),u(f,{class:"namebox"},{default:c((()=>[u(f,{class:"back",onClick:_},{default:c((()=>[u(h,{name:"arrow-left",color:"#000",size:"24"})])),_:1}),u(f,{class:"logo"},{default:c((()=>[u(g,{src:d(w),width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1}),u(f,{class:"name"},{default:c((()=>[r(i(a.navName),1)])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-78051459"]]),I=a({__name:"myJoin",setup(a){const s=_(null);_(null);const d=_([]),v=_(0),w=_(""),I=_("");_(!0);const S=_("肝胆相照临床病例库"),U=_(!1),Y=_(!1),D=_(0),E=()=>{U.value=!1},M=()=>{Y.value=!0,U.value=!1},O=()=>{0==D.value?F(w.value):1==D.value?B(w.value):2==D.value&&L(w.value),Y.value=!1},W=()=>{U.value=!0};_([{label:"正序",value:"asc"},{label:"倒序",value:"desc"}]);const A=_([{name:"病例交流"},{name:"文章病例库"},{name:"视频病例库"}]),B=a=>{j.delArticleComment(a).then((a=>{y({icon:"none",title:"删除成功"}),s.value.refresh()}))},L=a=>{j.delVideoComment(a).then((a=>{y({icon:"none",title:"删除成功"}),s.value.refresh()}))},F=a=>{j.delExchangeComment(a).then((a=>{y({icon:"none",title:"删除成功"}),s.value.refresh()}))},H=a=>{D.value=a.index,s.value.reload()};p((a=>{}));const J=(a,e)=>{const l={page:a,page_size:e};0==D.value?(async a=>{j.getExchangeCommentUser({...a}).then((a=>{s.value.complete(a.data.data.data),v.value=a.data.data.total})).catch((a=>{s.value.complete(!1)}))})(l):1==D.value?(async a=>{j.getArticleCommentUser({...a}).then((a=>{s.value.complete(a.data.data.data),v.value=a.data.data.total})).catch((a=>{s.value.complete(!1)}))})(l):(async a=>{j.getVideoCommentUser({...a}).then((a=>{s.value.complete(a.data.data.data),v.value=a.data.data.total})).catch((a=>{s.value.complete(!1)}))})(l)};return(a,v)=>{const _=e(t("up-tabs"),g),p=m,y=e(t("up-icon"),l),j=e(t("z-paging"),z),B=e(t("up-popup"),k),L=e(t("up-overlay"),C);return o(),f(h,null,[u(p,{class:"u-page"},{default:c((()=>[u(j,{ref_key:"paging",ref:s,"inside-more":"","loading-more-no-more-text":"咱也是有底线的！","auto-show-back-to-top":!0,modelValue:d.value,"onUpdate:modelValue":v[0]||(v[0]=a=>d.value=a),onQuery:J},{top:c((()=>[u(V,{searchWord:I.value,navName:S.value},null,8,["searchWord","navName"]),u(p,{class:"tabcon"},{default:c((()=>[u(_,{activeStyle:{color:"#3CC7C0"},inactiveStyle:{color:"#4B5563"},lineColor:"#3CC7C0",lineWidth:"155rpx",lineHeight:"2",list:A.value,onClick:H},null,8,["list"])])),_:1})])),default:c((()=>[(o(!0),f(h,null,x(d.value,((a,e)=>(o(),n(p,{class:"item",key:e},{default:c((()=>[u(p,{class:"title"},{default:c((()=>[r(i(a.content),1)])),_:2},1024),u(p,{class:"deal"},{default:c((()=>[u(p,{class:"time"},{default:c((()=>[u(y,{name:"clock",color:"#6B7280",size:"28rpx"}),u(p,{class:"num"},{default:c((()=>{return[r(i((e=a.created_at,N(e).format("YYYY-MM-DD"))),1)];var e})),_:2},1024)])),_:2},1024),u(p,{class:"dot",onClick:e=>{return l=a.comment_id,w.value=l,void(U.value=!0);var l}},{default:c((()=>[r("...")])),_:2},1032,["onClick"])])),_:2},1024),u(p,{class:"casecontent"},{default:c((()=>[0==D.value?(o(),n(p,{key:0,class:"author"},{default:c((()=>[r(i(a.author_name)+"("+i(a.author_hospital_name)+")",1)])),_:2},1024)):b("",!0),0==D.value?(o(),n(p,{key:1,class:"content"},{default:c((()=>[r(i(a.exchange_title),1)])),_:2},1024)):1==D.value?(o(),n(p,{key:2,class:"content"},{default:c((()=>[r(i(a.article_title),1)])),_:2},1024)):2==D.value?(o(),n(p,{key:3,class:"content"},{default:c((()=>[r(i(a.video_title),1)])),_:2},1024)):b("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["modelValue"])])),_:1}),u(B,{zIndex:10,overlayStyle:{zIndex:9},closeOnClickOverlay:!1,show:U.value,round:10,mode:"bottom",onClose:E,onOpen:W},{default:c((()=>[u(p,{class:"dealbox"},{default:c((()=>[u(p,{class:"dealcell",onClick:M},{default:c((()=>[r("删除")])),_:1}),u(p,{class:"bar"}),u(p,{class:"dealcell",onClick:E},{default:c((()=>[r("取消")])),_:1})])),_:1})])),_:1},8,["show"]),u(L,{show:Y.value,"mask-click-able":""},{default:c((()=>[u(p,{class:"zanboxpop"},{default:c((()=>[u(p,{class:"zanwraper"},{default:c((()=>[u(p,{class:"title"},{default:c((()=>[r("提示")])),_:1}),u(p,{class:"content"},{default:c((()=>[r(" 是否删除该评论？ ")])),_:1}),u(p,{class:"btnbox"},{default:c((()=>[u(p,{class:"cancle",onClick:v[1]||(v[1]=a=>Y.value=!1)},{default:c((()=>[r("取消")])),_:1}),u(p,{class:"ok",onClick:O},{default:c((()=>[r("确定")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])],64)}}},[["__scopeId","data-v-a273de39"]]);export{I as default};
