| 1 |
- !function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}var a=document.createElement("style");a.innerHTML="._error_1s57h_1{background-color:#fff;display:flex;flex-direction:column;min-height:calc(100vh - .53333rem);align-items:center;justify-content:center}._error_1s57h_1 ._info_1s57h_9{display:flex;align-items:center;margin-bottom:.8rem}._error_1s57h_1 ._info_1s57h_9 span{display:inline-block;margin-left:.26667rem;color:#58727e;font-size:.48rem}._error_1s57h_1 .col-result-container,._error_1s57h_1 .van-empty{padding-top:0}._error_1s57h_1 .van-button{width:50%}\n",document.head.appendChild(a),System.register(["./index-legacy.17323dca.js","./routes-common-legacy.178fd366.js"],(function(e,n){"use strict";var o,a,c,u,l,m,s,p,f,d,h,v,g,y,b,j,x,_,C,A,w,O,P,R,T,E;return{setters:[function(t){o=t.d,a=t._,c=t.r,u=t.c,l=t.o,m=t.g,s=t.t,p=t.x,f=t.i,d=t.b,h=t.a,v=t.f,g=t.n,y=t.j,b=t.C,j=t.R,x=t.F,_=t.k,C=t.l,A=t.m,w=t.D,O=t.q,P=t.v,R=t.w},function(t){T=t.r,E=t.a}],execute:function(){var e=o({name:"App"});var S=a(e,[["render",function(t,e,n,r,o,i){var a=c("router-view");return l(),u(a)}]]),k="_error_1s57h_1",D=o({name:"Auth",data:function(){return{loading:!1}},computed:{isNeedView:function(){return"login"===m.user.status||"/login"===this.$route.path}},mounted:function(){this.setAuth()},methods:{setAuth:function(){var t,e=this;return(t=regeneratorRuntime.mark((function t(){var n,o,i,a,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.$route.query,(o=n.userInfo||n.Authorization)&&s(o),!e.loading){t.next=5;break}return t.abrupt("return");case 5:if("init"!==m.user.status&&"error"!==m.user.status){t.next=20;break}return e.loading=!0,t.prev=7,t.next=10,p.get("/api-teacher/teacher/queryUserInfo",{requestType:"form",initRequest:!0});case 10:i=t.sent,f(i.data),t.next=19;break;case 14:t.prev=14,t.t0=t.catch(7),a=t.t0.message,console.log(a),-1===a.indexOf("403")&&-1===a.indexOf("authentication")?d():h();case 19:e.loading=!1;case 20:if("logout"===m.user.status)if(v().isApp)g({api:"login"});else try{c=e.$route,u=r({returnUrl:e.$route.path},e.$route.query),c.meta.isRegister&&(u.isRegister=c.meta.isRegister),e.$router.replace({path:"/login",query:u})}catch(l){}case 21:case"end":return t.stop()}}),t,null,[[7,14]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function c(t){i(a,r,o,c,u,"next",t)}function u(t){i(a,r,o,c,u,"throw",t)}c(void 0)}))})()}},render:function(){return y(x,null,["error"===m.user.status?y("div",{class:k},[y(b,{type:"notFond",classImgSize:"CERT",tips:"加载失败,请稍后重试",buttonText:"重新加载",plain:!0,onClick:this.setAuth},null)]):this.isNeedView?y(j,null,null):null])}}),$=[{path:"/shareVideo",name:"shareVideo",component:function(){return _((function(){return n.import("./index-legacy.39eb14db.js")}),void 0)},meta:{title:"分享视频课"}},{path:"/shareLive",name:"shareLive",component:function(){return _((function(){return n.import("./index-legacy.b3214c48.js")}),void 0)},meta:{title:"分享直播课"}},{path:"/shareMall",name:"shareMall",component:function(){return _((function(){return n.import("./index-legacy.697a3595.js")}),void 0)},meta:{title:"分享商品"}},{path:"/shareVip",name:"shareVip",component:function(){return _((function(){return n.import("./index-legacy.f0abac1f.js")}),void 0)},meta:{title:"会员中心"}},{path:"/shareAblum",name:"shareAblum",component:function(){return _((function(){return n.import("./index-legacy.798b1af8.js")}),void 0)},meta:{title:"分享专辑"}},{path:"/shareMusic",name:"shareMusic",component:function(){return _((function(){return n.import("./index-legacy.4a2182a6.js")}),void 0)},meta:{title:"分享曲谱"}}],I=[{path:"/",component:D,children:[].concat(t(T),[{path:"/login",name:"login",component:function(){return _((function(){return n.import("./login-legacy.c096ec81.js")}),void 0)},meta:{isRegister:!1}},{path:"/home",name:"home",component:function(){return _((function(){return n.import("./index-legacy.5c926230.js")}),void 0)}},{path:"/teacherCert",name:"teacherCert",component:function(){return _((function(){return n.import("./index-legacy.003b530f.js")}),void 0)},meta:{title:"达人认证"}},{path:"/teacherCertUpdate",name:"teacherCertUpdate",component:function(){return _((function(){return n.import("./index-legacy.8205363c.js")}),void 0)},meta:{title:"资料修改"}},{path:"/music-upload",component:function(){return _((function(){return n.import("./index-legacy.15d99f74.js")}),void 0)},meta:{title:"上传曲谱"}},{path:"/music-upload/:id/edit",component:function(){return _((function(){return n.import("./index-legacy.15d99f74.js")}),void 0)},meta:{title:"修改曲谱"}},{path:"/review-list",component:function(){return _((function(){return n.import("./list-legacy.2d690bbf.js")}),void 0)},meta:{title:"曲谱审核列表"}},{path:"/review/:id",component:function(){return _((function(){return n.import("./detail-legacy.c8e6b65e.js")}),void 0)},meta:{title:"曲谱审核详情"}},{path:"/openLive",name:"openLive",component:function(){return _((function(){return n.import("./index-legacy.cd71aa8c.js")}),void 0)},meta:{title:"开通直播"}},{path:"/liveDetail",name:"liveDetail",component:function(){return _((function(){return n.import("./live-detail-legacy.658278f0.js")}),void 0)},meta:{title:"直播课详情"}},{path:"/musicCert",name:"musicCert",component:function(){return _((function(){return n.import("./index-legacy.25e2d6f8.js")}),void 0)},meta:{title:"音乐人认证"}},{path:"/videoCreate",name:"videoCreate",component:function(){return _((function(){return n.import("./create-legacy.43f3bace.js")}),void 0)},meta:{title:"创建视频课"}},{path:"/videoDetail",name:"videoDetail",component:function(){return _((function(){return n.import("./video-detail-legacy.6ea6dcbb.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/videoClassDetail",name:"videoClassDetail",component:function(){return _((function(){return n.import("./video-class-detail-legacy.3f9979bd.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/liveCreate",name:"liveCreate",component:function(){return _((function(){return n.import("./create-legacy.885046e3.js")}),void 0)},meta:{title:"创建直播课"}},{path:"/practiceSetting",name:"practiceSetting",component:function(){return _((function(){return n.import("./practice-setting-legacy.ca79c8d0.js")}),void 0)},meta:{title:"陪练课设置"}},{path:"/myFans",name:"myFans",component:function(){return _((function(){return n.import("./index-legacy.0e7eb918.js")}),void 0)},meta:{title:"我的粉丝"}},{path:"/pianoRoom",name:"pianoRoom",component:function(){return _((function(){return n.import("./index-legacy.c679b905.js")}),void 0)},meta:{title:"云酷琴房"}},{path:"/courseRecord",name:"courseRecord",component:function(){return _((function(){return n.import("./index-legacy.cdf20417.js")}),void 0)},meta:{title:"课程记录"}},{path:"/accountRechargeTimer",name:"accountRechargeTimer",component:function(){return _((function(){return n.import("./index-legacy.2cf06060.js")}),void 0)},meta:{title:"账户充值"}},{path:"/myStudent",name:"myStudent",component:function(){return _((function(){return n.import("./index-legacy.321cd93c.js")}),void 0)},meta:{title:"我的学员"}},{path:"/classArrangement",name:"classArrangement",component:function(){return _((function(){return n.import("./index-legacy.7dc60474.js")}),void 0)},meta:{title:"排课"}},{path:"/createClass",name:"createClass",component:function(){return _((function(){return n.import("./index-legacy.ffd7ac62.js").then((function(t){return t.i}))}),void 0)},meta:{title:"创建直播课"}},{path:"/rechargeRecord",name:"rechargeRecord",component:function(){return _((function(){return n.import("./index-legacy.dcc4c8f8.js")}),void 0)},meta:{title:"交易记录"}},{path:"/cashProtocol",name:"cashProtocol",component:function(){return _((function(){return n.import("./index-legacy.b7102480.js")}),void 0)},meta:{title:"结算协议"}},{path:"/incomeConsus",name:"incomeConsus",component:function(){return _((function(){return n.import("./index-legacy.2ef827a8.js")}),void 0)},meta:{title:"收入统计"}},{path:"/extendPlan",name:"extendPlan",component:function(){return _((function(){return n.import("./index-legacy.c8d42831.js")}),void 0)},meta:{title:"推广计划"}},{path:"/extendPlanDetail",name:"extendPlanDetail",component:function(){return _((function(){return n.import("./detail-legacy.5ca22d25.js")}),void 0)},meta:{title:"推广计划"}},{path:"/track-review-activity",component:function(){return _((function(){return n.import("./index-legacy.13a585bb.js")}),void 0)},meta:{title:"曲目评测活动"}},{path:"/leaderboard",component:function(){return _((function(){return n.import("./index-legacy.ab98ae17.js")}),void 0)},meta:{title:"曲目挑战排行榜"}},{path:"/mySheetMusic",component:function(){return _((function(){return n.import("./index-legacy.fe3eca6c.js")}),void 0)},meta:{title:"我的乐谱"}},{path:"/teacherHome",component:function(){return _((function(){return n.import("./teacher-home-legacy.b142b24a.js")}),void 0)},meta:{title:"老师主页"}},{path:"/train-tool",component:function(){return _((function(){return n.import("./index-legacy.9f3057d7.js")}),void 0)},meta:{title:"训练教程"}},{path:"/courseList",component:function(){return _((function(){return n.import("./index-legacy.39cf0a6e.js")}),void 0)},meta:{title:"教程详情"}},{path:"/coursewarePlay",component:function(){return _((function(){return n.import("./index-legacy.bbce7fdc.js")}),void 0)},meta:{title:"教程播放"}},{path:"/upload-protocol",component:function(){return _((function(){return n.import("./index-legacy.8fd20ad7.js")}),void 0)},meta:{title:"协议"}}])}].concat(t(E),$,[{path:"/:pathMatch(.*)*",component:function(){return _((function(){return n.import("./index-legacy.fc0dc2e1.js")}),void 0)},meta:{title:"404 Not Fund",platform:"TEACHER"}}]),M=C({history:A(),routes:I,scrollBehavior:function(t,e,n){if(t.hash)return{el:t.hash,behavior:"smooth"}}});M.beforeEach((function(t,e,n){document.title=t.meta.title||"酷乐秀",n()}));var q=!1;M.onError((function(t){if(t instanceof Error){var e=t.name.indexOf("chunk"),n=M.currentRoute.value.fullPath;e&&!q&&(q=!0,w.alert({title:"更新提示",message:"APP有更新请点击确定刷新页面?",confirmButtonColor:"var(--van-primary)"}).then((function(){v().isApp?g({api:"back"}):(location.hash=n,window.location.reload())})))}}));var H=O(S);g({api:"setBarStatus",content:{status:0}}),g({api:"backIconChange",content:{backIconHide:!0}}),g({api:"getVersion"},(function(t){m.version=t.content.version,console.log(t,"version")})),v().isTeacher?m.platformType="TEACHER":v().isStudent?m.platformType="STUDENT":m.platformType="TEACHER","TEACHER"===m.platformType?m.platformApi="/api-teacher":m.platformApi="/api-student",P.locale("zh-ch"),H.config.globalProperties.$dayjs=P,H.config.globalProperties.$filters=R,H.use(M),H.mount("#app")}}}))}();
|