import{k as n,s as a,o as e,a as t,w as s,g as o,q as c,m as u,u as l,F as i,i as d,t as m,v as r}from"./index.35bb0716.js";import{a as f}from"./api.cd3647ee.js";import{_}from"./plugin-vue_export-helper.21dcd24c.js";var g=_({data:()=>({announcementLists:[]}),onLoad(){this.announcementQuery()},methods:{announcementQuery(){f.announcementQuery({announcementTypeId:686}).then((n=>{n.success&&(this.announcementLists=n.data.announcementInfoList)}))},matchReg:n=>n.replace(/<\/?.+?\/?>/g,""),goToDetail(a){n({url:`../announcement/announcement_detail?id=${a}`})},goBack(){a({url:"../index/index"})}}},[["render",function(n,a,f,_,g,p){const h=d,y=r;return e(),t(h,{class:"container"},{default:s((()=>[o(h,{class:"top"},{default:s((()=>[o(h,{class:"iconfont icon-youjiantou",onClick:a[0]||(a[0]=n=>p.goBack())}),o(h,{style:{width:"55%","text-align":"left"}},{default:s((()=>[c(" 公告列表 ")])),_:1})])),_:1}),o(h,{class:"content"},{default:s((()=>[(e(!0),u(i,null,l(g.announcementLists,((n,a)=>(e(),t(h,{class:"announcement_wrapper",key:a},{default:s((()=>[o(y,{class:"iconfont icon-zizhutuiguang"}),o(h,{class:"announcement_content"},{default:s((()=>[o(h,{class:"announcement_title"},{default:s((()=>[o(y,{class:"title"},{default:s((()=>[c(m(p.matchReg(n.title).substring(0,8))+"...",1)])),_:2},1024),o(y,{class:"date"},{default:s((()=>[c(m(n.announcementAt),1)])),_:2},1024)])),_:2},1024),o(h,{class:"announcement_des"},{default:s((()=>[c(m(p.matchReg(n.content).substring(0,15))+"... ",1)])),_:2},1024)])),_:2},1024),o(h,{class:"to_detail",onClick:a=>p.goToDetail(n.id)},{default:s((()=>[o(h,null,{default:s((()=>[c("查看详情")])),_:1}),o(h,{class:"iconfont icon-youjiantou"})])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1})}],["__scopeId","data-v-4aa5cf47"]]);export{g as default};
