var S=Object.defineProperty;var c=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var m=(i,e,l)=>e in i?S(i,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[e]=l,n=(i,e)=>{for(var l in e||(e={}))x.call(e,l)&&m(i,l,e[l]);if(c)for(var l of c(e))I.call(e,l)&&m(i,l,e[l]);return i};import{a as u}from"./moreArrow.6320b000.js";import{a as d,s as a}from"./index.4fdd9933.js";import{v as A}from"./index.2525db3c.js";import{m as p}from"./index.c1ce529e.js";import{h as b}from"./scrollbar.min.1a8a8a0f.js";import{b as h,r as f}from"./index.1f84bfe1.js";import{s as v}from"./index.a6119bbf.js";import{b as g}from"./index.d1dbbf58.js";import{c as w}from"./titleDot.8a565ea2.js";import{d as E,r as C,f as D,o as N,c as s,a as o}from"./vendor.9f3c6e4d.js";import"./player.8b5ee2bb.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";import"./lineStart.6f5720eb.js";var O=E({name:"musicLibrary",components:{albumItem:d,videoDetailItem:A,musicLIstItem:p,hotSearch:b,silder:h,searchInput:v,banner:g},setup(){const i=C({albumList:[],musicList:[]}),e=D(),l=async()=>{try{const t=await f.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});i.albumList=t.data.rows}catch(t){console.log(t)}},j=async()=>{try{const t=await f.post("/api-website/open/music/sheet/list",{data:{albumStatus:"PASS",page:1,rows:5,state:1}});i.musicList=t.data.rows}catch(t){console.log(t)}},r=t=>{typeof t=="string"?e.push({name:"searchdetail",params:{search:t}}):e.push({name:"searchdetail",params:n({},t)})},L=()=>{e.push({name:"searchdetail",params:{type:"music"}})},y=()=>{e.push({name:"searchdetail",params:{type:""}})};return N(()=>{l(),j()}),()=>s("div",null,[s(g,null,null),s("div",{class:"bg-white"},[s("div",{class:a.w1200},[s("div",{class:a.section},[s(v,{isWhile:!1,onStartSearch:t=>r(t)},null),s("div",{class:a.hotSearch},[s(b,{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:w,class:a.dotImg,alt:""},null)]),s("div",{class:a.wrapRight,onClick:()=>y()},[s("span",null,[o("\u66F4\u591A")]),s("img",{class:a.arrow,src:u,alt:""},null)])]),s("div",{class:a.albumList},[i.albumList.map(t=>s(d,{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:w,class:a.dotImg,alt:""},null)]),s("div",{class:a.wrapRight,onClick:()=>L()},[s("span",null,[o("\u66F4\u591A")]),s("img",{class:a.arrow,src:u,alt:""},null)])]),s("div",{class:a.musicList},[i.musicList.map(t=>s(p,{item:t},null))])])])]),s(h,null,null)])}});export{O as default};
