import{r as e,e as a,Q as t,bR as s,x as i,bS as l,f as n,g as o,h as r,w as d,z as _,o as u,i as c,N as m,k as p,l as f,F as y,A as v,j as g,t as h,m as b,O as j}from"./index-Dnh6GPlT.js";import{_ as x}from"./uni-dateformat.C-BKL-OF.js";import{_ as k}from"./uni-tag.DPBqd_3K.js";import{_ as w,a as L}from"./uni-list.Y9x-0uJ_.js";import{_ as D}from"./uni-load-more.B5n23r4C.js";import{n as z}from"./index.Cn0fkM7l.js";import{g as A}from"./index.pjiugiR4.js";/* empty css                                                                  */import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css                                                                    *//* empty css                                                              */import{e as F}from"./index.ZMpzRqor.js";import"./uni-icons.C_vWVLAq.js";import"./uni-badge.B-SCmJj5.js";import"./uni-row.C8l4_QpR.js";import"./uni-popup.LDlA9brl.js";import"./uni-popup.vue_vue_type_style_index_0_scoped_90b62717_lang.B5-y41yX.js";import"./forum.B4BRx602.js";/* empty css                                                              */const M=C({__name:"index",setup(C){const M=e("暂无企业动态，快去看看别的吧～"),N=e(null);e(0);const O=a({barList:[],where:{page:1,limit:10,cate_id:"",status:1},listData:[]});t((()=>{Q()}));const Q=()=>{s({is_show:1}).then((e=>{O.barList=e.data||[],O.barList.length>0&&(O.where.cate_id=O.barList[0].id,S())})).catch((e=>{i.error(e.message)}))},R=e(!1),S=()=>{R.value=!0,l(O.where).then((e=>{R.value=!1,O.listData=e.data.list||[]})).catch((e=>{R.value=!1,i.error(e.message)}))},$=e=>{O.where.page=1,O.where.cate_id=e.id,O.listData=[],S()};return(e,a)=>{const t=_,s=n(o("uni-dateformat"),x),i=n(o("uni-tag"),k),l=j,C=n(o("uni-list-item"),w),Q=n(o("uni-list"),L),S=n(o("uni-load-more"),D);return u(),r(t,{class:"content"},{default:d((()=>[c(t,{class:"cr-position-header"},{default:d((()=>[O.barList.length>0?(u(),r(z,{key:0,ref_key:"navigationBarRef",ref:N,isActiveLine:!1,isSidebar:!1,"bar-data":O.barList,onHandleData:$},null,8,["bar-data"])):m("",!0)])),_:1}),c(t,{class:"notice-content"},{default:d((()=>[O.listData.length>0?(u(),r(t,{key:0,class:"m10"},{default:d((()=>[c(Q,{border:!1},{default:d((()=>[(u(!0),p(y,null,f(O.listData,((e,a)=>(u(),r(C,{key:a},{header:d((()=>[c(t,{class:""},{default:d((()=>[c(s,{class:"header-time",format:"yyyy/MM/dd",date:e.days},null,8,["date"])])),_:2},1024)])),body:d((()=>[(u(!0),p(y,null,f(e.data,(e=>(u(),r(t,{key:"lists"+e.id,class:"item-list-body",onClick:a=>(e=>{b(`/pages/users/noticeDefault/index?id=+${e.id}`)})(e)},{default:d((()=>[c(t,{class:v(["item-list-right",e.cover?"pl height":"width100"])},{default:d((()=>[c(t,null,{default:d((()=>[c(t,{class:v(["title",e.cover?"line2":"line1"])},{default:d((()=>[g(h(e.title),1)])),_:2},1032,["class"]),e.info?(u(),r(t,{key:0,class:v(["content",e.cover?"line1":"line2"])},{default:d((()=>[g(h(e.info),1)])),_:2},1032,["class"])):m("",!0)])),_:2},1024),c(t,{class:v(["bottom display-align",e.cover?"":"bottom-t"])},{default:d((()=>[c(s,{class:"time pr-14",format:"hh:mm",date:e.push_time},null,8,["date"]),c(t,{class:""},{default:d((()=>[g(h(e.visit)+"阅读",1)])),_:2},1024),0===e.is_read?(u(),r(t,{key:0,class:"pl-14"},{default:d((()=>[c(i,{text:"未读",type:"warning"})])),_:1})):m("",!0)])),_:2},1032,["class"])])),_:2},1032,["class"]),e.cover?(u(),r(t,{key:0,class:"item-list-left"},{default:d((()=>[c(l,{class:"image",src:e.cover,mode:"aspectFill"},null,8,["src"])])),_:2},1024)):m("",!0)])),_:2},1032,["onClick"])))),128))])),_:2},1024)))),128))])),_:1}),R.value?(u(),r(S,{key:0,iconType:"auto",status:"loading"})):m("",!0)])),_:1})):(u(),r(F,{key:1,index:1,title:M.value},null,8,["title"]))])),_:1}),c(A)])),_:1})}}},[["__scopeId","data-v-d117ab21"]]);export{M as default};
