1 |
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(k){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(k){return{type:"throw",arg:k}}}n.wrap=u;var h={};function p(){}function d(){}function _(){}var v={};s(v,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==r&&o.call(m,a)&&(v=m);var g=_.prototype=p.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(e,n){function r(i,a,c,l){var s=f(e[i],e,a);if("throw"!==s.type){var u=s.arg,h=u.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,c,l)}),(function(t){r("throw",t,c,l)})):n.resolve(h).then((function(t){u.value=t,c(u)}),(function(t){return r("throw",t,c,l)}))}l(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function j(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return d.prototype=_,s(g,"constructor",_),s(_,"constructor",d),d.displayName=s(_,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},n.awrap=function(t){return{__await:t}},x(w.prototype),s(w.prototype,c,(function(){return this})),n.AsyncIterator=w,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(g),s(g,l,"Generator"),s(g,a,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,a){try{var c=t[i](a),l=c.value}catch(s){return void n(s)}c.done?e(l):Promise.resolve(l).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,l,"next",t)}function l(t){n(a,o,i,c,l,"throw",t)}c(void 0)}))}}var o=document.createElement("style");o.innerHTML="._title_1l9xj_1{font-size:20px;color:red}._w1200_1l9xj_5{width:1200px!important;margin:0 auto}._section_1l9xj_9{padding:34px 0}._section_1l9xj_9 ._titleWrap_1l9xj_12{text-align:center;margin:0 auto;display:flex;flex-direction:row;align-items:center;justify-content:center}._section_1l9xj_9 ._titleWrap_1l9xj_12 ._dotImg_1l9xj_20{width:44px;height:44px}._section_1l9xj_9 ._titleWrap_1l9xj_12 h4{margin:0 10px;font-size:28px;font-weight:600;color:#333;line-height:45px}._section_1l9xj_9 ._albumList_1l9xj_31{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;margin-bottom:25px;margin-top:25px}._section_1l9xj_9 ._videoList_1l9xj_39{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;margin:25px 0}._section_1l9xj_9 ._videoNav_1l9xj_46{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._section_1l9xj_9 ._videoNav_1l9xj_46 h5{font-size:20px;font-weight:600;color:#333;line-height:30px}._section_1l9xj_9 ._videoNav_1l9xj_46 ._wrapRight_1l9xj_58{display:flex;flex-direction:row;cursor:pointer}._section_1l9xj_9 ._videoNav_1l9xj_46 ._wrapRight_1l9xj_58 span{font-size:16px;color:#666}._section_1l9xj_9 ._videoNav_1l9xj_46 ._wrapRight_1l9xj_58 ._arrow_1l9xj_67{width:20px;height:20px;margin-left:8px}._mb48_1l9xj_72{margin-bottom:48px!important}._mb32_1l9xj_75{margin-bottom:32px!important}\n",document.head.appendChild(o),System.register(["./arrow-legacy.c72c6a83.js","./scrollbar.min-legacy.ca8faa57.js","./index-legacy.9c3fe40b.js","./index-legacy.f5e97ef9.js","./index-legacy.a836dbe3.js","./index-legacy.66fac3d4.js","./index-legacy.fe7501fd.js","./pan-legacy.cb837250.js","./start-legacy.54568697.js","./icon-legacy.aed5a5b3.js","./music-legacy.146bf361.js","./index-legacy.b65dbaf4.js","./index2-legacy.794f5e8a.js","./hot-legacy.e5ec21a3.js"],(function(t){"use strict";var n,o,i,a,c,l,s,u,f,h,p,d,_;return{setters:[function(t){n=t.a},function(t){o=t.a},function(t){i=t.v},function(t){a=t.M},function(t){c=t.h},function(t){l=t.b},function(t){s=t.d,u=t.r,f=t.u,h=t.o,p=t.c,d=t.a,_=t.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var v="_w1200_1l9xj_5",y="_section_1l9xj_9",m="_titleWrap_1l9xj_12",g="_dotImg_1l9xj_20",x="_albumList_1l9xj_31",w="_videoList_1l9xj_39",j="_videoNav_1l9xj_46",b="_wrapRight_1l9xj_58",L="_arrow_1l9xj_67",E="_mb48_1l9xj_72",S="_mb32_1l9xj_75",N="./assets/titleDot.67d8584f.png";t("default",s({name:"home",components:{albumItem:o,videoDetailItem:i,musicLIstItem:a,hotSearch:c,banner:l},setup:function(){var t=u({albumList:[],videoList:[]}),a=f(),s=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});case 3:r=e.sent,t.albumList=r.data.rows,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),n,null,[[0,7]])})));return function(){return n.apply(this,arguments)}}(),k=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.post("/api-website/open/videoLessonGroup/page",{data:{albumStatus:"PASS",page:1,rows:6}});case 3:r=e.sent,t.videoList=r.data.rows,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),n,null,[[0,7]])})));return function(){return n.apply(this,arguments)}}();return h((function(){s(),k()})),function(){return p("div",null,[p(l,null,null),p("div",{class:"bg-white"},[p("div",{class:v},[p("div",{class:y},[p("div",{class:[m,E]},[p("img",{src:N,class:g,alt:""},null),p("h4",null,[d("热门专辑")]),p("img",{src:N,class:g,alt:""},null)]),p(c,{searchType:"MUSIC",onHotTag:function(t){!function(t){a.push({path:"/searchdetail",query:{search:t}})}(t)}},null),p("div",{class:x},[t.albumList.map((function(t){return p(o,{detail:t},null)}))])])])]),p("div",null,[p("div",{class:v},[p("div",{class:y},[p("div",{class:[m,S]},[p("img",{src:N,class:g,alt:""},null),p("h4",null,[d("精品视频课")]),p("img",{src:N,class:g,alt:""},null)]),p("div",{class:j},[p("h5",null,[d("精品视频课")]),p("div",{class:b,onClick:function(){a.push({path:"/videoDetailList"})}},[p("span",null,[d("更多")]),p("img",{class:L,src:n,alt:""},null)])]),p("div",{class:w},[t.videoList.map((function(t){return p(i,{detail:t},null)}))])])])])])}}}))}}}))}();
|