var d=(e,t,o)=>new Promise((r,i)=>{var c=a=>{try{s(o.next(a))}catch(l){i(l)}},n=a=>{try{s(o.throw(a))}catch(l){i(l)}},s=a=>a.done?r(a.value):Promise.resolve(a.value).then(c,n);s((o=o.apply(e,t)).next())});import{_ as p,c as m,w as u,P as h,f,o as _,k as g}from"./index-CZJgrp0v.js";import{g as w}from"./matchStyle.BR4IVAbO.js";import v from"./pages-eventStyle-detailPreview.D1FZHMTl.js";import"./uv-tags.Iqd2Do9l.js";import"./uv-button.DwAMxj01.js";const D={name:"eventStyleDetail",components:{DetailPreview:v},data(){return{detailInfo:{title:"2024南昌市青少年排球联赛",organization:"华中科技大学校运会",publishTime:"昨天8:00",tags:["排球","运动会"],content:""}}},onLoad(){this.fetchDetailData()},mounted(){},methods:{fetchDetailData(){return d(this,null,function*(){var e;try{const t=yield w(this.$route.query.id||this.$mp.query.id);t.code===0?(t.data.tagsList=(e=(t.data.tags||"").split(","))==null?void 0:e.filter(o=>o),t.data.imagesList=JSON.parse(t.data.images||"[]"),this.detailInfo=t.data):h({title:t.msg||"获取详情失败",icon:"none"})}catch(t){console.error("获取详情数据失败",t)}})},handleSortData(e){e.forEach(t=>{t.tagList=(t.tagList||"").split(",")})},goToLive(){console.log("跳转到直播页面"),window.open(this.detailInfo.liveUrl)}}};function y(e,t,o,r,i,c){const n=f("DetailPreview"),s=f("layout-default-uni");return _(),m(s,null,{default:u(()=>[g(n,{info:i.detailInfo,showLive:i.detailInfo.liveUrl},null,8,["info","showLive"])]),_:1})}const k=p(D,[["render",y]]);export{k as default};
