import{a as r}from"./moreArrow.ca552872.js";import{a as c,s as a}from"./index.7a559a99.js";import{v as L}from"./index.85008e9c.js";import{m}from"./index.579e2e8e.js";import{h as u}from"./scrollbar.min.88239d43.js";import{d as y,Q as n,r as I,u as S,o as A,c as s,a as l,b as p}from"./index.2bf82915.js";import{s as d}from"./index.fe35ea43.js";import{b as h}from"./index.4c3cdc50.js";import{c as v}from"./titleDot.1048f20f.js";import"./player.ee188b71.js";import"./icon.10668985.js";import"./music.a3f72636.js";import"./lineStart.aab24801.js";import"./index2.ec9f8409.js";import"./index2.1af0183f.js";const Q=y({name:"musicLibrary",components:{albumItem:c,videoDetailItem:L,musicLIstItem:m,hotSearch:u,silder:n,searchInput:d,banner:h},setup(){const i=I({albumList:[],musicList:[]}),e=S(),g=async()=>{try{const t=await p.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});i.albumList=t.data.rows}catch(t){console.log(t)}},b=async()=>{try{const t=await p.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)}},o=t=>{typeof t=="string"?e.push({name:"searchdetail",params:{search:t}}):e.push({name:"searchdetail",params:{...t}})},w=()=>{e.push({name:"searchdetail",params:{type:"music"}})},f=()=>{e.push({name:"searchdetail",params:{type:""}})};return A(()=>{g(),b()}),()=>s("div",null,[s(h,null,null),s("div",{class:"bg-white"},[s("div",{class:a.w1200},[s("div",{class:a.section},[s(d,{isWhile:!1,onStartSearch:t=>o(t)},null),s("div",{class:a.hotSearch},[s(u,{onHotTag:t=>{o(t)},type:""},null)]),s("div",{class:[a.videoNav,a.mt25]},[s("div",{class:a.titleWrap},[s("h5",{class:a.hotAlbum},[l("\u70ED\u95E8\u4E13\u8F91")]),s("img",{src:v,class:a.dotImg,alt:""},null)]),s("div",{class:a.wrapRight,onClick:()=>f()},[s("span",null,[l("\u66F4\u591A")]),s("img",{class:a.arrow,src:r,alt:""},null)])]),s("div",{class:a.albumList},[i.albumList.map(t=>s(c,{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,[l("\u70ED\u95E8\u4E50\u8C31")]),s("img",{src:v,class:a.dotImg,alt:""},null)]),s("div",{class:a.wrapRight,onClick:()=>w()},[s("span",null,[l("\u66F4\u591A")]),s("img",{class:a.arrow,src:r,alt:""},null)])]),s("div",{class:a.musicList},[i.musicList.map(t=>s(m,{item:t},null))])])])]),s(n,null,null)])}});export{Q as default};
