index-legacy.b1dd33e0.js 15 KB

1234
  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="._title_1xs2v_1{font-size:20px;color:red}._w1200_1xs2v_5{width:1002px!important;margin:0 auto}._section_1xs2v_9{padding:62px 0 16px}._section_1xs2v_9 ._titleWrap_1xs2v_12{text-align:left;margin-bottom:24px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._section_1xs2v_9 ._titleWrap_1xs2v_12 ._titleWrapLeft_1xs2v_20{text-align:left;display:flex;flex-direction:row;align-items:center}._section_1xs2v_9 ._titleWrap_1xs2v_12 ._titleWrapLeft_1xs2v_20 ._dotImg_1xs2v_26{width:30px;height:20px}._section_1xs2v_9 ._titleWrap_1xs2v_12 ._titleWrapLeft_1xs2v_20 h4{margin-right:10px;font-size:24px;font-weight:600;color:#1d1f26;line-height:33px}._section_1xs2v_9 ._titleWrap_1xs2v_12 ._titleWrapMore_1xs2v_37{display:flex;flex-direction:row;align-items:center;cursor:pointer;margin-right:24px}._section_1xs2v_9 ._titleWrap_1xs2v_12 ._titleWrapMore_1xs2v_37 img{width:20px;height:20px;margin-left:8px}._section_1xs2v_9 ._titleWrap_1xs2v_12 ._titleWrapMore_1xs2v_37 span{height:28px;font-size:20px;font-weight:400;color:#1d1f26;line-height:28px}._section_1xs2v_9 ._titleWrap_1xs2v_12 ._titleWrapMore_1xs2v_37:active{opacity:.9}._section_1xs2v_9 ._hotAlbum_1xs2v_59{width:707px}._section_1xs2v_9 ._albumMoudel_1xs2v_62{display:flex;flex-direction:row}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumWrap_1xs2v_66{position:relative;width:707px}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumWrap_1xs2v_66 ._line_1xs2v_70{opacity:.2;background-color:#979797;width:1px;height:calc(100% - 30px);position:absolute;right:0;top:5px}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumWrap_1xs2v_66 ._albumList_1xs2v_79{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85{padding-left:24px;padding-top:5px;width:100%}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90{position:relative}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90 ._searchIcon_1xs2v_93{width:24px;height:25px;position:absolute;z-index:1000;top:12px;right:27px;cursor:pointer}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90 ._searchIcon_1xs2v_93:active{opacity:.8}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90 input::-moz-placeholder{height:25px;font-size:16px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#7c7c7c;line-height:25px}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90 input::placeholder{height:25px;font-size:16px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#7c7c7c;line-height:25px}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90 .el-input .el-input__wrapper{box-shadow:none;padding:0}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90 .el-input .el-input__wrapper .el-input__inner{padding:0 52px 0 24px;height:50px;line-height:50px;background:#ffffff;border-radius:25px;border:1px solid #2dc7aa}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._inputWrap_1xs2v_90 .el-input .el-input__wrapper .el-input__inner:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._chioseRow_1xs2v_128{margin-top:38px}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._chioseRow_1xs2v_128 ._chioseTagWrap_1xs2v_131{max-height:168px;overflow:hidden}._section_1xs2v_9 ._albumMoudel_1xs2v_62 ._albumSearch_1xs2v_85 ._chioseRow_1xs2v_128 p{font-size:20px;font-weight:600;color:#000;line-height:28px;margin-bottom:22px}._section_1xs2v_9 ._videoList_1xs2v_142{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;margin:25px 0}._section_1xs2v_9 ._videoNav_1xs2v_149{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 2px}._section_1xs2v_9 ._videoNav_1xs2v_149 h5{font-size:20px;font-weight:600;color:#333;line-height:30px}._section_1xs2v_9 ._videoNav_1xs2v_149 ._wrapRight_1xs2v_162{display:flex;flex-direction:row;cursor:pointer}._section_1xs2v_9 ._videoNav_1xs2v_149 ._wrapRight_1xs2v_162 span{font-size:16px;color:#666}._section_1xs2v_9 ._videoNav_1xs2v_149 ._wrapRight_1xs2v_162 ._arrow_1xs2v_171{width:20px;height:20px;margin-left:4px}._mb48_1xs2v_176{margin-bottom:44px!important}._mb32_1xs2v_179{margin-bottom:32px!important}._pt41_1xs2v_182{padding-top:41px!important}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.a13a03f4.js','./index-legacy.2d27d03b.js','./index-legacy.e37fc1fe.js','./titleDot-legacy.26cf1726.js','./scrollbar.min-legacy.082b1fa0.js','./index-legacy.8179fe1d.js','./moreArrow-legacy.12b046be.js','./index-legacy.29a20a1f.js','./vendor-legacy.b19481d4.js','./hold-legacy.fa388436.js','./lineStart-legacy.660bfbea.js','./player-legacy.c7d3b4b9.js','./icon-legacy.aed5a5b3.js','./music-legacy.146bf361.js','./lineStart-legacy.f91a0e0f.js','./icon_album_active-legacy.72d719cb.js'],function(exports){'use strict';var albumItem,videoDetailItem,musicListItem,courseIcon,hotSearch,banner,tagItem,arrow$1,request,getUserType,defineComponent,reactive,useRouter,onMounted,createVNode,createTextVNode,ElInput;return{setters:[function(module){albumItem=module.a;},function(module){videoDetailItem=module.v;},function(module){musicListItem=module.m;},function(module){courseIcon=module.c;},function(module){hotSearch=module.h;},function(module){banner=module.b;},function(module){tagItem=module.t;arrow$1=module.a;},function(module){request=module.r;getUserType=module.g;},function(module){defineComponent=module.d;reactive=module.r;useRouter=module.f;onMounted=module.o;createVNode=module.c;createTextVNode=module.a;ElInput=module.w;},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function execute(){var title="_title_1xs2v_1";var w1200="_w1200_1xs2v_5";var section="_section_1xs2v_9";var titleWrap="_titleWrap_1xs2v_12";var titleWrapLeft="_titleWrapLeft_1xs2v_20";var dotImg="_dotImg_1xs2v_26";var titleWrapMore="_titleWrapMore_1xs2v_37";var hotAlbum="_hotAlbum_1xs2v_59";var albumMoudel="_albumMoudel_1xs2v_62";var albumWrap="_albumWrap_1xs2v_66";var line="_line_1xs2v_70";var albumList="_albumList_1xs2v_79";var albumSearch="_albumSearch_1xs2v_85";var inputWrap="_inputWrap_1xs2v_90";var searchIcon$1="_searchIcon_1xs2v_93";var chioseRow="_chioseRow_1xs2v_128";var chioseTagWrap="_chioseTagWrap_1xs2v_131";var videoList="_videoList_1xs2v_142";var videoNav="_videoNav_1xs2v_149";var wrapRight="_wrapRight_1xs2v_162";var arrow="_arrow_1xs2v_171";var mb48="_mb48_1xs2v_176";var mb32="_mb32_1xs2v_179";var pt41="_pt41_1xs2v_182";var styles={title:title,w1200:w1200,section:section,titleWrap:titleWrap,titleWrapLeft:titleWrapLeft,dotImg:dotImg,titleWrapMore:titleWrapMore,hotAlbum:hotAlbum,albumMoudel:albumMoudel,albumWrap:albumWrap,line:line,albumList:albumList,albumSearch:albumSearch,inputWrap:inputWrap,searchIcon:searchIcon$1,chioseRow:chioseRow,chioseTagWrap:chioseTagWrap,videoList:videoList,videoNav:videoNav,wrapRight:wrapRight,arrow:arrow,mb48:mb48,mb32:mb32,pt41:pt41};var searchIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAACA1JREFUaEPVWW1wVOUVfs7dzRchaBypjKMQIWpZdjf4QfYmaapgAy1+YG32RoLaYaCdsS1tUaZT/5T0l21VcNCZtiPilJZC7oIUZqAw7RAacHfzQQ1718hHSvGjrRJqtAQSsnvv6dzNhJK97967m8QMfX/uOed5n+e978c5ZwnjGJ6o6nEZWMQSLyDQHQzMIkYJQIUMvkTAZwDOgOgEsRExXMaheOXyD8YxpSWUcgXztKszXDqtBvGTYNyRUzwRA9xGjK2YMrg1VvHUxZziBc5ZCyhvVacX5eEnAFYBKBrvxEw4D9CG/oH+jWcXrhwcK15WAvxtodVs8M8B3DDWiWziegB+Wqtq+PNYsG0FlEd/N60I+ZvBCI4FPNsYBgwAz8c/wHooip5tnOmXUcDwXucDAFXkAjhO390DN05d3nP70svZ4ggFeKN7bgJfPkpAuSMQ0afEOGQQwiCclAzq1aXkIOmuYon5ZnbRXIBrYeDLIBQ44gF/0kvwULdXGcrC1/oFPHF1qusC/gLgblsAok5mfrF/8OKebA6h78i2UuQXrAAbz4JRZofNxDvigYZGENhJhOUL+CLqNgCNNoHnwFirVSu/dwIX2T2qmu+aiWeYsZ6AwkwYTLQuLgdfcppjlAB/OPQUE/8mMyi6jASWddcq7zsBO9n90V0ys74bwIwMvkMSS/Lx6vq37bCuCEh9Ynf+CYC/IAwg7KOiwYaJeHxG8L3t228lw/1HMM/LMGdECwRrkHoAxeOKAH809AIzrxO5MaGrwF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llsSplrx3WKAH3dP46byhRegSAJWkaASGgPUlYOZ5M1d8eeoB1fgPArRnJEb2mycFvOy2EpbU4P7K9TIcrCuCmzOAYIsLrRtJ4KV7zuLieFgT7IzsDzMZzkOgR8/q2wT/WZ6DWbutctaBWGH/nrruNhH6YYP7fZTsYjKOQsB86h9mln4wHTvWCmoz7W1rc59y9N1O+NJcMo5YYj2Y6qGkz9NAUd02s4rFzTqs/6hZKd67oUCt1HfuIxR0zG3CzDZgAkJ8Ngat9iOgdMnjJ8WrlH74j22YjL29TgtzfPBF47N9ZHeJ0J3+Heicn8SYAT65kcvUnwsGkgcbuauWT4XZj8jCBZwF8XGdaZP4uwnT8j8x/cGsxX1do5ierwZByJZaF/wBAP9Xk+l+Y78zcv+6a5b6sHx6dUtDbOvNXRCIcBYwQ8IZD1SDeKKodsiApcmEQ9rBurBu5CDyd6kxXAib52ywBhGNIJOq02hV9o7ZdrpN7o2odGGsI+GqGZqwT5AUAu5ikjXG5Pna1sy/SvAmgNTa3U6drIK+ua+HXP7W9hZwYmPa7WtXpyTw8yMQLiWkBgDnCg0u4CKZTIIQlxiF3XuGBTG361DuULFVh3lgZBhHa+91YfOZexeymZP6XMhsRo3xamtz+It+MJPRpbjYK4ZYuJhmfdS8IfpxLDnVPZ2feUOKM2ZV4xIZD2wANLe6Rn/hP1mcgZ0HjCPDE1Xz3BdrFYEsRfwWWEBlKFiy5JgWYJMv3byooKp1hXuFLbdbiwDUrICXi9P6CovP9f8DwhZE26ILhlr52TQswGZe1vFE4taB4DxEWX6WgnyRaGgsEj1zzAlIi/t5SWPJx714w6gDzVsODI82G/wsBpohbwmrR9YRmuGlDfEHQfOxS47+y8wc8/IF7YgAAAABJRU5ErkJggg==";var index=exports('default',defineComponent({name:'home',components:{albumItem:albumItem,videoDetailItem:videoDetailItem,musicLIstItem:musicListItem,hotSearch:hotSearch,banner:banner,tagItem:tagItem},setup:function setup(){var state=reactive({albumList:[],videoList:[],search:'',tagTree:[]});var router=useRouter();var getAlbumList=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.post('/api-website/open/music/album/list',{data:{albumStatus:1,page:1,rows:8},params:{clientType:getUserType()}});case 3:res=_context.sent;state.albumList=res.data.rows;_context.next=10;break;case 7:_context.prev=7;_context.t0=_context["catch"](0);console.log(_context.t0);case 10:case"end":return _context.stop();}}},_callee,null,[[0,7]]);}));return function getAlbumList(){return _ref.apply(this,arguments);};}();var getVideoList=/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var res;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return request.post('/api-website/open/videoLessonGroup/page',{data:{albumStatus:'PASS',page:1,rows:3}});case 3:res=_context2.sent;state.videoList=res.data.rows;_context2.next=10;break;case 7:_context2.prev=7;_context2.t0=_context2["catch"](0);console.log(_context2.t0);case 10:case"end":return _context2.stop();}}},_callee2,null,[[0,7]]);}));return function getVideoList(){return _ref2.apply(this,arguments);};}();var gotoSearch=function gotoSearch(val,type){router.push({name:'searchdetail',params:{search:val,type:type}});};var getTagTree=/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){var res;return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return request.get('/api-website/open/MusicTag/tree',{});case 3:res=_context3.sent;state.tagTree=res.data.splice(0,2);// state.hotList = res.data
  2. _context3.next=10;break;case 7:_context3.prev=7;_context3.t0=_context3["catch"](0);console.log(_context3.t0);case 10:case"end":return _context3.stop();}}},_callee3,null,[[0,7]]);}));return function getTagTree(){return _ref3.apply(this,arguments);};}();var gotoSearchTag=function gotoSearchTag(tag){router.push({name:'searchdetail',params:{search:state.search,tag:tag.id,parentTagId:tag.parentTagId}});};//
  3. onMounted(function(){getAlbumList();getVideoList();getTagTree();});return function(){return createVNode("div",null,[createVNode(banner,null,null),createVNode("div",{"class":"bg-white"},[createVNode("div",{"class":styles.w1200},[createVNode("div",{"class":styles.section},[createVNode("div",{"class":styles.albumMoudel},[createVNode("div",{"class":styles.albumWrap},[createVNode("div",{"class":[styles.titleWrap,styles.hotAlbum]},[createVNode("div",{"class":[styles.titleWrapLeft]},[createVNode("h4",null,[createTextVNode("\u70ED\u95E8\u4E13\u8F91")]),createVNode("img",{"src":courseIcon,"class":styles.dotImg,"alt":""},null)]),createVNode("div",{"class":[styles.titleWrapMore],"onClick":function onClick(){return gotoSearch('','album');}},[createVNode("span",null,[createTextVNode("\u66F4\u591A")]),createVNode("img",{"src":arrow$1,"alt":""},null)])]),createVNode("div",{"class":styles.albumList},[state.albumList.map(function(item){return createVNode(albumItem,{"detail":item},null);})]),createVNode("div",{"class":styles.line},null)]),createVNode("div",{"class":styles.albumSearch},[createVNode("div",{"class":styles.inputWrap},[createVNode("img",{"src":searchIcon,"class":styles.searchIcon,"onClick":function onClick(){return gotoSearch(state.search,'music');},"alt":""},null),createVNode(ElInput,{"placeholder":"搜索你想要的曲目","modelValue":state.search,"onUpdate:modelValue":function onUpdateModelValue($event){return state.search=$event;}},null)]),createVNode("div",{"class":styles.chioseLineWrap},[state.tagTree.map(function(tree){return createVNode("div",{"class":styles.chioseRow},[createVNode("p",null,[tree.name,createTextVNode("\uFF1A")]),createVNode("div",{"class":[styles.chioseTagWrap,'chioseTagWrap']},[tree.children.map(function(tag){return(// effect={isChiose(tag)}
  4. createVNode(tagItem,{"class":styles.tags,"title":tag.name,"onSearchTag":function onSearchTag(){gotoSearchTag(tag);}},null));})])]);})])])])])])])]);};}}));}};});})();