1 |
- var C=Object.defineProperty;var p=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var d=(e,i,l)=>i in e?C(e,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[i]=l,b=(e,i)=>{for(var l in i||(i={}))F.call(i,l)&&d(e,l,i[l]);if(p)for(var l of p(i))N.call(i,l)&&d(e,l,i[l]);return e};import{a as h}from"./moreArrow.6320b000.js";import{a as g,s as t}from"./index.5c9e1dc5.js";import{v as D}from"./index.2525db3c.js";import{m as j}from"./index.02c316a5.js";import{h as v}from"./scrollbar.min.597a9b94.js";import{b as f,c as R,r as y,g as M}from"./index.6a4e44aa.js";import{s as w,u as W,S as k}from"./index.ab55cb2c.js";import{b as L}from"./index.aca50d03.js";import{c as I}from"./titleDot.8a565ea2.js";import{d as H,r as V,f as _,o as q,c as s,F as S,a as u}from"./vendor.9f3c6e4d.js";import"./player.8b5ee2bb.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";import"./lineStart.6f5720eb.js";import"./icon_album_active.66672e6b.js";var es=H({name:"musicLibrary",components:{albumItem:g,videoDetailItem:D,musicLIstItem:j,hotSearch:v,silder:f,searchInput:w,banner:L},setup(){var n;let e=0;const i=((n=R.user.data)==null?void 0:n.subjectId)||"";i&&(e=Number(i.split(",")[0])),e=W(k.SEARCH).id||e;const c=V({albumList:[],musicList:[]}),r=_(),x=async()=>{try{const a=await y.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,subjectIds:e||null,rows:10},params:{clientType:M()}});c.albumList=a.data.rows}catch(a){console.log(a)}},A=async()=>{try{const a=await y.post("/api-website/open/music/sheet/list",{data:{albumStatus:"PASS",subjectIds:e||null,page:1,rows:5,state:1}});c.musicList=a.data.rows.map(o=>(typeof o.paymentType=="string"&&(o.paymentType=o.paymentType.split(",")),o))}catch(a){console.log(a)}},m=a=>{typeof a=="string"?r.push({name:"searchdetail",params:{search:a}}):r.push({name:"searchdetail",params:b({},a)})},E=()=>{r.push({name:"searchdetail",params:{type:"music"}})},T=()=>{r.push({name:"searchdetail",params:{type:""}})};return q(()=>{x(),A()}),()=>s("div",null,[s(L,null,null),s("div",{class:"bg-white"},[s("div",{class:t.w1200},[s("div",{class:t.section},[s(w,{isWhile:!1,type:"search",onStartSearch:a=>m(a)},null),s("div",{class:t.hotSearch},[s(v,{onHotTag:a=>{m(a)},type:""},null)]),c.albumList&&c.albumList.length>0&&s(S,null,[s("div",{class:[t.videoNav,t.mt25]},[s("div",{class:t.titleWrap},[s("h5",{class:t.hotAlbum},[u("\u70ED\u95E8\u4E13\u8F91")]),s("img",{src:I,class:t.dotImg,alt:""},null)]),s("div",{class:t.wrapRight,onClick:()=>T()},[s("span",null,[u("\u66F4\u591A")]),s("img",{class:t.arrow,src:h,alt:""},null)])]),s("div",{class:t.albumList},[c.albumList.map(a=>s(g,{detail:a},null))])])])])]),s("div",null,[s("div",{class:t.w1200},[c.musicList&&c.musicList.length>0&&s(S,null,[s("div",{class:[t.section,t.pb40],style:"padding-top: 0"},[s("div",{class:t.videoNav},[s("div",{class:t.titleWrap},[s("h5",null,[u("\u70ED\u95E8\u4E50\u8C31")]),s("img",{src:I,class:t.dotImg,alt:""},null)]),s("div",{class:t.wrapRight,onClick:()=>E()},[s("span",null,[u("\u66F4\u591A")]),s("img",{class:t.arrow,src:h,alt:""},null)])]),s("div",{class:t.musicList},[c.musicList.map(a=>s(j,{item:a},null))])])])])]),s(f,null,null)])}});export{es as default};
|