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-WeUkftbp.js";import{_ as x}from"./uni-dateformat.CAFQ6hZt.js";import{_ as k}from"./uni-tag.BU4fxSTe.js";import{_ as w,a as L}from"./uni-list.D2b1m_I0.js";import{_ as D}from"./uni-load-more.Co1GbmQg.js";import{n as z}from"./index.Vw7NoxQA.js";import{g as A}from"./index.NTbA_2SX.js";/* empty css                                                                  */import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css                                                                    *//* empty css                                                              */import{e as F}from"./index.D8Jasx-l.js";import"./uni-icons.B3nCnuXe.js";import"./uni-badge.CLrZv6EZ.js";import"./uni-row.DLutFlIQ.js";import"./uni-popup.CI1Fmu1z.js";import"./uni-popup.vue_vue_type_style_index_0_scoped_90b62717_lang.BVw2wyB9.js";import"./forum.BGXd3LTG.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};
