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