import{_ as x,a0 as y,a9 as b,c as m,w as t,j as A,C as D,D as g,E as S,o as u,Q as k,k as e,a1 as B,t as c,q as C,p as s,v as N}from"./index-CZJgrp0v.js";const R={name:"RecruitListItem",props:{item:{type:Object,default:()=>{}}},data(){return{commonStore:b()}},methods:{toDetailRecruit(r){y({url:`/pages/recruitPart/recruitDetail/index?id=${this.item.recruitId}&type=${r}`})}},mounted(){}};function T(r,o,a,w,f,_){const i=C,n=A,l=D(S("uv-icon"),g),d=N;return u(),m(n,{class:"recruit-list-item-container"},{default:t(()=>[k("div",{class:B(["statusTag",a.item.recruitStatus])},c(f.commonStore.getLabelByEnumKey("recruitStatus",a.item.recruitStatus)),3),e(n,{class:"title-box"},{default:t(()=>[e(i,{class:"title"},{default:t(()=>[s(c(a.item.eventName),1)]),_:1})]),_:1}),e(n,{class:"content-box"},{default:t(()=>[e(n,{class:"content-item"},{default:t(()=>[e(i,{class:"content-item-content"},{default:t(()=>[s("活动名称："+c(a.item.recruitName),1)]),_:1})]),_:1}),e(n,{class:"content-item"},{default:t(()=>[e(i,{class:"content-item-icon"},{default:t(()=>[e(l,{name:"clock",color:"#A5ADBA",size:"15"})]),_:1}),e(i,{class:"content-item-content"},{default:t(()=>[s(c(a.item.serviceStartTime)+" 至 "+c(a.item.serviceEndTime),1)]),_:1})]),_:1}),e(n,{class:"content-item"},{default:t(()=>[e(i,{class:"content-item-icon"},{default:t(()=>[e(l,{name:"map",color:"#A5ADBA",size:"15"})]),_:1}),e(i,{class:"content-item-content"},{default:t(()=>[s(c(a.item.serviceAddress||"-"),1)]),_:1})]),_:1}),e(n,{class:"content-item"},{default:t(()=>[e(i,{class:"content-item-icon"},{default:t(()=>[e(l,{name:"file-text",color:"#A5ADBA",size:"15"})]),_:1}),e(i,{class:"content-item-content line-1"},{default:t(()=>[s(c(a.item.description||"-"),1)]),_:1})]),_:1})]),_:1}),e(n,{class:"bottom-box"},{default:t(()=>[e(i,{class:"left-text"},{default:t(()=>[s(" 招募人数:"+c(a.item.recruitNum===null?"无限制":`${a.item.recruitNum}人`),1)]),_:1}),a.item.recruitStatus!=="apply"||a.item.isFullRegister?(u(),m(d,{key:0,onClick:o[0]||(o[0]=v=>_.toDetailRecruit("view")),class:"foo-right button"},{default:t(()=>[s(" 查看详情 ")]),_:1})):(u(),m(d,{key:1,onClick:o[1]||(o[1]=v=>_.toDetailRecruit("apply")),class:"foo-right button"},{default:t(()=>[s("立即报名")]),_:1}))]),_:1})]),_:1})}const E=x(R,[["render",T],["__scopeId","data-v-ba8976c2"]]);export{E as R};
