/* empty css             *//* empty css                  *//* empty css                   *//* empty css                  *//* empty css                 *//* empty css                        */import{d as a,m as e,x as s,o as t,c as l,e as i,b as o,W as n,ay as d,F as c,y as r,a as u,w as v,q as p,S as m,v as f,az as g,aA as y,l as h,t as j,D as b,aR as k,_}from"./index-2b50ecca.js";import{n as x,a as w,b as C}from"./index-5cdf9bd7.js";import"./http-aa208300.js";/* empty css                 */const V=a=>(g("data-v-9fa9af22"),a=a(),y(),a),H={class:"header-title"},L=V((()=>i("h3",null,"最新通知 ",-1))),M={class:"noticebody"},T=["onClick"],q={class:"notices"},z={style:{display:"flex","justify-content":"center"}},A=[V((()=>i("label",{style:{color:"darkgray"}}," 暂无新通知",-1)))],D=["innerHTML"],F={class:"dialog-footer"},I=_(a({__name:"notices",setup(a){const g=e(!1),y=e({}),_=e({}),V=()=>{y.value.id>0&&x(y.value.id),g.value=!1},I=()=>{p.push({path:"/notice/mynotice"})};return s((()=>{w({limit:3}).then((a=>{_.value=a.data}))})),(a,e)=>{const s=b,p=k,x=m,w=f;return t(),l(c,null,[i("div",H,[L,o(),n(i("h4",{onClick:I},"查看全部",512),[[d,_.value.length>0]])]),i("div",M,[(t(!0),l(c,null,r(_.value,((a,e)=>(t(),l("div",{class:"notice-item",onClick:e=>{C(a.id).then((a=>{g.value=!0,y.value.id=a.data.id,y.value.title=a.data.title,y.value.content=a.data.content}))},key:e},[0==a.is_read?(t(),h(p,{key:0,"is-dot":"",class:"item"},{default:v((()=>[u(s,{class:"logo",src:"./src/assets/icons/notice.png"})])),_:1})):(t(),h(s,{key:1,class:"logo",src:"./src/assets/icons/notice.png"})),i("label",q,j(a.title),1)],8,T)))),128))]),n(i("div",z,A,512),[[d,_.value.length<1]]),u(w,{draggable:"",modelValue:g.value,"onUpdate:modelValue":e[0]||(e[0]=a=>g.value=a),title:y.value.title,width:"30%",center:""},{footer:v((()=>[i("span",F,[u(x,{onClick:V},{default:v((()=>[o("我知道了")])),_:1})])])),default:v((()=>[i("div",{class:"flex flex-wrap break-all",innerHTML:y.value.content},null,8,D)])),_:1},8,["modelValue","title"])],64)}}}),[["__scopeId","data-v-9fa9af22"]]);export{I as default};
