12345678910111213141516171819202122 |
- ;(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="._albumType_1hn8v_1{position:absolute;left:0;top:0;background:linear-gradient(180deg,#ff8900 0%,#ff5100 100%);box-shadow:0 1px 2px rgba(150,13,0,.11);border-radius:10px 0;font-size:12px;padding:0 6px;line-height:20px;color:#fff;z-index:999}._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.5669f9d5.js','./index-legacy.f72247b6.js','./index-legacy.29a20a1f.js','./vendor-legacy.b19481d4.js','./item-legacy.1c569c26.js','./icon_album_active-legacy.72d719cb.js'],function(exports){'use strict';var ColEmpty,Pagination,getUserType,request,defineComponent,createVNode,createTextVNode,ElImage,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){defineComponent=module.d;createVNode=module.c;createTextVNode=module.a;ElImage=module.x;ElSkeleton=module.aj;Fragment=module.F;ElSkeletonItem=module.ak;ElTabs=module.C;ElTabPane=module.D;},function(module){MusicItem=module.M;},function(){}],execute:function execute(){var hold="./assets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RqxnPb/K3gP+sGzxjJJkolAAAAAElFTkSuQmCC";var albumType="_albumType_1hn8v_1";var styles$1={albumType:albumType};var Item=defineComponent({name:'item',props:{item:{type:Object,default:function _default(){return{};}},onItemClick:{type:Function,default:function _default(item){}}},render:function render(){var _this=this;var item=this.item;return createVNode("div",{"class":"rounded-[10px] w-[156px] cursor-pointer overflow-hidden relative transition-all","onClick":function onClick(){_this.onItemClick(item);}},[item.paymentType==='CHARGE'&&createVNode("span",{"class":styles$1.albumType},[createTextVNode("\u4ED8\u8D39")]),createVNode(ElImage,{"src":iconStart,"class":"w-6 h-6 !absolute top-2 right-4 z-10"},null),createVNode(ElImage,{"class":"w-full h-[156px] align-middle rounded-[10px]","fit":"cover","src":item.albumCoverUrl||hold},null),createVNode("div",{"class":"text-lg text-black whitespace-nowrap text-ellipsis overflow-hidden pb-0.5 pt-2"},[item.albumName]),createVNode("div",{"class":"flex justify-between text-sm text-[#999]"},[createVNode("div",{"class":"flex items-center"},[createVNode("span",null,[item.musicSheetCount,createTextVNode("\u9996")])]),createVNode("div",{"class":"flex items-center "},[createVNode("span",null,[item.albumFavoriteCount,createTextVNode("\u6536\u85CF")])])])]);}});var AlbumList=defineComponent({name:'list',data:function data(){return{clientType:'',pageInfo:{// 分页规则
- limit:10,// 限制显示条数
- page:1,// 当前页
- total:0,// 总条数
- page_size:[10,20,40,50]// 选择限制显示条数
- },list:[],loading:false,dataShow:false// 是否有数据
- };},mounted:function mounted(){var clientType=getUserType();if(clientType==='TEACHER')this.clientType=clientType;this.getList();},methods:{getList:function getList(){var _this2=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:_this2.loading=true;_context.prev=1;_context.next=4;return request.get('/api-website/music/album/favorite',{params:{page:_this2.pageInfo.page,rows:_this2.pageInfo.limit,clientType:_this2.clientType}});case 4:_yield$request$get=_context.sent;data=_yield$request$get.data;_this2.list=data.rows||[];_this2.pageInfo.total=data.total;if(data.total<=0){_this2.dataShow=true;}_context.next=13;break;case 11:_context.prev=11;_context.t0=_context["catch"](1);case 13:if(_this2.dataShow){_this2.loading=false;}else{setTimeout(function(){_this2.loading=false;},200);}case 14:case"end":return _context.stop();}}},_callee,null,[[1,11]]);}))();}},render:function render(){var _this3=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[_this3.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){_this3.$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 _this3.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this3.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:{// 分页规则
- limit:10,// 限制显示条数
- page:1,// 当前页
- total:0,// 总条数
- page_size:[10,20,40,50]// 选择限制显示条数
- },list:[],loading:false,dataShow:false// 是否有数据
- };},mounted:function mounted(){var clientType=getUserType();if(clientType==='TEACHER')this.clientType=clientType;this.getList();},methods:{getList:function getList(){var _this4=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:_this4.loading=true;_context2.prev=1;_context2.next=4;return request.get('/api-website/music/album/purchased',{params:{page:_this4.pageInfo.page,rows:_this4.pageInfo.limit,clientType:_this4.clientType}});case 4:_yield$request$get2=_context2.sent;data=_yield$request$get2.data;_this4.list=data.rows||[];_this4.pageInfo.total=data.total;if(data.total<=0){_this4.dataShow=true;}_context2.next=13;break;case 11:_context2.prev=11;_context2.t0=_context2["catch"](1);case 13:if(_this4.dataShow){_this4.loading=false;}else{setTimeout(function(){_this4.loading=false;},200);}case 14:case"end":return _context2.stop();}}},_callee2,null,[[1,11]]);}))();}},render:function render(){var _this5=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[_this5.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){_this5.$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 _this5.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this5.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:{// 分页规则
- limit:10,// 限制显示条数
- page:1,// 当前页
- total:0,// 总条数
- page_size:[10,20,40,50]// 选择限制显示条数
- },list:[],loading:false,dataShow:false// 是否有数据
- };},mounted:function mounted(){this.getList();},methods:{getList:function getList(){var _this6=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:_this6.loading=true;_context3.prev=1;url=_this6.auditStatus==='MYSCORE'?'/api-website/music/sheet/my':'/api-website/music/sheet/favorite';_context3.next=5;return request.get(url,{params:{page:_this6.pageInfo.page,rows:_this6.pageInfo.limit,clientType:getUserType()}});case 5:_yield$request$get3=_context3.sent;data=_yield$request$get3.data;_this6.list=Array.isArray(data.rows)&&data.rows.map(function(n){if(typeof n.paymentType==='string')n.paymentType=n.paymentType.split(',');return n;})||[];_this6.pageInfo.total=data.total;if(data.total<=0){_this6.dataShow=true;}_context3.next=14;break;case 12:_context3.prev=12;_context3.t0=_context3["catch"](1);case 14:if(_this6.dataShow){_this6.loading=false;}else{setTimeout(function(){_this6.loading=false;},200);}// this.loading = true
- case 15:case"end":return _context3.stop();}}},_callee3,null,[[1,12]]);}))();}},render:function render(){var _this7=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[_this7.list.map(function(item){return createVNode(MusicItem,{"onClick":function onClick(item){// console.log(item)
- if(_this7.auditStatus==='UNPASS'){_this7.$router.push({path:'/userInfo/musicOperation',query:{type:'update',id:item.id}});}else{// 跳转对应详情 个人中心不跳转到详情
- _this7.$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 _this7.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this7.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 _this8=this;return createVNode("div",{"class":[styles.myScore,'relative px-[25px]']},[createVNode(ElTabs,{"modelValue":this.activeName,"onUpdate:modelValue":function onUpdateModelValue($event){return _this8.activeName=$event;}},{default:function _default(){return[createVNode(ElTabPane,{"label":"我的乐谱","name":"MYSCORE"},{default:function _default(){return[_this8.activeName==='MYSCORE'&&createVNode(List,{"auditStatus":"MYSCORE"},null)];}}),createVNode(ElTabPane,{"label":"我的专辑","name":"ALBUMMY"},{default:function _default(){return[_this8.activeName==='ALBUMMY'&&createVNode(AlbumMy,null,null)];}}),createVNode(ElTabPane,{"label":"收藏乐谱","name":"COLLECTION"},{default:function _default(){return[_this8.activeName==='COLLECTION'&&createVNode(List,{"auditStatus":"COLLECTION"},null)];}}),createVNode(ElTabPane,{"label":"收藏专辑","name":"ALBUM"},{default:function _default(){return[_this8.activeName==='ALBUM'&&createVNode(AlbumList,null,null)];}})];}})]);}}));}};});})();
|