| 1234567891011121314151617 |
- ;(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);});};}System.register(['./index-legacy.3dab5223.js','./scrollbar.min-legacy.11c4cd5a.js','./index-legacy.d27cd9db.js','./vendor-legacy.9da4e0b2.js','./arrow-legacy.c72c6a83.js'],function(exports){'use strict';var searchInput,styles,hotSearch,albumItem,silder,request,defineComponent,reactive,onMounted,createVNode,ElTabs,ElTabPane;return{setters:[function(module){searchInput=module.s;styles=module.a;},function(module){hotSearch=module.h;albumItem=module.a;},function(module){silder=module.s;request=module.r;},function(module){defineComponent=module.d;reactive=module.r;onMounted=module.u;createVNode=module.c;ElTabs=module.q;ElTabPane=module.t;},function(){}],execute:function execute(){var searchAlbum=defineComponent({name:'searchdetail',components:{hotSearch:hotSearch,silder:silder,searchInput:searchInput,albumItem:albumItem},setup:function setup(){var state=reactive({albumList:[],musicList:[]});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:10}});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);};}();// const getMusicList = async () => {
- // try {
- // const res = await request.post('/api-website/open/music/sheet/list', {
- // data: {
- // albumStatus: 'PASS',
- // page: 1,
- // rows: 5,
- // state: 1
- // }
- // })
- // state.musicList = res.data.rows
- // } catch (e) {
- // console.log(e)
- // }
- // }
- onMounted(function(){getAlbumList();// getMusicList()
- });return function(){return createVNode("div",null,[createVNode("div",{"class":"bg-white"},[createVNode("div",{"class":styles.w1200},[createVNode("div",{"class":styles.section},[createVNode("div",{"class":styles.albumList},[state.albumList.map(function(item){return createVNode(albumItem,{"detail":item},null);})])])])])]);};}});var searchdetail=exports('default',defineComponent({name:'searchdetail',components:{hotSearch:hotSearch,silder:silder,searchInput:searchInput,searchAlbum:searchAlbum},setup:function setup(){var state=reactive({albumList:[],musicList:[]});var getAlbumList=/*#__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/music/album/list',{data:{albumStatus:1,page:1,rows:10}});case 3:res=_context2.sent;state.albumList=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 getAlbumList(){return _ref2.apply(this,arguments);};}();var getMusicList=/*#__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.post('/api-website/open/music/sheet/list',{data:{albumStatus:'PASS',page:1,rows:5,state:1}});case 3:res=_context3.sent;state.musicList=res.data.rows;_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 getMusicList(){return _ref3.apply(this,arguments);};}();onMounted(function(){getAlbumList();getMusicList();});return function(){return createVNode("div",null,[createVNode("div",{"class":"bg-white"},[createVNode("div",{"class":styles.w1200},[createVNode("div",{"class":styles.section},[createVNode(searchInput,null,null),createVNode(hotSearch,{"type":'search'},null),createVNode(ElTabs,null,{default:function _default(){return[createVNode(ElTabPane,{"label":"专辑","name":"album"},{default:function _default(){return[createVNode(searchAlbum,null,null)];}}),createVNode(ElTabPane,{"label":"乐谱","name":"music"},null)];}})])])])]);};}}));}};});})();
|