import{_ as v,a0 as g,a9 as w,c as u,w as e,j as I,C as x,D as S,E as b,o as m,k as t,i as _,aa as D,a1 as h,q as T,p as i,t as n,v as N,K as k}from"./index-CZJgrp0v.js";import{t as C}from"./themeMixins.C76yI6bA.js";import{d as Y}from"./dayjs.min.17IgkfKq.js";const j={mixins:[C],props:{info:{type:Object,default:()=>({})},isShowFooter:{type:Boolean,default:!0}},watch:{info:{handler(o,r){o&&o!=r&&(this.showInfo=this.formatData(o))},immediate:!0}},data(){return{showInfo:{banner:"",name:"",address:"",applyTimeStr:"",matchTimeStr:"",latitude:"",longitude:"",apply_number:0,project_limit:0},background:"#4cd964",dayjs:Y,commonStore:w()}},computed:{buttonDiaabled(){return!1}},methods:{formatData(o){var l;console.log({data:o});let r=[o.eventTypeName];return o.tagList=r.concat(((l=o.tag)==null?void 0:l.split(","))||[]),o},filterTime(o,r){return`${o} 至 ${r}`},handleClick(){g({url:"/pages/volunteerPart/volunteer/detail"}),sessionStorage.setItem("volunteerDetail",JSON.stringify({img:this.showInfo.img,tag:this.showInfo.tag,serviceStartTime:this.showInfo.serviceStartTime,serviceEndTime:this.showInfo.serviceEndTime,address:this.showInfo.address,recruitStatus:this.showInfo.recruitStatus,eventName:this.showInfo.eventName,recruitId:this.showInfo.recruitId,isTimeSlotOpen:this.showInfo.isTimeSlotOpen,recruitName:this.showInfo.recruitName}))},getBg(o){return this.$dict.getDictLabel("matchApplyColorList",o,{labelKey:"color"})||"#9f9fa0"}}};function A(o,r,l,B,a,f){const p=D,c=T,s=I,d=x(b("uv-icon"),S),y=N;return m(),u(s,{class:"activity-container"},{default:e(()=>[t(s,{class:"activety-centent"},{default:e(()=>[t(s,null,{default:e(()=>[t(s,{class:"v-left"},{default:e(()=>[t(p,{src:a.showInfo.img,class:"image",mode:"widthFix"},null,8,["src"]),t(s,{class:h(["imag-tag flex items-center",[a.showInfo.recruitStatus]])},{default:e(()=>[t(c,{class:"status-text"},{default:e(()=>[i(n(a.commonStore.getLabelByEnumKey("recruitStatus",a.showInfo.recruitStatus)),1)]),_:1})]),_:1},8,["class"])]),_:1})]),_:1}),t(s,{class:"v-right"},{default:e(()=>[t(s,null,{default:e(()=>[t(s,{class:"activity-des u-line-2"},{default:e(()=>[i(n(l.info.eventName),1)]),_:1})]),_:1}),t(s,{class:"r-center"},{default:e(()=>[t(s,{class:"activity-time"},{default:e(()=>[t(c,{class:"text",style:{color:"#000"}},{default:e(()=>[i("活动名称："+n(a.showInfo.recruitName),1)]),_:1})]),_:1}),t(s,{class:"activity-time",style:{"align-items":"start"}},{default:e(()=>[t(d,{style:{"margin-top":"8rpx"},name:"clock",color:"#A5ADBA",size:"15"}),t(c,{class:"text"},{default:e(()=>[i(n(a.dayjs(a.showInfo.serviceStartTime).format("YYYY.MM.DD"))+"-"+n(a.dayjs(a.showInfo.serviceEndTime).format("YYYY.MM.DD")),1)]),_:1})]),_:1}),a.showInfo.address?(m(),u(s,{key:0,class:"activity-location"},{default:e(()=>[t(d,{style:{"margin-top":"6rpx"},name:"map",color:"#A5ADBA",size:"16"}),t(c,{class:h(["text",l.isShowFooter?"uv-line-1":""])},{default:e(()=>[i(n(a.showInfo.address),1)]),_:1},8,["class"])]),_:1})):_("",!0)]),_:1})]),_:1})]),_:1}),l.isShowFooter?(m(),u(s,{key:0,class:"activity-footer"},{default:e(()=>[t(s,{class:"foo-left"},{default:e(()=>[t(s,{class:"apply-status"},{default:e(()=>[t(s,{class:"text-status-0"},{default:e(()=>[t(c,null,{default:e(()=>[i(n(a.showInfo.applyNum)+" 人参加",1)]),_:1})]),_:1})]),_:1})]),_:1}),t(y,{class:"foo-right button",onClick:k(f.handleClick,["stop"]),disabled:f.buttonDiaabled},{default:e(()=>[i(" 管理 ")]),_:1},8,["onClick","disabled"])]),_:1})):_("",!0)]),_:1})}const V=v(j,[["render",A],["__scopeId","data-v-370671a2"]]);export{V};
