var g=Object.defineProperty;var l=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var u=(e,a,i)=>a in e?g(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i,n=(e,a)=>{for(var i in a||(a={}))L.call(a,i)&&u(e,i,a[i]);if(l)for(var i of l(a))y.call(a,i)&&u(e,i,a[i]);return e};import{a as x}from"./arrow.15dbd454.js";import{s as o}from"./index.module.540e88f3.js";import{a as m}from"./scrollbar.min.b0af3ace.js";import{v as S}from"./index.f34fadda.js";import{M as d}from"./index.48498ec4.js";import{h as p}from"./index.f5f8a26b.js";import{a as f,r as h}from"./index.2553a511.js";import{s as b}from"./index.b42569d6.js";import{b as v}from"./index.0e34f136.js";import{d as I,r as E,f as M,o as q,c as s,a as r}from"./vendor.925c905e.js";import"./pan.47bc7f75.js";import"./start.1edc8c81.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";import"./index.ef6e00b3.js";import"./hot.5fc25a45.js";var O=I({name:"musicLibrary",components:{albumItem:m,videoDetailItem:S,musicLIstItem:d,hotSearch:p,silder:f,searchInput:b,banner:v},setup(){const e=E({albumList:[],musicList:[]}),a=M(),i=async()=>{try{const t=await h.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});e.albumList=t.data.rows}catch(t){console.log(t)}},j=async()=>{try{const t=await h.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)}},c=t=>{typeof t=="string"?a.push({path:"/searchdetail",query:{search:t}}):a.push({path:"/searchdetail",query:n({},t)})},w=()=>{a.push({path:"/searchdetail",query:{type:"music"}})};return q(()=>{i(),j()}),()=>s("div",null,[s(v,null,null),s("div",{class:"bg-white"},[s("div",{class:o.w1200},[s("div",{class:o.section},[s(b,{isWhile:!1,onStartSearch:t=>c(t)},null),s("div",{class:o.hotSearch},[s(p,{onHotTag:t=>{c(t)},type:"more"},null)]),s("h5",{class:o.hotAlbum},[r("\u70ED\u95E8\u4E13\u8F91")]),s("div",{class:o.albumList},[e.albumList.map(t=>s(m,{detail:t},null))])])])]),s("div",null,[s("div",{class:o.w1200},[s("div",{class:o.section},[s("div",{class:o.videoNav},[s("h5",null,[r("\u70ED\u95E8\u4E50\u8C31")]),s("div",{class:o.wrapRight,onClick:()=>w()},[s("span",null,[r("\u66F4\u591A")]),s("img",{class:o.arrow,src:x,alt:""},null)])]),s("div",{class:o.musicList},[e.musicList.map(t=>s(d,{item:t},null))])])])]),s(f,null,null)])}});export{O as default};
