var d=(t,i,o)=>new Promise((p,c)=>{var r=e=>{try{n(o.next(e))}catch(u){c(u)}},_=e=>{try{n(o.throw(e))}catch(u){c(u)}},n=e=>e.done?p(e.value):Promise.resolve(e.value).then(r,_);n((o=o.apply(t,i)).next())});import{_ as I,a0 as L,c as m,w as a,j as v,o as l,k as s,aa as N,p as f,t as g,f as h,l as $,ck as C,L as B,i as k,M,N as S,a6 as D,a7 as E,a8 as F}from"./index-CZJgrp0v.js";import{l as P}from"./listMixins.CccSbMD4.js";import{_ as V}from"./FlatTab.DTGSghS1.js";import{a as j}from"./platformPart.CNQPxedB.js";import"./uv-tabs.Dgbny3zs.js";const O={name:"NoticeListItem",props:{info:{type:Object,default:()=>{}}},data(){return{}},computed:{showImg(){try{if(this.info.coverImage)return JSON.parse(this.info.coverImage)[0].url}catch(t){}return""}},methods:{handleClick(t){L({url:`/pages/platformPart/notice/detail?noticeId=${t.noticeId}`})}},mounted(){}};function R(t,i,o,p,c,r){const _=N,n=v;return l(),m(n,{class:"item",onClick:i[0]||(i[0]=e=>r.handleClick(o.info))},{default:a(()=>[s(n,{class:"left_bg"},{default:a(()=>[s(_,{src:r.showImg},null,8,["src"])]),_:1}),s(n,{class:"right"},{default:a(()=>[s(n,{class:"title"},{default:a(()=>[f(g(o.info.name),1)]),_:1}),s(n,{class:"time"},{default:a(()=>[f(g(o.info.publishTime),1)]),_:1})]),_:1})]),_:1})}const q=I(O,[["render",R],["__scopeId","data-v-8b599bc9"]]),z={name:"Recruit",mixins:[P],components:{NoticeListItem:q,FlatTab:V},data(){return{scrollTop:0,tabList:[{name:"志愿者招募"},{name:"裁判员招募"}]}},onPageScroll(t){this.scrollTop=t.scrollTop},onLoad(t){this.finished=!0,this.loading=!1,this.getList()},methods:{toDetailRecruit(t){L({url:`/pages/recruitPart/recruitDetail/index?id=${t.id}`})},clickTab(t){console.log(t)},getList(t){return d(this,null,function*(){let i={page:this.page,size:10};this.loading=!0;let o=yield j(i);this.getListExtend(o,t)})}}};function J(t,i,o,p,c,r){const _=$,n=h("NoticeListItem"),e=v,u=D,T=E,b=F,y=h("layout-default-uni");return l(),m(y,null,{default:a(()=>[s(e,{class:"page-main-container"},{default:a(()=>[s(_,{src:C,class:"notice_bg",mode:"widthFix"}),s(e,{class:"list-container"},{default:a(()=>[(l(!0),B(M,null,S(t.list,(w,x)=>(l(),m(e,{key:x},{default:a(()=>[s(n,{info:w},null,8,["info"])]),_:2},1024))),128)),t.showEmpty?(l(),m(u,{key:0,marginTop:45})):k("",!0),t.showLoadMore?(l(),m(T,{key:1,status:t.loadStatus},null,8,["status"])):k("",!0),s(b,{"scroll-top":c.scrollTop},null,8,["scroll-top"])]),_:1})]),_:1})]),_:1})}const W=I(z,[["render",J],["__scopeId","data-v-b1e281ba"]]);export{W as default};
