var U=Object.defineProperty,C=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var L=(s,e,i)=>e in s?U(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i,l=(s,e)=>{for(var i in e||(e={}))P.call(e,i)&&L(s,i,e[i]);if(v)for(var i of v(e))V.call(e,i)&&L(s,i,e[i]);return s},c=(s,e)=>C(s,N(e));import{a as S,s as o}from"./index.3f4f8314.js";import{h as m}from"./scrollbar.min.376c0fbf.js";import{d as g,Q as f,r as d,o as b,$ as I,c as a,b as j,e as _,f as y,w as x,n as T,aM as E,aN as R}from"./index.5ba23dfc.js";import{s as h}from"./index.0284abce.js";import{P as u}from"./index.0742258e.js";import{C as p}from"./index.c1f08369.js";import{a as W}from"./index.65f1170f.js";import{m as A}from"./index.6933dc64.js";import"./moreArrow.6e57d5cf.js";import"./index2.dced8a4d.js";import"./index2.6e223c07.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=g({name:"searchdetail",components:{hotSearch:m,silder:f,searchInput:h,albumItem:S,pagination:u,ColEmpty:p},setup(){const s=d({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 j.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}),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(S,{detail:s},null))]),this.isshowData&&a(p,null,null)])])]),a(u,{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)])}}),M=g({name:"searchMusic",components:{hotSearch:m,silder:f,searchInput:h,albumItem:W,musicListItem:A,pagination:u,ColEmpty:p},setup(){const s=d({musicList:[],search:{},isshowData:!1,pageInfo:{limit:10,page:1,total:0,page_size:[5,10,20,40,50]}}),e=async()=>{try{const t=await j.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(u,{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)])}}),is=g({name:"searchdetail",components:{hotSearch:m,silder:f,searchInput:h,searchAlbum:D,searchMusic:M},setup(){const s=d({albumList:[],musicList:[],chiose:"album",searchs:{albumTagIds:"",search:"",subject:""}}),e=_(),i=y(),t=y(),z=r=>{s.searchs.albumTagIds=r.join(","),w(s.searchs)},w=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 x(()=>s.chiose,r=>{console.log(r),T(()=>{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),T(()=>{n()})}),c(l({},I(s)),{startSearch:w,searchRust:z,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(h,{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(E,{class:o.myTab,modelValue:this.chiose,"onUpdate:modelValue":s=>this.chiose=s},{default:()=>[a(R,{label:"\u4E13\u8F91",name:"album"},{default:()=>[this.chiose=="album"?a(D,{ref:"searchAlbumRef"},null):null]}),a(R,{label:"\u4E50\u8C31",name:"music"},{default:()=>[this.chiose=="music"?a(M,{ref:"searchMusicRef"},null):null]})]})])])])])])}});export{is as default};
