import{s as o,a as i}from"./index.6d4249f3.js";import{h as n,a as u}from"./scrollbar.min.4ed2ea32.js";import{d as m,s as r,r as g,o as d,c as t,b as c,av as w,aw as b}from"./index.f06d32fc.js";import{P as p}from"./index.30eaa118.js";import{M as f}from"./index.a27a980a.js";import"./index2.b94ac0d9.js";import"./index2.d2718ad2.js";var h=m({name:"searchdetail",components:{hotSearch:n,silder:r,searchInput:o,albumItem:u,pagination:p},setup(){const a=g({albumList:[],musicList:[],pageInfo:{limit:5,page:1,total:0,page_size:[10,20,40,50]}}),l=async()=>{try{const s=await c.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:a.pageInfo.page,rows:a.pageInfo.limit}});a.albumList=s.data.rows,a.pageInfo.total=s.data.total}catch(s){console.log(s)}};return d(()=>{l()}),()=>t("div",null,[t("div",null,[t("div",{class:i.w1200},[t("div",{class:i.section},[t("div",{class:i.albumList},[a.albumList.map(s=>t(u,{detail:s},null))])])])]),t(p,{total:a.pageInfo.total,page:a.pageInfo.page,"onUpdate:page":s=>a.pageInfo.page=s,limit:a.pageInfo.limit,pageSizes:a.pageInfo.page_size,pagination:l},null)])}}),I=m({name:"searchMusic",components:{hotSearch:n,silder:r,searchInput:o,albumItem:u,musicListItem:f,pagination:p},setup(){const a=g({albumList:[],musicList:[],pageInfo:{limit:5,page:1,total:0,page_size:[10,20,40,50]}}),l=async()=>{try{const s=await c.post("/api-website/open/music/sheet/list",{data:{albumStatus:"PASS",page:a.pageInfo.page,rows:a.pageInfo.limit,state:1}});a.musicList=s.data.rows,a.pageInfo.total=s.data.total}catch(s){console.log(s)}};return d(()=>{l()}),()=>t("div",null,[t("div",null,[t("div",{class:i.w1200},[t("div",{class:i.section},[t("div",{class:i.musicList},[a.musicList.map(s=>t(f,{item:s},null))])])])]),t(p,{total:a.pageInfo.total,page:a.pageInfo.page,"onUpdate:page":s=>a.pageInfo.page=s,limit:a.pageInfo.limit,pageSizes:a.pageInfo.page_size,pagination:l},null)])}}),P=m({name:"searchdetail",components:{hotSearch:n,silder:r,searchInput:o,searchAlbum:h,searchMusic:I},setup(){const a=g({albumList:[],musicList:[],chiose:"album"}),l=async()=>{try{const e=await c.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});a.albumList=e.data.rows}catch(e){console.log(e)}},s=async()=>{try{const e=await c.post("/api-website/open/music/sheet/list",{data:{albumStatus:"PASS",page:1,rows:5,state:1}});a.musicList=e.data.rows}catch(e){console.log(e)}};return d(()=>{l(),s()}),()=>t("div",null,[t("div",{class:""},[t("div",{class:"wall",style:{height:"70px"}},null),t("div",{class:i.w1200},[t("div",{class:i.section},[t(o,{isWhile:!0},null),t(n,{type:"search"},null),t(w,{class:i.myTab,modelValue:a.chiose,"onUpdate:modelValue":e=>a.chiose=e},{default:()=>[t(b,{label:"\u4E13\u8F91",name:"album"},{default:()=>[a.chiose=="album"?t(h,null,null):null]}),t(b,{label:"\u4E50\u8C31",name:"music"},{default:()=>[a.chiose=="music"?t(I,null,null):null]})]})])])])])}});export{P as default};