index.322815ef.js 8.2 KB

1
  1. var I=Object.defineProperty;var b=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var A=(e,o,l)=>o in e?I(e,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[o]=l,d=(e,o)=>{for(var l in o||(o={}))T.call(o,l)&&A(e,l,o[l]);if(b)for(var l of b(o))y.call(o,l)&&A(e,l,o[l]);return e};import{a as v}from"./index.378ca988.js";import{v as M}from"./index.e4ce1a82.js";import{m as W}from"./index.1fcf44c2.js";import{c as w}from"./titleDot.8a565ea2.js";import{h as C}from"./scrollbar.min.aade0215.js";import{b as _}from"./index.ebe36c35.js";import{t as n,a as f}from"./moreArrow.76b537ec.js";import{r as m,g as Z}from"./index.ec43d267.js";import{d as D,r as F,f as B,o as U,c as s,a as c,w as R,F as S}from"./vendor.1514baa4.js";import"./hold.c2fff6ac.js";import"./lineStart.fb76406f.js";import"./player.8b5ee2bb.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";import"./icon_album_active.66672e6b.js";const N="_title_9ts49_1",E="_w1200_9ts49_5",G="_section_9ts49_9",H="_titleWrap_9ts49_12",k="_titleWrapLeft_9ts49_20",J="_dotImg_9ts49_26",Y="_titleWrapMore_9ts49_37",j="_hotAlbum_9ts49_59",x="_albumMoudel_9ts49_62",P="_albumWrap_9ts49_66",Q="_line_9ts49_70",X="_albumList_9ts49_79",O="_albumSearch_9ts49_85",z="_inputWrap_9ts49_90",q="_searchIcon_9ts49_93",K="_chioseRow_9ts49_128",V="_chioseTagWrap_9ts49_131",$="_videoList_9ts49_141",ss="_videoNav_9ts49_148",as="_wrapRight_9ts49_161",ts="_arrow_9ts49_170",es="_mb48_9ts49_175",is="_mb32_9ts49_178",os="_pt41_9ts49_181";var a={title:N,w1200:E,section:G,titleWrap:H,titleWrapLeft:k,dotImg:J,titleWrapMore:Y,hotAlbum:j,albumMoudel:x,albumWrap:P,line:Q,albumList:X,albumSearch:O,inputWrap:z,searchIcon:q,chioseRow:K,chioseTagWrap:V,videoList:$,videoNav:ss,wrapRight:as,arrow:ts,mb48:es,mb32:is,pt41:os},ls="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAACA1JREFUaEPVWW1wVOUVfs7dzRchaBypjKMQIWpZdjf4QfYmaapgAy1+YG32RoLaYaCdsS1tUaZT/5T0l21VcNCZtiPilJZC7oIUZqAw7RAacHfzQQ1718hHSvGjrRJqtAQSsnvv6dzNhJK97967m8QMfX/uOed5n+e978c5ZwnjGJ6o6nEZWMQSLyDQHQzMIkYJQIUMvkTAZwDOgOgEsRExXMaheOXyD8YxpSWUcgXztKszXDqtBvGTYNyRUzwRA9xGjK2YMrg1VvHUxZziBc5ZCyhvVacX5eEnAFYBKBrvxEw4D9CG/oH+jWcXrhwcK15WAvxtodVs8M8B3DDWiWziegB+Wqtq+PNYsG0FlEd/N60I+ZvBCI4FPNsYBgwAz8c/wHooip5tnOmXUcDwXucDAFXkAjhO390DN05d3nP70svZ4ggFeKN7bgJfPkpAuSMQ0afEOGQQwiCclAzq1aXkIOmuYon5ZnbRXIBrYeDLIBQ44gF/0kvwULdXGcrC1/oFPHF1qusC/gLgblsAok5mfrF/8OKebA6h78i2UuQXrAAbz4JRZofNxDvigYZGENhJhOUL+CLqNgCNNoHnwFirVSu/dwIX2T2qmu+aiWeYsZ6AwkwYTLQuLgdfcppjlAB/OPQUE/8mMyi6jASWddcq7zsBO9n90V0ys74bwIwMvkMSS/Lx6vq37bCuCEh9Ynf+CYC/IAwg7KOiwYaJeHxG8L3t228lw/1HMM/LMGdECwRrkHoAxeOKAH809AIzrxO5MaGrwF1Uc+zehy85rWyu9vmR3WVJJDoIuFEUSxI3xgIN220FeMLqDS7gPRCmWhwZvUlOLHi3ZsV7uZLL1r8i2rzQYDoIIE8Qo2myUpHpQKe+gDcaWkfML4hXQGqMBeozrkC2JJ38/JHmFxn0rJgDHogFlENCm/mj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fZTsYjKOQsB86h9mln4wHTvWCmoz7W1rc59y9N1O+NJcMo5YYj2Y6qGkz9NAUd02s4rFzTqs/6hZKd67oUCt1HfuIxR0zG3CzDZgAkJ8Ngat9iOgdMnjJ8WrlH74j22YjL29TgtzfPBF47N9ZHeJ0J3+Heicn8SYAT65kcvUnwsGkgcbuauWT4XZj8jCBZwF8XGdaZP4uwnT8j8x/cGsxX1do5ierwZByJZaF/wBAP9Xk+l+Y78zcv+6a5b6sHx6dUtDbOvNXRCIcBYwQ8IZD1SDeKKodsiApcmEQ9rBurBu5CDyd6kxXAib52ywBhGNIJOq02hV9o7ZdrpN7o2odGGsI+GqGZqwT5AUAu5ikjXG5Pna1sy/SvAmgNTa3U6drIK+ua+HXP7W9hZwYmPa7WtXpyTw8yMQLiWkBgDnCg0u4CKZTIIQlxiF3XuGBTG361DuULFVh3lgZBhHa+91YfOZexeymZP6XMhsRo3xamtz+It+MJPRpbjYK4ZYuJhmfdS8IfpxLDnVPZ2feUOKM2ZV4xIZD2wANLe6Rn/hP1mcgZ0HjCPDE1Xz3BdrFYEsRfwWWEBlKFiy5JgWYJMv3byooKp1hXuFLbdbiwDUrICXi9P6CovP9f8DwhZE26ILhlr52TQswGZe1vFE4taB4DxEWX6WgnyRaGgsEj1zzAlIi/t5SWPJx714w6gDzVsODI82G/wsBpohbwmrR9YRmuGlDfEHQfOxS47+y8wc8/IF7YgAAAABJRU5ErkJggg==",Ls=D({name:"home",components:{albumItem:v,videoDetailItem:M,musicLIstItem:W,hotSearch:C,banner:_,tagItem:n},setup(){const e=F({albumList:[],videoList:[],search:"",tagTree:[],tagTreeAlbum:[],hotList:[],musicList:[]}),o=B(),l=async()=>{try{const t=await m.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:8},params:{clientType:Z()}});e.albumList=t.data.rows}catch(t){console.log(t)}},L=async()=>{try{const t=await m.post("/api-website/open/music/sheet/list",{data:{albumStatus:"PASS",exquisiteFlag:1,page:1,rows:5,state:1}});e.musicList=t.data.rows.map(i=>(typeof i.paymentType=="string"&&(i.paymentType=i.paymentType.split(",")),i))}catch(t){console.log(t)}},g=(t,i="music")=>{o.push({name:i==="music"?"musicLibrary":"albumibrary",query:{search:t}})},h=async(t="MUSIC")=>{try{const i=await m.get("/api-website/open/MusicTag/tree",{params:{type:t}});if(t==="MUSIC"){const r=await m.get(`/api-website/open/music/sheet/hotTag/${t}`);e.hotList=p(r.data||[]),e.tagTree=p(i.data||[])}else e.tagTreeAlbum=p(i.data||[])}catch(i){console.log(i)}},p=(t,i=6)=>t.splice(0,i),u=(t,i)=>{if(i==="album"||i==="albumTag"){const r={};i==="album"?r.albumTagIds=t.id:r.search=t,o.push({name:"albumibrary",query:d({},r)})}else if(i==="music"||i==="musicHot"){const r={};i==="music"?r.musicTagIds=t.id:r.search=t.key,o.push({name:"musicLibrary",query:d({},r)})}};return U(()=>{l(),L(),h(),h("ALBUM")}),()=>s("div",null,[s(_,null,null),s("div",{class:"bg-white"},[s("div",{class:a.w1200},[s("div",{class:a.section},[s("div",{class:a.albumMoudel},[s("div",{class:a.albumWrap},[s("div",{class:[a.titleWrap,a.hotAlbum]},[s("div",{class:[a.titleWrapLeft]},[s("h4",null,[c("\u70ED\u95E8\u4E13\u8F91")]),s("img",{src:w,class:a.dotImg,alt:""},null)]),s("div",{class:[a.titleWrapMore],onClick:()=>g("","album")},[s("span",null,[c("\u66F4\u591A")]),s("img",{src:f,alt:""},null)])]),s("div",{class:a.albumList},[e.albumList.map(t=>s(v,{detail:t},null))]),s("div",{class:a.line},null)]),s("div",{class:a.albumSearch},[s("div",{class:a.inputWrap},[s("img",{src:ls,class:a.searchIcon,onClick:()=>u(e.search,"albumTag"),alt:""},null),s(R,{placeholder:"\u641C\u7D22\u4F60\u60F3\u8981\u7684\u4E13\u8F91",modelValue:e.search,"onUpdate:modelValue":t=>e.search=t},null)]),s("div",{class:a.chioseLineWrap},[s("div",{class:a.chioseRow},[s("p",null,[c("\u4E13\u8F91\u5206\u7C7B\uFF1A")]),s("div",{class:[a.chioseTagWrap,"chioseTagWrap"]},[e.tagTreeAlbum.map(t=>s(n,{class:a.tags,title:t.name,onSearchTag:()=>{u(t,"album")}},null))])])])])])]),e.musicList&&e.musicList.length>0&&s(S,null,[s("div",{class:[a.section,a.pb40],style:"padding-top: 0"},[s("div",{class:a.albumMoudel},[s("div",{class:a.albumWrap,style:"padding-right: 25px"},[s("div",{class:[a.titleWrap,a.hotAlbum]},[s("div",{class:[a.titleWrapLeft]},[s("h4",null,[c("\u7CBE\u54C1\u4E50\u8C31")]),s("img",{src:w,class:a.dotImg,alt:""},null)]),s("div",{class:[a.titleWrapMore],onClick:()=>g("")},[s("span",null,[c("\u66F4\u591A")]),s("img",{src:f,alt:""},null)])]),s("div",{class:a.musicList},[e.musicList.map(t=>s(W,{item:t},null))]),s("div",{class:a.line},null)]),s("div",{class:a.albumSearch},[s("div",{class:a.chioseLineWrap},[s("div",{class:a.chioseRow,style:"margin-top: 0"},[s("p",null,[c("\u66F2\u8C31\u5206\u7C7B\uFF1A")]),s("div",{class:[a.chioseTagWrap,"chioseTagWrap"]},[e.tagTree.map(t=>s(n,{class:a.tags,title:t.name,onSearchTag:()=>{u(t,"music")}},null))])]),s("div",{class:a.chioseRow},[s("p",null,[c("\u70ED\u95E8\u641C\u7D22\uFF1A")]),s("div",{class:[a.chioseTagWrap,"chioseTagWrap"]},[e.hotList.map(t=>s(n,{class:a.tags,title:t.key,onSearchTag:()=>{u(t,"musicHot")}},null))])])])])])])])])])])}});export{Ls as default};