index.d0a9b91d.js 9.3 KB

1
  1. import{C as o}from"./index.0e15f1fd.js";import{P as u}from"./index.7f33cffd.js";import{g as r,r as m}from"./index.ec43d267.js";import{d as s,c as t,a as d,x as h,aj as f,F as l,ak as a,C as w,D as p}from"./vendor.1514baa4.js";import{M as v}from"./item.af50a68d.js";import"./icon_album_active.66672e6b.js";var A="./assets/hold.abbcc7ab.png",x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABiBJREFUaEPdm3tM1WUYxz8viikIhImaiiFjKYp4C01nWlsTq4lr2sUyLW3TbC6lrKGoeEEqC2ku080ulmkXXeGspLmV5rxE3iWwHF5AMyWQ25FEeNv7k8OORw7n/f3Oz0vn2c5fv+d9nuf7+z3vc3vfI7CfBNAe6ASEA2FAWyCw4ac01jb8qoByoAw4B5QA0k6TlDF2UADQDYgBugKtLAq9DBQDx4HTQL1FOY3LfAV4B9AH6AW09tUYt/U1wO/AEeBfq7KtAmwJ9AfiXNzOqg3e1il3PgocAK54Y3Z/bgXgPcBQIMSsMh/5K4FdwCkzcswAbAEMaXBHMzrs5lVuuxuo0xGsCzAIGNUQHXXk3mgeFW23Ag5vinQAqjD/6C1wSW+2K5f9viHNeOT1BlCBSwLaeNN2i55fAjY3B7I5gMotx9yGX879Xaovme3JXT0BVAFFgVMVyf+B1J5UIK8LPJ4ADrM7Wqa/QfyUp8RoAfLDL+WWOW9x2OY3p6LrTp08qPJcop3Kpz5L1Mql4vUAgfIM6iV10+fIt1d/zkk79QA57nnS/QuqCuUJO/ddpwha5f8kUu8MpaMrmIsV/B37kFxy7gKq/rSL1H782rXicQeY0FCC2aWQPZvF+MH9eLApgXsP8vP9SXKDbcquClIlXa5TpitAVTg/Y2dtmZZM7wUzxQzA016XC7PkirRM8mwEqWrX9c4C3VXxfcAAuxQNG0R4zjqREtTa6Ac9kqOG8sQJMmPnr0ZPaBftB35TwpwAVT83wa6Wp38cITnrxCsR7YjUsf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PjxUJA+NJCAmmnRohTkuRKzdkc0ZnvRuPx9G94rN8+BIQALExBOf9QbUFoxqX9Ikl+Ei+ZRleD1+UItuPz3wBbHKt1+MzpzzbD0BNGmqFXfsAVAn3+yNsI5r78yUEp4v49TUSV5B+exHICdKvr3I5Qfr1ZTzXsO231yldQfr1hVhXoH57pdm90vDbS+lNlVRqxnPb/K3gP+sGzxjJJkolAAAAAElFTkSuQmCC";const I="_albumType_1hn8v_1";var b={albumType:I},c=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)}},[e.paymentType==="CHARGE"&&t("span",{class:b.albumType},[d("\u4ED8\u8D39")]),t(h,{src:x,class:"w-6 h-6 !absolute top-2 right-4 z-10"},null),t(h,{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")])])])])}}),T=s({name:"list",data(){return{clientType:"",pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted(){const e=r();e==="TEACHER"&&(this.clientType=e),this.getList()},methods:{async getList(){this.loading=!0;try{const{data:e}=await m.get("/api-website/music/album/favorite",{params:{page:this.pageInfo.page,rows:this.pageInfo.limit,clientType:this.clientType}});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(f,{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(c,{class:"m-auto",item:e,onItemClick:i=>{this.$router.push({path:"/albumDetail",query:{id:i.id}})}},null)])]))],template:()=>t("div",{class:"flex items-center flex-col justify-between w-[156px]"},[t(a,{variant:"image",style:{width:"156px",height:"156px"}},null),t(a,{variant:"p",style:{width:"100%",margin:"4px 0"}},null),t("div",{class:"flex w-full justify-between"},[t(a,{variant:"p",style:{width:"35%"}},null),t(a,{variant:"p",style:{width:"35%"}},null)])])})]),t(u,{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)])}}),S=s({name:"list",data(){return{clientType:"",pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted(){const e=r();e==="TEACHER"&&(this.clientType=e),this.getList()},methods:{async getList(){this.loading=!0;try{const{data:e}=await m.get("/api-website/music/album/purchased",{params:{page:this.pageInfo.page,rows:this.pageInfo.limit,clientType:this.clientType}});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(f,{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(c,{class:"m-auto",item:e,onItemClick:i=>{this.$router.push({path:"/albumDetail",query:{id:i.id}})}},null)])]))],template:()=>t("div",{class:"flex items-center flex-col justify-between w-[156px]"},[t(a,{variant:"image",style:{width:"156px",height:"156px"}},null),t(a,{variant:"p",style:{width:"100%",margin:"4px 0"}},null),t("div",{class:"flex w-full justify-between"},[t(a,{variant:"p",style:{width:"35%"}},null),t(a,{variant:"p",style:{width:"35%"}},null)])])})]),t(u,{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 C="_myScore_1fgvc_1";var g={myScore:C},y=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:i}=await m.get(e,{params:{page:this.pageInfo.page,rows:this.pageInfo.limit,clientType:r()}});this.list=Array.isArray(i.rows)&&i.rows.map(n=>(typeof n.paymentType=="string"&&(n.paymentType=n.paymentType.split(",")),n))||[],this.pageInfo.total=i.total,i.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(f,{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(v,{onClick:i=>{this.auditStatus==="UNPASS"?this.$router.push({path:"/userInfo/musicOperation",query:{type:"update",id:i.id}}):this.$router.push({path:"/muiscDetial",query:{id:i.id}})},item:{id:e.id,addName:e.addName,addUserAvatar:e.addUserAvatar,musicSheetName:e.musicSheetName,titleImg:e.titleImg,subjectNames:e.subjectNames,exquisiteFlag:e.exquisiteFlag,albumNums:e.albumNums,composer:e.composer,chargeType:e.chargeType,paymentType:e.paymentType||[]},class:[g.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(a,{variant:"circle",style:{width:"88px",height:"88px"}},null),t("div",{class:"w-1/2 pl-2"},[t(a,{variant:"h3"},null),t(a,{variant:"p",style:{width:"50%"}},null)])]),t(a,{variant:"p",style:{width:"20%"}},null)])})]),t(u,{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)])}}),q=s({name:"live-class",data(){return{activeName:"MYSCORE"}},methods:{getList(){}},render(){return t("div",{class:[g.myScore,"relative px-[25px]"]},[t(w,{modelValue:this.activeName,"onUpdate:modelValue":e=>this.activeName=e},{default:()=>[t(p,{label:"\u6211\u7684\u4E50\u8C31",name:"MYSCORE"},{default:()=>[this.activeName==="MYSCORE"&&t(y,{auditStatus:"MYSCORE"},null)]}),t(p,{label:"\u6211\u7684\u4E13\u8F91",name:"ALBUMMY"},{default:()=>[this.activeName==="ALBUMMY"&&t(S,null,null)]}),t(p,{label:"\u6536\u85CF\u4E50\u8C31",name:"COLLECTION"},{default:()=>[this.activeName==="COLLECTION"&&t(y,{auditStatus:"COLLECTION"},null)]}),t(p,{label:"\u6536\u85CF\u4E13\u8F91",name:"ALBUM"},{default:()=>[this.activeName==="ALBUM"&&t(T,null,null)]})]})])}});export{q as default};