import{T as p}from"./index.2b966bc9.js";import{T as d}from"./index.c4427c7f.js";import{o as y}from"./oStart.17994e8a.js";import{T as g,r as h}from"./request.c9d640e0.js";import{T as _}from"./index.5b67253a.js";import{d as b,w as C,k as f,G as v,r as A,F as T,c as s,V as o,J as w,W as N,u as Y}from"./index.c0642b2f.js";import{T as B,H as O}from"./index.5c354d69.js";import"./icon-search.f54aed7d.js";import"./index.64ba8ec5.js";import"./index.5c52378e.js";import"./index.d5aad622.js";import"./_commonjsHelpers.c10bf6cb.js";const L="_header_yngy1_1",E="_bgImg_yngy1_8",I="_musicContent_yngy1_17",V="_bg_yngy1_8",z="_alumWrap_yngy1_31",R="_img_yngy1_35",S="_alumTitle_yngy1_43",x="_alumDes_yngy1_48",G="_des_yngy1_51",M="_tags_yngy1_54",D="_tag_yngy1_54",J="_alumCollect_yngy1_64",P="_right_yngy1_77",Q="_alumnContainer_yngy1_80",X="_alumnList_yngy1_86",t={header:L,bgImg:E,musicContent:I,bg:V,alumWrap:z,img:R,alumTitle:S,alumDes:x,des:G,tags:M,tag:D,alumCollect:J,right:P,alumnContainer:Q,alumnList:X},H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0xJREFUSEvtlk1sVGUUhp/3zl9J1IKIphpcGDUmA1RbYWcsiTEggjPFMWJM3BhwZUyMP5DY+agbURMJO0hYGdlMpTVGWLipuINMI9OS4AaCC9NYaOpPrG3vvcfcO0NDyjg/bY0b7+5+Ofc857znfOdc8S881ueSrAuykOgFesB6QVlgSCvlWe/+FBvvz+KpN3ZskXO2AB11fPttAa3g0gRswsIo4h4ggmwBZRoEPg82C+pEhA2Bttc9hoVPx84tyoBNYE2cMwEqI5XBH2N2pkLm7o8QbzUE2t7BJwiD80CyfvQ2hzSOqYwxBkGZVGJcJTe/1N5yxc+aA3MD+5BO1T7+C6gAY3Hk8sqsv29CJw4stNID7QMVbtPpDy+04ryeTftASzypkYHyfw60nccypCbXkkh34gedpIKA6XRFo86/NbgVZWj9h7oItZEwEbX57XdtwbugM25yVYAGYs/AcwjvNnmDcA5PU2QuV1QqBasCjJzY8x90k7ANoN8xm8FP/sqfzGjURZ1c91mRpMtpnP+BsWp266Rp4x7aTncXHXYQ6AfuBa7UytDTeJYuA2iF9zrx13wPtrlurRtti+VkaP3uC8xeqcJ0EcIfwHsG7IHq0ZL1FE+OzHQXKa6zEO5eHN4tSGp7jtxJYvYGWAr0Ld3skHOh7Xp/HemOS2BdYBbvQ8sfXA+ZT4CXwdaARRf3CuiRakGbz1LLu2hXjlftvdc1Ujx5U1bLu1Ng+0AmK7g78O276r/HP93cloBRg0yCCXFCpw8fiNmFQgI/WwbrBrshy7lPkb1dQ51DGia0rYhaLVrLsKqUOwf2VCQd6CTYedCLwLO1Gh6V5YrXEA/GCzaZ7VHppXgOWr74OfBqVSJt14gbbTZlrOAexrdob66tY1thfq5Pli/OAWnQcQ27NxZ1zxXfRRyJ30Pt0lfuTDNgHNsLg5vxgmNg0b+QMHzEEMnMmyodmoqAPwKPIq4yq8d11v0Wb4V8MQLsAHxMGzTiZloBLga8291DR3zxf1LJ/XHzXJYfeAf0ce0g6syzYNuArbWzIQ0fLrQDa2Qrc87jon1Ty2aJrS7h06ev3fVVA8a67z+eYurnqFNfAx4CfgF9SZJBldz0asEiP38DJuSfuh82O50AAAAASUVORK5CYII=",ls=b({name:"musicAlumn",setup(){const u=Y(),c=N();C(u,()=>{window.scrollTo({top:0}),r()});const a=f({}),r=async()=>{var e,l;try{const{data:n}=await h.post("/api-website/open/music/album/detail",{data:{id:u.query.id,page:1,rows:4}});Object.assign(a,n,{musicTagNames:((e=n==null?void 0:n.musicTagNames)==null?void 0:e.split(","))||[],musicSheetList:((l=n.musicSheetList)==null?void 0:l.rows)||[]})}catch{}};v(()=>{r()});const i=A(!0),m=A(0);return T("scroll",()=>{const e=document.body.scrollTop||document.documentElement.scrollTop;i.value=!(e>55),m.value=e/55}),()=>{var e;return s(w,null,[s(p,{style:{background:`rgba(255,255,255,${m.value})`},class:t.header,theme:i.value?"dark":"light"},null),s("img",{class:t.bgImg,src:a.albumCoverUrl},null),s("div",{class:t.musicContent},[s("div",{class:t.bg},[s("div",{class:t.alumWrap},[s("div",{class:t.img},[s(d,{src:a.albumCoverUrl},null)]),s("div",{class:t.alumDes},[s("div",{class:[t.alumTitle,"van-ellipsis"]},[a.albumName]),s("div",{class:t.tags},[(e=a.musicTagNames)==null?void 0:e.map(l=>s("span",{class:t.tag},[l]))]),s("div",{class:[t.des,"van-multi-ellipsis--l3"]},[a.albumDesc])])]),s("div",{class:t.alumCollect},[s("img",{src:H},null),s("span",null,[o("\u5171"),a.musicSheetCount,o("\u9996\u66F2\u76EE")]),s("img",{class:t.right,src:y},null),s("span",null,[a.albumFavoriteCount,o("\u4EBA\u6536\u85CF")])])])]),s("div",{class:t.alumnContainer},[s("div",{class:t.alumnList},[s(g,{title:"\u66F2\u76EE\u5217\u8868",isMore:!1},null),s(_,{list:a.musicSheetList},null)]),s(g,{title:"\u76F8\u5173\u4E13\u8F91",onMore:()=>{c.push({path:"/search"})}},null),s(B,{list:a.relatedMusicAlbum,onGoto:l=>c.push({path:"/musicAlum",query:{id:l.id}})},null),s(O,null,null)])])}}});export{ls as default};
