"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),i=require("./model.js"),n=require("../../common/libraries/day.js"),l=require("../../gen/Enums.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../components/hs-tabs/hs-tabs.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const t=e.defineComponent({__name:"index",setup(t){const a=[{label:"已报名",value:"Success"},{label:"已取消",value:"Cancelled"}];return e.onShow((()=>{var e;i.useModel.listData.value=[],i.useModel.formData.value.page=1,null==(e=o.method)||e.getList()})),(t,s)=>{var u,r,d,v,m,c;return{a:e.o(null==(u=e.unref(o.method))?void 0:u.handleTabsChange),b:e.p({list:a,current:e.unref(i.useModel).currentTabs.value}),c:e.f(null==(d=null==(r=e.unref(i.useModel))?void 0:r.listData)?void 0:d.value,((o,i,t)=>{var a,s,u,r,d,v,m,c,g,h,p;return e.e({a:null==(s=null==(a=null==o?void 0:o.activity)?void 0:a.cover_image)?void 0:s.length},(null==(r=null==(u=null==o?void 0:o.activity)?void 0:u.cover_image)?void 0:r.length)?{b:null==(v=null==(d=null==o?void 0:o.activity)?void 0:d.cover_image[0])?void 0:v.url}:{c:"39a6deaa-2-"+t+",39a6deaa-1",d:e.p({type:"images",size:"60",color:"#eee"})},{e:"39a6deaa-3-"+t+",39a6deaa-1",f:e.p({value:null==(m=null==o?void 0:o.activity)?void 0:m.status,Enums:e.unref(l.HouseChargeTasksStatusEnum)}),g:e.n(`event_item_status event_item_status_${null==(c=null==o?void 0:o.activity)?void 0:c.status}`),h:e.t(null==(g=null==o?void 0:o.activity)?void 0:g.title),i:e.t(e.unref(n.showDay)(null==(h=null==o?void 0:o.activity)?void 0:h.start_time)),j:e.t(e.unref(n.showDay)(null==(p=null==o?void 0:o.activity)?void 0:p.end_time)),k:`item_${i}`,l:e.o((i=>(o=>{var i;e.index.navigateTo({url:`/INDEX/activities_show/index?id=${null==(i=null==o?void 0:o.activity)?void 0:i.id}`})})(o)),`item_${i}`)})})),d:e.o(null==(v=e.unref(o.method))?void 0:v.loadMore),e:e.p({meta:null==(c=null==(m=e.unref(i.useModel))?void 0:m.metaData)?void 0:c.value})}}}});wx.createPage(t);
