var b=(e,l,i)=>new Promise((y,n)=>{var f=c=>{try{s(i.next(c))}catch(m){n(m)}},u=c=>{try{s(i.throw(c))}catch(m){n(m)}},s=c=>c.done?y(c.value):Promise.resolve(c.value).then(f,u);s((i=i.apply(e,l)).next())});import{_ as T,a0 as N,a9 as j,c as r,w as o,K as D,j as E,C as I,D as A,E as C,o as a,k as t,i as h,a1 as V,q as F,p,t as d,aa as K,L as S,M as x,N as B,v as U,b as O,h as P,f as L,a6 as R,a7 as q,a8 as J}from"./index-CZJgrp0v.js";import{_ as M}from"./index.Cf7XbjBL.js";import{_ as G}from"./uv-input.Ch8KxUbS.js";import{l as H}from"./listMixins.CccSbMD4.js";import{_ as Q}from"./index.RI71f-uW.js";import{t as W}from"./themeMixins.C76yI6bA.js";import{d as X}from"./dayjs.min.17IgkfKq.js";import{e as Z}from"./eventCheckIn.DWUp3vXQ.js";const $={mixins:[W],props:{info:{type:Object,default:()=>({})},isShowFooter:{type:Boolean,default:!0}},watch:{info:{handler(e,l){e&&e!=l&&(this.showInfo=this.formatData(e))},immediate:!0}},data(){return{showInfo:{banner:"",name:"",address:"",applyTimeStr:"",matchTimeStr:"",latitude:"",longitude:"",apply_number:0,project_limit:0},background:"#4cd964",commonStore:j(),dayjs:X,letter:`
      `}},computed:{buttonDiaabled(){return!1}},methods:{handleScan(){},formatData(e){var i;let l=[e.eventTypeName];return e.tagList=l.concat(((i=e.tag)==null?void 0:i.split(","))||[]),e},filterTime(e,l){return`${e} 至 ${l}`},handleClick(){N({url:"/pages/eventCheckIn/detail"}),sessionStorage.setItem("eventCheckInDetail",JSON.stringify({img:this.showInfo.img,name:this.showInfo.name,eventId:this.showInfo.eventId}))},getBg(e){return this.$dict.getDictLabel("matchApplyColorList",e,{labelKey:"color"})||"#9f9fa0"}}};function ee(e,l,i,y,n,f){const u=F,s=E,c=K,m=Q,_=I(C("uv-icon"),A),v=U;return a(),r(s,{class:"activity-container",onClick:D(f.handleClick,["stop"])},{default:o(()=>[t(s,{class:"activety-centent"},{default:o(()=>[t(s,null,{default:o(()=>[t(s,{class:V(["imag-tag flex items-center",[n.showInfo.recruitStatus]])},{default:o(()=>[t(u,{class:"status-text"},{default:o(()=>[p(d(n.commonStore.getLabelByEnumKey("recruitStatus",n.showInfo.recruitStatus)),1)]),_:1})]),_:1},8,["class"]),t(s,{class:"v-left"},{default:o(()=>[t(c,{src:n.showInfo.img,class:"image",mode:"aspectFill"},null,8,["src"])]),_:1})]),_:1}),t(s,{class:"v-right"},{default:o(()=>[t(s,null,{default:o(()=>[t(s,{class:"activity-des u-line-2"},{default:o(()=>[p(d(i.info.name),1)]),_:1}),t(s,{class:"tag-box flex mt-10rpx"},{default:o(()=>[(a(!0),S(x,null,B(n.showInfo.tagList,(g,k)=>(a(),S(x,{key:k},[g?(a(),r(m,{key:0},{default:o(()=>[p(d(g),1)]),_:2},1024)):h("",!0)],64))),128))]),_:1})]),_:1}),t(s,{class:"r-center"},{default:o(()=>[t(s,{class:"activity-time",style:{"align-items":"start"}},{default:o(()=>[t(_,{style:{"margin-top":"8rpx"},name:"clock",color:"#A5ADBA",size:"15"}),t(u,{class:"text"},{default:o(()=>[p(d(n.dayjs(n.showInfo.eventStartTime).format("YYYY.MM.DD"))+"-"+d(n.dayjs(n.showInfo.eventEndTime).format("YYYY.MM.DD")),1)]),_:1})]),_:1}),n.showInfo.address?(a(),r(s,{key:0,class:"activity-location"},{default:o(()=>[t(_,{name:"map",color:"#A5ADBA",size:"16"}),t(u,{class:"text uv-line-1"},{default:o(()=>[p(d(n.showInfo.address),1)]),_:1})]),_:1})):h("",!0),n.showInfo.address?(a(),r(s,{key:1,class:"activity-location"},{default:o(()=>[t(_,{name:"account-fill",color:"#A5ADBA",size:"16"}),t(u,{class:"text uv-line-1"},{default:o(()=>[p(d(n.showInfo.eventCheckEnterTotalNum||0)+"人参加",1)]),_:1})]),_:1})):h("",!0)]),_:1})]),_:1})]),_:1}),i.isShowFooter?(a(),r(s,{key:0,class:"activity-footer"},{default:o(()=>[t(v,{class:"foo-right button",onClick:D(f.handleClick,["stop"]),disabled:f.buttonDiaabled},{default:o(()=>[p(" 去检录 ")]),_:1},8,["onClick","disabled"])]),_:1})):h("",!0)]),_:1},8,["onClick"])}const te=T($,[["render",ee],["__scopeId","data-v-460a8c40"]]),oe={name:"eventCheckInList",mixins:[H],components:{EventItem:te,IdentitySwitch:M},data(){return{scrollTop:0,keyword:""}},onLoad(e){this.getList()},onPageScroll(e){this.scrollTop=e.scrollTop},methods:{getList(){return b(this,null,function*(){O({title:"加载中..."});const e=yield Z({page:this.page,size:10,name:this.keyword});this.getListExtend(e),P()})},search(){this.resetData()}}};function ne(e,l,i,y,n,f){const u=M,s=I(C("uv-icon"),A),c=I(C("uv-input"),G),m=L("EventItem"),_=E,v=R,g=q,k=J,Y=L("layout-default-uni");return a(),r(Y,null,{default:o(()=>[t(_,{class:"page-common-container"},{default:o(()=>[t(u,{onUpdateRole:e.resetData},null,8,["onUpdateRole"]),t(_,{class:"list-container"},{default:o(()=>[t(c,{modelValue:n.keyword,"onUpdate:modelValue":l[0]||(l[0]=w=>n.keyword=w),placeholder:"请输入赛事名称",clearable:"",onSearch:e.resetData,onClear:e.resetData,customStyle:{height:"92rpx",boxSizing:"border-box"}},{suffix:o(()=>[t(s,{onClick:e.resetData,name:"search",size:"24",color:"#999"},null,8,["onClick"])]),_:1},8,["modelValue","onSearch","onClear"]),(a(!0),S(x,null,B(e.list,(w,z)=>(a(),r(_,{key:z,class:"pt-32rpx"},{default:o(()=>[t(m,{info:w},null,8,["info"])]),_:2},1024))),128)),e.showEmpty?(a(),r(v,{key:0,marginTop:45})):h("",!0),e.showLoadMore?(a(),r(g,{key:1,status:e.loadStatus},null,8,["status"])):h("",!0),t(k,{"scroll-top":n.scrollTop},null,8,["scroll-top"])]),_:1})]),_:1})]),_:1})}const pe=T(oe,[["render",ne],["__scopeId","data-v-7ca87c3c"]]);export{pe as default};
