var q=Object.defineProperty,z=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var L=(s,e,i)=>e in s?q(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i,c=(s,e)=>{for(var i in e||(e={}))C.call(e,i)&&L(s,i,e[i]);if(v)for(var i of v(e))P.call(e,i)&&L(s,i,e[i]);return s},l=(s,e)=>z(s,U(e));import{s as o}from"./index.module.540e88f3.js";import{h as u}from"./index.f5f8a26b.js";import{a as d,r as y}from"./index.2553a511.js";import{s as h}from"./index.b42569d6.js";import{a as g}from"./scrollbar.min.b0af3ace.js";import{P as m}from"./index.1ced1a36.js";import{C as p}from"./index.83a2d91c.js";import{d as f,r as b,o as I,t as j,c as a,u as V,U as S,P as _,n as x,C as E,D as T}from"./vendor.925c905e.js";import{M as D}from"./index.48498ec4.js";import"./index.ef6e00b3.js";import"./hot.5fc25a45.js";import"./arrow.15dbd454.js";import"./pan.47bc7f75.js";import"./start.1edc8c81.js";import"./icon.6e6f91da.js";import"./music.f2b8674a.js";var M=f({name:"searchdetail",components:{hotSearch:u,silder:d,searchInput:h,albumItem:g,pagination:m,ColEmpty:p},setup(){const s=b({albumList:[],musicList:[],search:{},isshowData:!1,pageInfo:{limit:10,page:1,total:0,page_size:[5,10,20,40,50]}}),e=async()=>{try{const t=await y.post("/api-website/open/music/album/list",{data:l(c({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=l(c({},t),{idAndName:t.search}),s.pageInfo.page=1,e()};return I(()=>{}),l(c({},j(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(g,{detail:s},null))]),this.isshowData&&a(p,null,null)])])]),a(m,{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:u,silder:d,searchInput:h,albumItem:g,musicListItem:D,pagination:m,ColEmpty:p},setup(){const s=b({musicList:[],search:{},isshowData:!1,pageInfo:{limit:10,page:1,total:0,page_size:[5,10,20,40,50]}}),e=async()=>{try{const t=await y.post("/api-website/open/music/sheet/list",{data:l(c({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 I(()=>{}),l(c({},j(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(D,{item:s},null))])])]),this.isshowData&&a(p,null,null)]),a(m,{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)])}}),es=f({name:"searchdetail",components:{hotSearch:u,silder:d,searchInput:h,searchAlbum:M,searchMusic:R},setup(){const s=b({albumList:[],musicList:[],chiose:"album",searchs:{albumTagIds:"",search:"",subject:""}}),e=V(),i=S(),t=S(),A=r=>{s.searchs.albumTagIds=r.join(","),w(s.searchs)},w=r=>{s.searchs=c(c({},s.searchs),r),n()},n=()=>{s.chiose=="album"&&i.value.getList(s.searchs),s.chiose=="music"&&t.value.getList(s.searchs)};return _(()=>s.chiose,r=>{console.log(r),x(()=>{n()})}),I(()=>{e.query.search&&(s.searchs.search=e.query.search),e.query.subject&&(s.searchs.subject=e.query.subject),e.query.type&&(s.chiose=e.query.type),x(()=>{n()})}),l(c({},j(s)),{startSearch:w,searchRust:A,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:c({},this.searchs),onStartSearch:s=>{this.startSearch(s)}},null),a("div",{class:o.hotSearch},[a(u,{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(T,{label:"\u4E13\u8F91",name:"album"},{default:()=>[this.chiose=="album"?a(M,{ref:"searchAlbumRef"},null):null]}),a(T,{label:"\u4E50\u8C31",name:"music"},{default:()=>[this.chiose=="music"?a(R,{ref:"searchMusicRef"},null):null]})]})])])])])])}});export{es as default};
