index.0d33e002.js 7.2 KB

1
  1. import{C as o}from"./index.2d005e3b.js";import{P as r}from"./index.df62445e.js";import{r as p}from"./index.1f84bfe1.js";import{d as s,c as t,x as u,a as d,aj as m,F as l,ak as i,C as h,D as n}from"./vendor.9f3c6e4d.js";import{M as g}from"./item.d6030152.js";var A="./assets/hold.abbcc7ab.png",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABiBJREFUaEPdm3tM1WUYxz8viikIhImaiiFjKYp4C01nWlsTq4lr2sUyLW3TbC6lrKGoeEEqC2ku080ulmkXXeGspLmV5rxE3iWwHF5AMyWQ25FEeNv7k8OORw7n/f3Oz0vn2c5fv+d9nuf7+z3vc3vfI7CfBNAe6ASEA2FAWyCw4ac01jb8qoByoAw4B5QA0k6TlDF2UADQDYgBugKtLAq9DBQDx4HTQL1FOY3LfAV4B9AH6AW09tUYt/U1wO/AEeBfq7KtAmwJ9AfiXNzOqg3e1il3PgocAK54Y3Z/bgXgPcBQIMSsMh/5K4FdwCkzcswAbAEMaXBHMzrs5lVuuxuo0xGsCzAIGNUQHXXk3mgeFW23Ag5vinQAqjD/6C1wSW+2K5f9viHNeOT1BlCBSwLaeNN2i55fAjY3B7I5gMotx9yGX879Xaovme3JXT0BVAFFgVMVyf+B1J5UIK8LPJ4ADrM7Wqa/QfyUp8RoAfLDL+WWOW9x2OY3p6LrTp08qPJcop3Kpz5L1Mql4vUAgfIM6iV10+fIt1d/zkk79QA57nnS/QuqCuUJO/ddpwha5f8kUu8MpaMrmIsV/B37kFxy7gKq/rSL1H782rXicQeY0FCC2aWQPZvF+MH9eLApgXsP8vP9SXKDbcquClIlXa5TpitAVTg/Y2dtmZZM7wUzxQzA016XC7PkirRM8mwEqWrX9c4C3VXxfcAAuxQNG0R4zjqREtTa6Ac9kqOG8sQJMmPnr0ZPaBftB35TwpwAVT83wa6Wp38cITnrxCsR7YjUsfhCKUWJE+R7B46i9pAdpFqtdS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kc0ZnvRuPx9G94rN8+BIQALExBOf9QbUFoxqX9Ikl+Ei+ZRleD1+UItuPz3wBbHKt1+MzpzzbD0BNGmqFXfsAVAn3+yNsI5r78yUEp4v49TUSV5B+exHICdKvr3I5Qfr1ZTzXsO231yldQfr1hVhXoH57pdm90vDbS+lNlVRqxnPb/K3gP+sGzxjJJkolAAAAAElFTkSuQmCC",v=s({name:"item",props:{item:{type:Object,default:()=>({})},onItemClick:{type:Function,default:e=>{}}},render(){const e=this.item;return t("div",{class:"rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all",onClick:()=>{this.onItemClick(e)}},[t(u,{src:w,class:"w-6 h-6 !absolute top-2 right-4 z-10"},null),t(u,{class:"w-full h-[156px] align-middle rounded-[10px]",fit:"cover",src:e.albumCoverUrl||A},null),t("div",{class:"text-lg text-black whitespace-nowrap text-ellipsis overflow-hidden pb-0.5 pt-2"},[e.albumName]),t("div",{class:"flex justify-between text-sm text-[#999]"},[t("div",{class:"flex items-center"},[t("span",null,[e.musicSheetCount,d("\u9996")])]),t("div",{class:"flex items-center "},[t("span",null,[e.albumFavoriteCount,d("\u6536\u85CF")])])])])}}),x=s({name:"list",data(){return{pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted(){this.getList()},methods:{async getList(){this.loading=!0;try{const{data:e}=await p.get("/api-website/music/album/favorite",{params:{page:this.pageInfo.page,rows:this.pageInfo.limit}});this.list=e.rows||[],this.pageInfo.total=e.total,e.total<=0&&(this.dataShow=!0)}catch{}this.dataShow?this.loading=!1:setTimeout(()=>{this.loading=!1},200)}},render(){return t(l,null,[t("div",{class:"flex flex-wrap"},[t(m,{loading:this.loading,animated:!0,class:"px-[14px] flex items-center flex-row justify-between",count:4},{default:()=>[this.list.map(e=>t(l,null,[t("div",{class:"w-1/4 pb-5"},[t(v,{class:"m-auto",item:e,onItemClick:a=>{this.$router.push({path:"/albumDetail",query:{id:a.id}})}},null)])]))],template:()=>t("div",{class:"flex items-center flex-col justify-between w-[156px]"},[t(i,{variant:"image",style:{width:"156px",height:"156px"}},null),t(i,{variant:"p",style:{width:"100%",margin:"4px 0"}},null),t("div",{class:"flex w-full justify-between"},[t(i,{variant:"p",style:{width:"35%"}},null),t(i,{variant:"p",style:{width:"35%"}},null)])])})]),t(r,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":e=>this.pageInfo.page=e,limit:this.pageInfo.limit,"onUpdate:limit":e=>this.pageInfo.limit=e,pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&t(o,null,null)])}});const I="_myScore_1fgvc_1";var f={myScore:I},c=s({name:"list",props:{auditStatus:{type:String,default:""},onNumber:{type:Function,default:e=>{}}},data(){return{pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted(){this.getList()},methods:{async getList(){this.loading=!0;try{const e=this.auditStatus==="MYSCORE"?"/api-website/music/sheet/my":"/api-website/music/sheet/favorite",{data:a}=await p.get(e,{params:{page:this.pageInfo.page,rows:this.pageInfo.limit}});this.list=a.rows||[],this.pageInfo.total=a.total,a.total<=0&&(this.dataShow=!0)}catch{}this.dataShow?this.loading=!1:setTimeout(()=>{this.loading=!1},200)}},render(){return t(l,null,[t("div",{class:"mt-5"},[t(m,{loading:this.loading,animated:!0,class:" w-full m-auto px-[14px] flex items-center flex-col",count:3},{default:()=>[this.list.map(e=>t(g,{onClick:a=>{this.auditStatus==="UNPASS"&&(console.log(a),this.$router.push({path:"/userInfo/musicOperation",query:{type:"update",id:a.id}}))},item:{id:e.id,addName:e.addName,addUserAvatar:e.addUserAvatar,musicSheetName:e.musicSheetName,titleImg:e.titleImg,subjectNames:e.subjectNames,composer:e.composer,chargeType:e.chargeType},class:[f.musicListItem,"pt-2 cursor-pointer border-b border-solid border-[#E7E6E6] hover:bg-[#F4F4F4]"]},null))],template:()=>t("div",{class:"h-[94px] flex items-center justify-between w-full pt-2 mb-2"},[t("div",{class:"w-2/3 flex items-center"},[t(i,{variant:"circle",style:{width:"88px",height:"88px"}},null),t("div",{class:"w-1/2 pl-2"},[t(i,{variant:"h3"},null),t(i,{variant:"p",style:{width:"50%"}},null)])]),t(i,{variant:"p",style:{width:"20%"}},null)])})]),t(r,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":e=>this.pageInfo.page=e,limit:this.pageInfo.limit,"onUpdate:limit":e=>this.pageInfo.limit=e,pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&t(o,{style:{marginBottom:"30px"}},null)])}}),U=s({name:"live-class",data(){return{activeName:"MYSCORE"}},methods:{getList(){}},render(){return t("div",{class:[f.myScore,"relative px-[25px]"]},[t(h,{modelValue:this.activeName,"onUpdate:modelValue":e=>this.activeName=e},{default:()=>[t(n,{label:"\u6211\u7684\u4E50\u8C31",name:"MYSCORE"},{default:()=>[this.activeName==="MYSCORE"&&t(c,{auditStatus:"MYSCORE"},null)]}),t(n,{label:"\u6536\u85CF\u4E50\u8C31",name:"COLLECTION"},{default:()=>[this.activeName==="COLLECTION"&&t(c,{auditStatus:"COLLECTION"},null)]}),t(n,{label:"\u6536\u85CF\u4E13\u8F91",name:"ALBUM"},{default:()=>[this.activeName==="ALBUM"&&t(x,null,null)]})]})])}});export{U as default};