index-legacy.a3e8efe4.js 12 KB

12345678910111213141516171819202122
  1. ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._myScore_1fgvc_1 .el-tabs__item{font-size:18px;font-weight:600;color:#999;height:56px;line-height:56px;padding-right:40px;padding-left:0}._myScore_1fgvc_1 .el-tabs__item.is-active{font-size:20px;color:#000}._myScore_1fgvc_1 .el-tabs__nav-wrap:after{height:1px;background:#eeeeee}._myScore_1fgvc_1 .el-tabs__active-bar{height:4px}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.bc7f6149.js','./index-legacy.dbd3066b.js','./index-legacy.0dcd49ba.js','./index-legacy.68a3837e.js','./vendor-legacy.9ba3db9d.js','./item-legacy.a49397bb.js','./lineStart-legacy.cf9abd3c.js','./icon_album_active-legacy.72d719cb.js'],function(exports){'use strict';var ColEmpty,Pagination,getUserType,request,Item,defineComponent,createVNode,ElSkeleton,Fragment,ElSkeletonItem,ElTabs,ElTabPane,MusicItem;return{setters:[function(module){ColEmpty=module.C;},function(module){Pagination=module.P;},function(module){getUserType=module.g;request=module.r;},function(module){Item=module.I;},function(module){defineComponent=module.d;createVNode=module.c;ElSkeleton=module.al;Fragment=module.F;ElSkeletonItem=module.am;ElTabs=module.C;ElTabPane=module.D;},function(module){MusicItem=module.M;},function(){},function(){}],execute:function execute(){var AlbumList=defineComponent({name:'list',data:function data(){return{clientType:'',pageInfo:{// 分页规则
  2. limit:10,// 限制显示条数
  3. page:1,// 当前页
  4. total:0,// 总条数
  5. page_size:[10,20,40,50]// 选择限制显示条数
  6. },list:[],loading:false,dataShow:false// 是否有数据
  7. };},mounted:function mounted(){var clientType=getUserType();if(clientType==='TEACHER')this.clientType=clientType;this.getList();},methods:{getList:function getList(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var _yield$request$get,data;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_this.loading=true;_context.prev=1;_context.next=4;return request.get('/api-website/music/album/favorite',{params:{page:_this.pageInfo.page,rows:_this.pageInfo.limit,clientType:_this.clientType}});case 4:_yield$request$get=_context.sent;data=_yield$request$get.data;_this.list=data.rows||[];_this.pageInfo.total=data.total;if(data.total<=0){_this.dataShow=true;}_context.next=13;break;case 11:_context.prev=11;_context.t0=_context["catch"](1);case 13:if(_this.dataShow){_this.loading=false;}else{setTimeout(function(){_this.loading=false;},200);}case 14:case"end":return _context.stop();}}},_callee,null,[[1,11]]);}))();}},render:function render(){var _this2=this;return createVNode(Fragment,null,[createVNode("div",{"class":"flex flex-wrap"},[createVNode(ElSkeleton,{"loading":this.loading,"animated":true,"class":"px-[14px] flex items-center flex-row justify-between","count":4},{default:function _default(){return[_this2.list.map(function(item){return createVNode(Fragment,null,[createVNode("div",{"class":"w-1/4 pb-5"},[createVNode(Item,{"class":"m-auto","item":item,"onItemClick":function onItemClick(item){_this2.$router.push({path:'/albumDetail',query:{id:item.id}});}},null)])]);})];},template:function template(){return createVNode("div",{"class":"flex items-center flex-col justify-between w-[156px]"},[createVNode(ElSkeletonItem,{"variant":"image","style":{width:'156px',height:'156px'}},null),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'100%',margin:'4px 0'}},null),createVNode("div",{"class":"flex w-full justify-between"},[createVNode(ElSkeletonItem,{"variant":"p","style":{width:'35%'}},null),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'35%'}},null)])]);}})]),createVNode(Pagination,{"total":this.pageInfo.total,"page":this.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return _this2.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this2.pageInfo.limit=$event;},"pageSizes":this.pageInfo.page_size,"pagination":this.getList},null),this.dataShow&&createVNode(ColEmpty,null,null)]);}});var AlbumMy=defineComponent({name:'list',data:function data(){return{clientType:'',pageInfo:{// 分页规则
  8. limit:10,// 限制显示条数
  9. page:1,// 当前页
  10. total:0,// 总条数
  11. page_size:[10,20,40,50]// 选择限制显示条数
  12. },list:[],loading:false,dataShow:false// 是否有数据
  13. };},mounted:function mounted(){var clientType=getUserType();if(clientType==='TEACHER')this.clientType=clientType;this.getList();},methods:{getList:function getList(){var _this3=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var _yield$request$get2,data;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_this3.loading=true;_context2.prev=1;_context2.next=4;return request.get('/api-website/music/album/purchased',{params:{page:_this3.pageInfo.page,rows:_this3.pageInfo.limit,clientType:_this3.clientType}});case 4:_yield$request$get2=_context2.sent;data=_yield$request$get2.data;_this3.list=data.rows||[];_this3.pageInfo.total=data.total;if(data.total<=0){_this3.dataShow=true;}_context2.next=13;break;case 11:_context2.prev=11;_context2.t0=_context2["catch"](1);case 13:if(_this3.dataShow){_this3.loading=false;}else{setTimeout(function(){_this3.loading=false;},200);}case 14:case"end":return _context2.stop();}}},_callee2,null,[[1,11]]);}))();}},render:function render(){var _this4=this;return createVNode(Fragment,null,[createVNode("div",{"class":"flex flex-wrap"},[createVNode(ElSkeleton,{"loading":this.loading,"animated":true,"class":"px-[14px] flex items-center flex-row justify-between","count":4},{default:function _default(){return[_this4.list.map(function(item){return createVNode(Fragment,null,[createVNode("div",{"class":"w-1/4 pb-5"},[createVNode(Item,{"class":"m-auto","item":item,"onItemClick":function onItemClick(item){_this4.$router.push({path:'/albumDetail',query:{id:item.id}});}},null)])]);})];},template:function template(){return createVNode("div",{"class":"flex items-center flex-col justify-between w-[156px]"},[createVNode(ElSkeletonItem,{"variant":"image","style":{width:'156px',height:'156px'}},null),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'100%',margin:'4px 0'}},null),createVNode("div",{"class":"flex w-full justify-between"},[createVNode(ElSkeletonItem,{"variant":"p","style":{width:'35%'}},null),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'35%'}},null)])]);}})]),createVNode(Pagination,{"total":this.pageInfo.total,"page":this.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return _this4.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this4.pageInfo.limit=$event;},"pageSizes":this.pageInfo.page_size,"pagination":this.getList},null),this.dataShow&&createVNode(ColEmpty,null,null)]);}});var myScore="_myScore_1fgvc_1";var styles={myScore:myScore};var List=defineComponent({name:'list',props:{auditStatus:{type:String,default:''},onNumber:{type:Function,default:function _default(data){}}},data:function data(){return{pageInfo:{// 分页规则
  14. limit:10,// 限制显示条数
  15. page:1,// 当前页
  16. total:0,// 总条数
  17. page_size:[10,20,40,50]// 选择限制显示条数
  18. },list:[],loading:false,dataShow:false// 是否有数据
  19. };},mounted:function mounted(){this.getList();},methods:{getList:function getList(){var _this5=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){var url,_yield$request$get3,data;return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:_this5.loading=true;_context3.prev=1;url=_this5.auditStatus==='MYSCORE'?'/api-website/music/sheet/my':'/api-website/music/sheet/favorite';_context3.next=5;return request.get(url,{params:{page:_this5.pageInfo.page,rows:_this5.pageInfo.limit,clientType:getUserType()}});case 5:_yield$request$get3=_context3.sent;data=_yield$request$get3.data;_this5.list=Array.isArray(data.rows)&&data.rows.map(function(n){if(typeof n.paymentType==='string')n.paymentType=n.paymentType.split(',');return n;})||[];_this5.pageInfo.total=data.total;if(data.total<=0){_this5.dataShow=true;}_context3.next=14;break;case 12:_context3.prev=12;_context3.t0=_context3["catch"](1);case 14:if(_this5.dataShow){_this5.loading=false;}else{setTimeout(function(){_this5.loading=false;},200);}// this.loading = true
  20. case 15:case"end":return _context3.stop();}}},_callee3,null,[[1,12]]);}))();}},render:function render(){var _this6=this;return createVNode(Fragment,null,[createVNode("div",{"class":"mt-5"},[createVNode(ElSkeleton,{"loading":this.loading,"animated":true,"class":" w-full m-auto px-[14px] flex items-center flex-col","count":3},{default:function _default(){return[_this6.list.map(function(item){return createVNode(MusicItem,{"onClick":function onClick(item){// console.log(item)
  21. if(_this6.auditStatus==='UNPASS'){_this6.$router.push({path:'/userInfo/musicOperation',query:{type:'update',id:item.id}});}else{// 跳转对应详情 个人中心不跳转到详情
  22. _this6.$router.push({path:'/muiscDetial',query:{id:item.id}});}},"item":{id:item.id,addName:item.addName,addUserAvatar:item.addUserAvatar,musicSheetName:item.musicSheetName,titleImg:item.titleImg,subjectNames:item.subjectNames,exquisiteFlag:item.exquisiteFlag,albumNums:item.albumNums,composer:item.composer,chargeType:item.chargeType,paymentType:item.paymentType||[]},"class":[styles.musicListItem,'pt-2 cursor-pointer border-b border-solid border-[#E7E6E6] hover:bg-[#F4F4F4]']},null);})];},template:function template(){return createVNode("div",{"class":"h-[94px] flex items-center justify-between w-full pt-2 mb-2"},[createVNode("div",{"class":"w-2/3 flex items-center"},[createVNode(ElSkeletonItem,{"variant":"circle","style":{width:'88px',height:'88px'}},null),createVNode("div",{"class":"w-1/2 pl-2"},[createVNode(ElSkeletonItem,{"variant":"h3"},null),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'50%'}},null)])]),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'20%'}},null)]);}})]),createVNode(Pagination,{"total":this.pageInfo.total,"page":this.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return _this6.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this6.pageInfo.limit=$event;},"pageSizes":this.pageInfo.page_size,"pagination":this.getList},null),this.dataShow&&createVNode(ColEmpty,{"style":{marginBottom:'30px'}},null)]);}});var index=exports('default',defineComponent({name:'live-class',data:function data(){return{activeName:'MYSCORE'};},methods:{getList:function getList(){}},render:function render(){var _this7=this;return createVNode("div",{"class":[styles.myScore,'relative px-[25px]']},[createVNode(ElTabs,{"modelValue":this.activeName,"onUpdate:modelValue":function onUpdateModelValue($event){return _this7.activeName=$event;}},{default:function _default(){return[createVNode(ElTabPane,{"label":"我的乐谱","name":"MYSCORE"},{default:function _default(){return[_this7.activeName==='MYSCORE'&&createVNode(List,{"auditStatus":"MYSCORE"},null)];}}),createVNode(ElTabPane,{"label":"我的专辑","name":"ALBUMMY"},{default:function _default(){return[_this7.activeName==='ALBUMMY'&&createVNode(AlbumMy,null,null)];}}),createVNode(ElTabPane,{"label":"收藏乐谱","name":"COLLECTION"},{default:function _default(){return[_this7.activeName==='COLLECTION'&&createVNode(List,{"auditStatus":"COLLECTION"},null)];}}),createVNode(ElTabPane,{"label":"收藏专辑","name":"ALBUM"},{default:function _default(){return[_this7.activeName==='ALBUM'&&createVNode(AlbumList,null,null)];}})];}})]);}}));}};});})();