index-legacy.4e294262.js 11 KB

1
  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 r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(N){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=b(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}r.wrap=l;var f={};function p(){}function d(){}function v(){}var _={};s(_,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==n&&o.call(g,a)&&(_=g);var m=v.prototype=p.prototype=Object.create(_);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,u){var s=h(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.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,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(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 r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=v,s(m,"constructor",v),s(v,"constructor",d),d.displayName=s(v,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},r.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),s(m,u,"Generator"),s(m,a,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,j.prototype={constructor:j,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 r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;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,f):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),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}var o=document.createElement("style");o.innerHTML="._title_1hrk6_1{font-size:20px;color:red}._w1200_1hrk6_5{width:1200px!important;margin:0 auto}._section_1hrk6_9{padding:44px 0 16px}._section_1hrk6_9 ._titleWrap_1hrk6_12{text-align:center;margin:0 auto;display:flex;flex-direction:row;align-items:center;justify-content:center}._section_1hrk6_9 ._titleWrap_1hrk6_12 ._dotImg_1hrk6_20{width:44px;height:44px}._section_1hrk6_9 ._titleWrap_1hrk6_12 h4{margin:0 10px;font-size:28px;font-weight:600;color:#333;line-height:45px}._section_1hrk6_9 ._albumList_1hrk6_31{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;margin-top:25px}._section_1hrk6_9 ._videoList_1hrk6_38{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;margin:25px 0}._section_1hrk6_9 ._videoNav_1hrk6_45{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 2px}._section_1hrk6_9 ._videoNav_1hrk6_45 h5{font-size:20px;font-weight:600;color:#333;line-height:30px}._section_1hrk6_9 ._videoNav_1hrk6_45 ._wrapRight_1hrk6_58{display:flex;flex-direction:row;cursor:pointer}._section_1hrk6_9 ._videoNav_1hrk6_45 ._wrapRight_1hrk6_58 span{font-size:16px;color:#666}._section_1hrk6_9 ._videoNav_1hrk6_45 ._wrapRight_1hrk6_58 ._arrow_1hrk6_67{width:20px;height:20px;margin-left:4px}._mb48_1hrk6_72{margin-bottom:44px!important}._mb32_1hrk6_75{margin-bottom:32px!important}\n",document.head.appendChild(o),System.register(["./scrollbar.min-legacy.301c5eaa.js","./index-legacy.93ac3482.js","./index-legacy.b95c3643.js","./index-legacy.4bf10939.js","./index-legacy.fef411e2.js","./index-legacy.f525a5c0.js","./pan-legacy.cb837250.js","./start-legacy.54568697.js","./icon-legacy.aed5a5b3.js","./music-legacy.146bf361.js","./arrow-legacy.c72c6a83.js","./index-legacy.36b84c35.js","./index2-legacy.998a9364.js","./hot-legacy.16c30716.js"],(function(t){"use strict";var r,o,i,a,c,u,s,l,h,f,p,d;return{setters:[function(t){r=t.a},function(t){o=t.v},function(t){i=t.M},function(t){a=t.h},function(t){c=t.b},function(t){u=t.d,s=t.r,l=t.u,h=t.o,f=t.c,p=t.a,d=t.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var v="_w1200_1hrk6_5",_="_section_1hrk6_9",y="_titleWrap_1hrk6_12",g="_dotImg_1hrk6_20",m="_albumList_1hrk6_31",w="_videoList_1hrk6_38",x="_mb48_1hrk6_72",b="_mb32_1hrk6_75",k="./assets/titleDot.67d8584f.png";t("default",u({name:"home",components:{albumItem:r,videoDetailItem:o,musicLIstItem:i,hotSearch:a,banner:c},setup:function(){var t=s({albumList:[],videoList:[]}),i=l(),u=function(){var r=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.post("/api-website/open/music/album/list",{data:{albumStatus:1,page:1,rows:10}});case 3:n=e.sent,t.albumList=n.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()}}),r,null,[[0,7]])})));return function(){return r.apply(this,arguments)}}(),L=function(){var r=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.post("/api-website/open/videoLessonGroup/page",{data:{albumStatus:"PASS",page:1,rows:6}});case 3:n=e.sent,t.videoList=n.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()}}),r,null,[[0,7]])})));return function(){return r.apply(this,arguments)}}();return h((function(){u(),L()})),function(){return f("div",null,[f(c,null,null),f("div",{class:"bg-white"},[f("div",{class:v},[f("div",{class:_},[f("div",{class:[y,x]},[f("img",{src:k,class:g,alt:""},null),f("h4",null,[p("热门专辑")]),f("img",{src:k,class:g,alt:""},null)]),f(a,{searchType:"MUSIC",onHotTag:function(t){!function(t){i.push({path:"/searchdetail",query:{search:t}})}(t)}},null),f("div",{class:m},[t.albumList.map((function(t){return f(r,{detail:t},null)}))])])])]),f("div",null,[f("div",{class:v},[f("div",{class:_},[f("div",{class:[y,b]},[f("img",{src:k,class:g,alt:""},null),f("h4",null,[p("精品视频课")]),f("img",{src:k,class:g,alt:""},null)]),f(a,{searchType:"COURSE",onHotTag:function(t){!function(t){i.push({path:"/videoDetailList",query:{search:t}})}(t)},gotoPath:"/videoDetailList"},null),f("div",{class:w},[t.videoList.map((function(t){return f(o,{detail:t},null)}))])])])])])}}}))}}}))}();