import{a as l}from"./scrollbar.min.b0af3ace.js";import{v as c}from"./index.f34fadda.js";import{M as v}from"./index.48498ec4.js";import{h as i}from"./index.f5f8a26b.js";import{b as n}from"./index.0e34f136.js";import{r as m}from"./index.2553a511.js";import{d as b,r as g,f,o as L,c as t,a as d}from"./vendor.925c905e.js";import"./pan.47bc7f75.js";import"./start.1edc8c81.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";import"./arrow.15dbd454.js";import"./index.ef6e00b3.js";import"./hot.5fc25a45.js";const w="_title_1hrk6_1",j="_w1200_1hrk6_5",I="_section_1hrk6_9",k="_titleWrap_1hrk6_12",x="_dotImg_1hrk6_20",y="_albumList_1hrk6_31",S="_videoList_1hrk6_38",C="_videoNav_1hrk6_45",D="_wrapRight_1hrk6_58",E="_arrow_1hrk6_67",N="_mb48_1hrk6_72",R="_mb32_1hrk6_75";var a={title:w,w1200:j,section:I,titleWrap:k,dotImg:x,albumList:y,videoList:S,videoNav:C,wrapRight:D,arrow:E,mb48:N,mb32:R},e="./assets/titleDot.67d8584f.png",J=b({name:"home",components:{albumItem:l,videoDetailItem:c,musicLIstItem:v,hotSearch:i,banner:n},setup(){const o=g({albumList:[],videoList:[]}),r=f(),u=async()=>{try{const s=await m.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});o.albumList=s.data.rows}catch(s){console.log(s)}},p=async()=>{try{const s=await m.post("/api-website/open/videoLessonGroup/page",{data:{albumStatus:"PASS",page:1,rows:6}});o.videoList=s.data.rows}catch(s){console.log(s)}},h=s=>{r.push({path:"/searchdetail",query:{search:s}})},_=s=>{r.push({path:"/videoDetailList",query:{search:s}})};return L(()=>{u(),p()}),()=>t("div",null,[t(n,null,null),t("div",{class:"bg-white"},[t("div",{class:a.w1200},[t("div",{class:a.section},[t("div",{class:[a.titleWrap,a.mb48]},[t("img",{src:e,class:a.dotImg,alt:""},null),t("h4",null,[d("\u70ED\u95E8\u4E13\u8F91")]),t("img",{src:e,class:a.dotImg,alt:""},null)]),t(i,{searchType:"MUSIC",onHotTag:s=>{h(s)}},null),t("div",{class:a.albumList},[o.albumList.map(s=>t(l,{detail:s},null))])])])]),t("div",null,[t("div",{class:a.w1200},[t("div",{class:a.section},[t("div",{class:[a.titleWrap,a.mb32]},[t("img",{src:e,class:a.dotImg,alt:""},null),t("h4",null,[d("\u7CBE\u54C1\u89C6\u9891\u8BFE")]),t("img",{src:e,class:a.dotImg,alt:""},null)]),t(i,{searchType:"COURSE",onHotTag:s=>{_(s)},gotoPath:"/videoDetailList"},null),t("div",{class:a.videoList},[o.videoList.map(s=>t(c,{detail:s},null))])])])])])}});export{J as default};
