var z=Object.defineProperty,C=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var v=(s,e,i)=>e in s?z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i,l=(s,e)=>{for(var i in e||(e={}))V.call(e,i)&&v(s,i,e[i]);if(w)for(var i of w(e))P.call(e,i)&&v(s,i,e[i]);return s},c=(s,e)=>C(s,U(e));import{a as L,s as o}from"./index.4fdd9933.js";import{h as m}from"./scrollbar.min.1a8a8a0f.js";import{b as d,r as S}from"./index.1f84bfe1.js";import{s as u}from"./index.a6119bbf.js";import{P as h}from"./index.df62445e.js";import{C as p}from"./index.2d005e3b.js";import{d as f,r as g,o as b,t as I,c as a,u as _,V as y,S as E,n as x,C as N,D as T}from"./vendor.9f3c6e4d.js";import{a as W}from"./index.e6997d13.js";import{m as A}from"./index.c1ce529e.js";import"./moreArrow.6320b000.js";import"./hold.c2fff6ac.js";import"./lineStart.fb76406f.js";import"./player.8b5ee2bb.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";import"./lineStart.6f5720eb.js";var D=f({name:"searchdetail",components:{hotSearch:m,silder:d,searchInput:u,albumItem:L,pagination:h,ColEmpty:p},setup(){const s=g({albumList:[],musicList:[],search:{},isshowData:!1,pageInfo:{limit:40,page:1,total:0,page_size:[5,10,20,40,50]}}),e=async()=>{try{const t=await S.post("/api-website/open/music/album/list",{data:c(l({albumStatus:1},s.search),{page:s.pageInfo.page,rows:s.pageInfo.limit})});s.albumList=t.data.rows,s.pageInfo.total=t.data.total,s.pageInfo.total==0?s.isshowData=!0:s.isshowData=!1}catch(t){console.log(t)}},i=t=>{s.search=c(l({},t),{idAndName:t.search,subjectIds:t.subject}),s.pageInfo.page=1,e()};return b(()=>{}),c(l({},I(s)),{getList:i,getAlbumList:e})},render(){return a("div",null,[a("div",null,[a("div",{class:o.w1200},[a("div",{class:o.section},[a("div",{class:o.albumList},[this.albumList.map(s=>a(L,{detail:s},null))]),this.isshowData&&a(p,null,null)])])]),a(h,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":s=>this.pageInfo.page=s,limit:this.pageInfo.limit,"onUpdate:limit":s=>this.pageInfo.limit=s,pageSizes:this.pageInfo.page_size,pagination:this.getAlbumList},null)])}}),R=f({name:"searchMusic",components:{hotSearch:m,silder:d,searchInput:u,albumItem:W,musicListItem:A,pagination:h,ColEmpty:p},setup(){const s=g({musicList:[],search:{},isshowData:!1,pageInfo:{limit:10,page:1,total:0,page_size:[5,10,20,40,50]}}),e=async()=>{try{const t=await S.post("/api-website/open/music/sheet/list",{data:c(l({albumStatus:"PASS"},s.search),{page:s.pageInfo.page,rows:s.pageInfo.limit,state:1})});s.musicList=t.data.rows,s.pageInfo.total=t.data.total,s.pageInfo.total==0?s.isshowData=!0:s.isshowData=!1}catch(t){console.log(t)}},i=t=>{s.search={subjectIds:t.subject,musicTagIds:t.albumTagIds,idAndName:t.search},s.pageInfo.page=1,e()};return b(()=>{}),c(l({},I(s)),{getList:i,getMusicList:e})},render(){return a("div",null,[a("div",null,[a("div",{class:o.w1200},[a("div",{class:o.section},[a("div",{class:o.musicList},[this.musicList.map(s=>a(A,{item:s},null))])])]),this.isshowData&&a(p,null,null)]),a(h,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":s=>this.pageInfo.page=s,limit:this.pageInfo.limit,"onUpdate:limit":s=>this.pageInfo.limit=s,pageSizes:this.pageInfo.page_size,pagination:this.getMusicList},null)])}}),ts=f({name:"searchdetail",components:{hotSearch:m,silder:d,searchInput:u,searchAlbum:D,searchMusic:R},setup(){const s=g({albumList:[],musicList:[],chiose:"album",searchs:{albumTagIds:"",search:"",subject:""}}),e=_(),i=y(),t=y(),M=r=>{s.searchs.albumTagIds=r.join(","),j(s.searchs)},j=r=>{s.searchs=l(l({},s.searchs),r),n()},n=()=>{s.chiose=="album"&&i.value.getList(s.searchs),s.chiose=="music"&&t.value.getList(s.searchs)};return E(()=>s.chiose,r=>{console.log(r),x(()=>{n()})}),b(()=>{console.log(e.name),e.params.search&&(s.searchs.search=e.params.search),e.params.subject&&(s.searchs.subject=e.params.subject),e.params.type&&(s.chiose=e.params.type),x(()=>{n()})}),c(l({},I(s)),{startSearch:j,searchRust:M,searchAlbumRef:i,searchMusicRef:t,search:n})},render(){return a("div",null,[a("div",{class:""},[a("div",{class:"wall",style:{height:"60px"}},null),a("div",{class:o.w1200},[a("div",{class:o.section},[a(u,{isWhile:!0,searchVal:l({},this.searchs),onStartSearch:s=>{this.startSearch(s)}},null),a("div",{class:o.hotSearch},[a(m,{type:"search",onSearchRust:s=>this.searchRust(s),onHotTag:s=>{this.searchs.search=s,this.search()},isChiose:!0},null)]),a("div",{class:o.myTabWrap},[a(N,{class:o.myTab,modelValue:this.chiose,"onUpdate:modelValue":s=>this.chiose=s},{default:()=>[a(T,{label:"\u4E13\u8F91",name:"album"},{default:()=>[this.chiose=="album"?a(D,{ref:"searchAlbumRef"},null):null]}),a(T,{label:"\u4E50\u8C31",name:"music"},{default:()=>[this.chiose=="music"?a(R,{ref:"searchMusicRef"},null):null]})]})])])])])])}});export{ts as default};
