index.b97b0d76.js 6.2 KB

1
  1. import{C as p}from"./index.ba731085.js";import{P as r}from"./index.404471e8.js";import{g as u,r as d}from"./index.6fc5f983.js";import{I as h}from"./index.4fe30080.js";import{d as n,c as t,aw as m,F as s,ax as a,O as c,P as o}from"./vendor.63aa8b19.js";import{M as y}from"./item.57b9d053.js";import"./lineStart.9340661e.js";import"./icon_album_active.66672e6b.js";var w=n({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=u();e==="TEACHER"&&(this.clientType=e),this.getList()},methods:{async getList(){this.loading=!0;try{const{data:e}=await d.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(s,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(s,null,[t("div",{class:"w-1/4 pb-5"},[t(h,{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(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(p,null,null)])}}),v=n({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=u();e==="TEACHER"&&(this.clientType=e),this.getList()},methods:{async getList(){this.loading=!0;try{const{data:e}=await d.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(s,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(s,null,[t("div",{class:"w-1/4 pb-5"},[t(h,{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(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(p,null,null)])}});const x="_myScore_1fgvc_1";var g={myScore:x},f=n({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 d.get(e,{params:{page:this.pageInfo.page,rows:this.pageInfo.limit,clientType:u()}});this.list=Array.isArray(i.rows)&&i.rows.map(l=>(typeof l.paymentType=="string"&&(l.paymentType=l.paymentType.split(",")),l))||[],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(s,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(y,{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(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(p,{style:{marginBottom:"30px"}},null)])}}),j=n({name:"live-class",data(){return{activeName:"MYSCORE"}},methods:{getList(){}},render(){return t("div",{class:[g.myScore,"relative px-[25px]"]},[t(c,{modelValue:this.activeName,"onUpdate:modelValue":e=>this.activeName=e},{default:()=>[t(o,{label:"\u6211\u7684\u4E50\u8C31",name:"MYSCORE"},{default:()=>[this.activeName==="MYSCORE"&&t(f,{auditStatus:"MYSCORE"},null)]}),t(o,{label:"\u6211\u7684\u4E13\u8F91",name:"ALBUMMY"},{default:()=>[this.activeName==="ALBUMMY"&&t(v,null,null)]}),t(o,{label:"\u6536\u85CF\u4E50\u8C31",name:"COLLECTION"},{default:()=>[this.activeName==="COLLECTION"&&t(f,{auditStatus:"COLLECTION"},null)]}),t(o,{label:"\u6536\u85CF\u4E13\u8F91",name:"ALBUM"},{default:()=>[this.activeName==="ALBUM"&&t(w,null,null)]})]})])}});export{j as default};