import{k as s,s as e,j as t,o as a,a as l,w as n,g as i,q as o,m as c,u as d,F as u,d as _,i as m,v as r,t as y,n as g}from"./index.35bb0716.js";import{a as f}from"./api.cd3647ee.js";import{_ as p}from"./plugin-vue_export-helper.21dcd24c.js";var h=p({data:()=>({system_msgs_list:null}),onLoad(){this.querySystemMessage()},methods:{querySystemMessage(){f.querySystemMessage({systemType:1,userId:2}).then((s=>{s.success?this.system_msgs_list=s.data.dataList:this.system_msgs_list=null}))},matchReg:s=>s.replace(/<\/?.+?\/?>/g,""),goToDetail(e){s({url:`../systemMsg/system_msg_detail?id=${e}`})},goBack(){e({url:"../index/index"})},oneKeyRead(){f.oneKeyRead({systemType:1,userId:2}).then((s=>{s.success?(t({title:"已清除所有未读信息",duration:2e3,icon:"none"}),this.querySystemMessage()):t({title:s.message,duration:2e3,icon:"none"})}))}}},[["render",function(s,e,t,f,p,h){const k=m,x=r;return a(),l(k,{class:"container"},{default:n((()=>[i(k,{class:"top"},{default:n((()=>[i(k,{class:"iconfont icon-youjiantou",onClick:e[0]||(e[0]=s=>h.goBack())}),i(k,{style:{width:"33%","text-align":"right"}},{default:n((()=>[o(" 消息列表 ")])),_:1}),i(k,{class:"clear",onClick:e[1]||(e[1]=s=>h.oneKeyRead())},{default:n((()=>[i(x,{class:"iconfont icon-weibiaoti544"}),i(x,null,{default:n((()=>[o("清除未读")])),_:1})])),_:1})])),_:1}),p.system_msgs_list?(a(),l(k,{key:0,class:"content"},{default:n((()=>[(a(!0),c(u,null,d(p.system_msgs_list,((s,e)=>(a(),l(k,{class:"announcement_wrapper",key:e,onClick:e=>h.goToDetail(s.id)},{default:n((()=>[i(x,{class:"iconfont icon-zizhutuiguang"}),i(k,{class:"announcement_content"},{default:n((()=>[i(k,{class:"announcement_title"},{default:n((()=>[s.title?(a(),l(x,{key:0,class:"title"},{default:n((()=>[o(y(s.title.substring(0,8))+"...",1)])),_:2},1024)):_("",!0),s.title?_("",!0):(a(),l(x,{key:1,class:"title"},{default:n((()=>[o("暂无标题")])),_:1})),i(x,{class:"date"},{default:n((()=>[o(y(s.createdAt),1)])),_:2},1024),i(x,{class:g(["readed",{dot:0==s.isRead}])},null,8,["class"])])),_:2},1024),i(k,{class:"announcement_des"},{default:n((()=>[o(y(h.matchReg(s.context).substring(0,15))+"... ",1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):_("",!0),p.system_msgs_list?_("",!0):(a(),l(k,{key:1,class:"content"},{default:n((()=>[i(k,{style:{"text-align":"center"}},{default:n((()=>[o("暂无消息")])),_:1})])),_:1}))])),_:1})}],["__scopeId","data-v-6b5d02e4"]]);export{h as default};
