var g=(o,c,s)=>new Promise((d,n)=>{var f=e=>{try{a(s.next(e))}catch(r){n(r)}},u=e=>{try{a(s.throw(e))}catch(r){n(r)}},a=e=>e.done?d(e.value):Promise.resolve(e.value).then(f,u);a((s=s.apply(o,c)).next())});import{_ as D,c as p,w as l,b as I,h as b,f as h,C as y,D as x,E as k,o as i,k as t,j as E,L as M,i as w,M as B,N as z,a6 as N,a7 as R,a8 as U}from"./index-CZJgrp0v.js";import{_ as v}from"./index.Cf7XbjBL.js";import{_ as j}from"./uv-input.Ch8KxUbS.js";import{l as P}from"./listMixins.CccSbMD4.js";import{V as $}from"./volunteerItem.Cf5Gzjmj.js";import{j as F}from"./recruit.CTMkYi5I.js";import"./themeMixins.C76yI6bA.js";import"./dayjs.min.17IgkfKq.js";const q={name:"volunteerList",mixins:[P],components:{VolunteerItem:$,IdentitySwitch:v},data(){return{scrollTop:0,keyword:""}},onLoad(o){this.getList()},onPageScroll(o){this.scrollTop=o.scrollTop},methods:{getList(){return g(this,null,function*(){I({title:"加载中..."});const o=yield F({page:this.page,size:10,recruitType:"volunteer",keyword:this.keyword});this.getListExtend(o),b()})},search(){this.resetData()}}};function A(o,c,s,d,n,f){const u=v,a=y(k("uv-icon"),x),e=y(k("uv-input"),j),r=h("VolunteerItem"),m=E,L=N,C=R,V=U,S=h("layout-default-uni");return i(),p(S,null,{default:l(()=>[t(m,{class:"page-common-container"},{default:l(()=>[t(u,{onUpdateRole:o.resetData},null,8,["onUpdateRole"]),t(m,{class:"list-container"},{default:l(()=>[t(e,{modelValue:n.keyword,"onUpdate:modelValue":c[0]||(c[0]=_=>n.keyword=_),placeholder:"请输入志愿者/裁判员招募名称",clearable:"",onSearch:o.resetData,onClear:o.resetData,customStyle:{height:"92rpx",boxSizing:"border-box"}},{suffix:l(()=>[t(a,{onClick:o.resetData,name:"search",size:"24",color:"#999"},null,8,["onClick"])]),_:1},8,["modelValue","onSearch","onClear"]),(i(!0),M(B,null,z(o.list,(_,T)=>(i(),p(m,{key:T,class:"pt-32rpx"},{default:l(()=>[t(r,{info:_},null,8,["info"])]),_:2},1024))),128)),o.showEmpty?(i(),p(L,{key:0,marginTop:45})):w("",!0),o.showLoadMore?(i(),p(C,{key:1,status:o.loadStatus},null,8,["status"])):w("",!0),t(V,{"scroll-top":n.scrollTop},null,8,["scroll-top"])]),_:1})]),_:1})]),_:1})}const Z=D(q,[["render",A],["__scopeId","data-v-76c9e097"]]);export{Z as default};
