index-legacy.079a4350.js 11 KB

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