var S=Object.defineProperty;var c=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var m=(e,i,l)=>i in e?S(e,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[i]=l,u=(e,i)=>{for(var l in i||(i={}))A.call(i,l)&&m(e,l,i[l]);if(c)for(var l of c(i))E.call(i,l)&&m(e,l,i[l]);return e};import{a as n}from"./moreArrow.6e57d5cf.js";import{a as p,s as a}from"./index.3f4f8314.js";import{v as C}from"./index.4b3a4398.js";import{m as d}from"./index.6933dc64.js";import{h}from"./scrollbar.min.376c0fbf.js";import{d as N,Q as v,r as x,u as D,o as F,c as s,a as o,b as g}from"./index.5ba23dfc.js";import{s as b}from"./index.0284abce.js";import{b as w}from"./index.3c4f8aff.js";import{c as f}from"./titleDot.8a565ea2.js";import"./player.8b5ee2bb.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";import"./lineStart.6f5720eb.js";import"./index2.dced8a4d.js";import"./index2.6e223c07.js";var O=N({name:"musicLibrary",components:{albumItem:p,videoDetailItem:C,musicLIstItem:d,hotSearch:h,silder:v,searchInput:b,banner:w},setup(){const e=x({albumList:[],musicList:[]}),i=D(),l=async()=>{try{const t=await g.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});e.albumList=t.data.rows}catch(t){console.log(t)}},L=async()=>{try{const t=await g.post("/api-website/open/music/sheet/list",{data:{albumStatus:"PASS",page:1,rows:5,state:1}});e.musicList=t.data.rows}catch(t){console.log(t)}},r=t=>{typeof t=="string"?i.push({name:"searchdetail",params:{search:t}}):i.push({name:"searchdetail",params:u({},t)})},y=()=>{i.push({name:"searchdetail",params:{type:"music"}})},I=()=>{i.push({name:"searchdetail",params:{type:""}})};return F(()=>{l(),L()}),()=>s("div",null,[s(w,null,null),s("div",{class:"bg-white"},[s("div",{class:a.w1200},[s("div",{class:a.section},[s(b,{isWhile:!1,onStartSearch:t=>r(t)},null),s("div",{class:a.hotSearch},[s(h,{onHotTag:t=>{r(t)},type:""},null)]),s("div",{class:[a.videoNav,a.mt25]},[s("div",{class:a.titleWrap},[s("h5",{class:a.hotAlbum},[o("\u70ED\u95E8\u4E13\u8F91")]),s("img",{src:f,class:a.dotImg,alt:""},null)]),s("div",{class:a.wrapRight,onClick:()=>I()},[s("span",null,[o("\u66F4\u591A")]),s("img",{class:a.arrow,src:n,alt:""},null)])]),s("div",{class:a.albumList},[e.albumList.map(t=>s(p,{detail:t},null))])])])]),s("div",null,[s("div",{class:a.w1200},[s("div",{class:[a.section,a.pb40]},[s("div",{class:a.videoNav},[s("div",{class:a.titleWrap},[s("h5",null,[o("\u70ED\u95E8\u4E50\u8C31")]),s("img",{src:f,class:a.dotImg,alt:""},null)]),s("div",{class:a.wrapRight,onClick:()=>y()},[s("span",null,[o("\u66F4\u591A")]),s("img",{class:a.arrow,src:n,alt:""},null)])]),s("div",{class:a.musicList},[e.musicList.map(t=>s(d,{item:t},null))])])])]),s(v,null,null)])}});export{O as default};
