teacher-legacy.bc269533.js 13 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(m){return void n(m)}c.done?t(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(["./ResizeObserver.es-legacy.8d60aee1.js","./routes-common-legacy.8df12de3.js"],(function(t,n){"use strict";var o,a,c,u,m,l,s,p,f,d,h,g,v,y,b,j,x,w,_,C,A,O,R,P,S,T,E;return{setters:[function(e){o=e.d,a=e._,c=e.r,u=e.c,m=e.o,l=e.g,s=e.u,p=e.y,f=e.i,d=e.b,h=e.a,g=e.f,v=e.n,y=e.j,b=e.C,j=e.R,x=e.F,w=e.k,_=e.l,C=e.m,A=e.D,O=e.q,R=e.t,P=e.w,S=e.x},function(e){T=e.r,E=e.a}],execute:function(){var t=o({name:"App"});var k=a(t,[["render",function(e,t,n,r,o,i){var a=c("router-view");return m(),u(a)}]]),D="_error_1s57h_1",$=o({name:"Auth",data:function(){return{loading:!1}},computed:{isNeedView:function(){return"login"===l.user.status||"/login"===this.$route.path||"/login-cert"===this.$route.path}},mounted:function(){this.setAuth()},methods:{setAuth:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){var n,o,i,a,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.$route.query,(o=n.userInfo||n.Authorization)&&s(o),!t.loading){e.next=5;break}return e.abrupt("return");case 5:if("init"!==l.user.status&&"error"!==l.user.status){e.next=20;break}return t.loading=!0,e.prev=7,e.next=10,p.get("/api-teacher/teacher/queryUserInfo",{requestType:"form",initRequest:!0});case 10:i=e.sent,f(i.data),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(7),a=e.t0.message,console.log(a),-1===a.indexOf("403")&&-1===a.indexOf("authentication")?d():h();case 19:t.loading=!1;case 20:if("logout"===l.user.status)if(g().isApp)v({api:"login"});else try{c=t.$route,u=r({returnUrl:t.$route.path},t.$route.query),c.meta.isRegister&&(u.isRegister=c.meta.isRegister),t.$router.replace({path:"/login",query:u})}catch(m){}case 21:case"end":return e.stop()}}),e,null,[[7,14]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,u,"next",e)}function u(e){i(a,r,o,c,u,"throw",e)}c(void 0)}))})()}},render:function(){return y(x,null,["error"===l.user.status?y("div",{class:D},[y(b,{type:"notFond",classImgSize:"CERT",tips:"加载失败,请稍后重试",buttonText:"重新加载",plain:!0,onClick:this.setAuth},null)]):this.isNeedView?y(j,null,null):null])}}),I=[{path:"/shareVideo",name:"shareVideo",component:function(){return w((function(){return n.import("./index-legacy.57ab86c5.js")}),void 0)},meta:{title:"分享视频课"}},{path:"/shareLive",name:"shareLive",component:function(){return w((function(){return n.import("./index-legacy.ac364a23.js")}),void 0)},meta:{title:"分享直播课"}},{path:"/shareMall",name:"shareMall",component:function(){return w((function(){return n.import("./index-legacy.3e37a82d.js")}),void 0)},meta:{title:"分享商品"}},{path:"/shareVip",name:"shareVip",component:function(){return w((function(){return n.import("./index-legacy.faf0a6bf.js")}),void 0)},meta:{title:"会员中心"}},{path:"/shareAblum",name:"shareAblum",component:function(){return w((function(){return n.import("./index-legacy.2b5d3d60.js")}),void 0)},meta:{title:"分享专辑"}},{path:"/shareMusic",name:"shareMusic",component:function(){return w((function(){return n.import("./index-legacy.938c49fb.js")}),void 0)},meta:{title:"分享曲谱"}},{path:"/login-cert",name:"login-cert",component:function(){return w((function(){return n.import("./login-cert-legacy.7996a286.js")}),void 0)},meta:{isRegister:!1,title:"酷乐秀学院老师入驻"}}],L=[{path:"/",component:$,children:[].concat(e(T),[{path:"/login",name:"login",component:function(){return w((function(){return n.import("./login-legacy.56dd2853.js")}),void 0)},meta:{isRegister:!1}},{path:"/home",name:"home",component:function(){return w((function(){return n.import("./index-legacy.af04c38f.js")}),void 0)}},{path:"/teacherCert",name:"teacherCert",component:function(){return w((function(){return n.import("./index-legacy.e3c41e49.js")}),void 0)},meta:{title:"老师认证"}},{path:"/teacherCertUpdate",name:"teacherCertUpdate",component:function(){return w((function(){return n.import("./index-legacy.67b60c86.js")}),void 0)},meta:{title:"资料修改"}},{path:"/music-upload",component:function(){return w((function(){return n.import("./index-legacy.ef413376.js")}),void 0)},meta:{title:"上传曲谱"}},{path:"/music-upload/:id/edit",component:function(){return w((function(){return n.import("./index-legacy.ef413376.js")}),void 0)},meta:{title:"修改曲谱"}},{path:"/review-list",component:function(){return w((function(){return n.import("./list-legacy.a9c2d654.js")}),void 0)},meta:{title:"曲谱审核列表"}},{path:"/review/:id",component:function(){return w((function(){return n.import("./detail-legacy.036fa634.js")}),void 0)},meta:{title:"曲谱审核详情"}},{path:"/openLive",name:"openLive",component:function(){return w((function(){return n.import("./index-legacy.6232c205.js")}),void 0)},meta:{title:"开通直播"}},{path:"/liveDetail",name:"liveDetail",component:function(){return w((function(){return n.import("./live-detail-legacy.8259b77b.js")}),void 0)},meta:{title:"直播课详情"}},{path:"/musicCert",name:"musicCert",component:function(){return w((function(){return n.import("./index-legacy.e0e928f3.js")}),void 0)},meta:{title:"音乐人认证"}},{path:"/videoCreate",name:"videoCreate",component:function(){return w((function(){return n.import("./create-legacy.573c5b80.js")}),void 0)},meta:{title:"创建视频课"}},{path:"/videoDetail",name:"videoDetail",component:function(){return w((function(){return n.import("./video-detail-legacy.a07c887d.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/videoClassDetail",name:"videoClassDetail",component:function(){return w((function(){return n.import("./video-class-detail-legacy.24923b48.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/liveCreate",name:"liveCreate",component:function(){return w((function(){return n.import("./create-legacy.567ca674.js")}),void 0)},meta:{title:"创建直播课"}},{path:"/practiceSetting",name:"practiceSetting",component:function(){return w((function(){return n.import("./practice-setting-legacy.2d16c528.js")}),void 0)},meta:{title:"趣纠课设置"}},{path:"/practiceSettingTimer",name:"practiceSettingTimer",component:function(){return w((function(){return n.import("./timer-legacy.983c0925.js")}),void 0)},meta:{title:"设置约课时间段"}},{path:"/myFans",name:"myFans",component:function(){return w((function(){return n.import("./index-legacy.b808b5f4.js")}),void 0)},meta:{title:"我的粉丝"}},{path:"/pianoRoom",name:"pianoRoom",component:function(){return w((function(){return n.import("./index-legacy.11a7fb16.js")}),void 0)},meta:{title:"云酷琴房"}},{path:"/courseRecord",name:"courseRecord",component:function(){return w((function(){return n.import("./index-legacy.e8c24867.js")}),void 0)},meta:{title:"课程记录"}},{path:"/accountRechargeTimer",name:"accountRechargeTimer",component:function(){return w((function(){return n.import("./index-legacy.c2df394e.js")}),void 0)},meta:{title:"账户充值"}},{path:"/myStudent",name:"myStudent",component:function(){return w((function(){return n.import("./index-legacy.7a4d0946.js")}),void 0)},meta:{title:"我的学员"}},{path:"/classArrangement",name:"classArrangement",component:function(){return w((function(){return n.import("./index-legacy.14b9ccc8.js")}),void 0)},meta:{title:"排课"}},{path:"/createClass",name:"createClass",component:function(){return w((function(){return n.import("./index-legacy.5cb44c36.js").then((function(e){return e.i}))}),void 0)},meta:{title:"创建直播课"}},{path:"/rechargeRecord",name:"rechargeRecord",component:function(){return w((function(){return n.import("./index-legacy.38b678e8.js")}),void 0)},meta:{title:"交易记录"}},{path:"/cashProtocol",name:"cashProtocol",component:function(){return w((function(){return n.import("./index-legacy.d9b77e6c.js")}),void 0)},meta:{title:"结算协议"}},{path:"/incomeConsus",name:"incomeConsus",component:function(){return w((function(){return n.import("./index-legacy.6e505dc6.js")}),void 0)},meta:{title:"收入统计"}},{path:"/extendPlan",name:"extendPlan",component:function(){return w((function(){return n.import("./index-legacy.5d2b5366.js")}),void 0)},meta:{title:"推广计划"}},{path:"/extendPlanDetail",name:"extendPlanDetail",component:function(){return w((function(){return n.import("./detail-legacy.510d6c96.js")}),void 0)},meta:{title:"推广计划"}},{path:"/track-review-activity",component:function(){return w((function(){return n.import("./index-legacy.a1f5843b.js")}),void 0)},meta:{title:"曲目评测活动"}},{path:"/leaderboard",component:function(){return w((function(){return n.import("./index-legacy.6d869ea8.js")}),void 0)},meta:{title:"曲目挑战排行榜"}},{path:"/mySheetMusic",component:function(){return w((function(){return n.import("./index-legacy.aa09e654.js")}),void 0)},meta:{title:"我的乐谱"}},{path:"/teacherHome",component:function(){return w((function(){return n.import("./teacher-home-legacy.f5869748.js")}),void 0)},meta:{title:"老师主页"}},{path:"/train-tool",component:function(){return w((function(){return n.import("./index-legacy.5980c0a7.js")}),void 0)},meta:{title:"训练教程"}},{path:"/courseList",component:function(){return w((function(){return n.import("./index-legacy.a3ee2825.js")}),void 0)},meta:{title:"教程详情"}},{path:"/courseListSearch",name:"courseListSearch",component:function(){return w((function(){return n.import("./index-legacy.cdf50461.js")}),void 0)},meta:{title:"搜索"}},{path:"/coursewarePlay",component:function(){return w((function(){return n.import("./index-legacy.011c65db.js")}),void 0)},meta:{title:"教程播放"}},{path:"/upload-protocol",component:function(){return w((function(){return n.import("./index-legacy.c1b6ab2b.js")}),void 0)},meta:{title:"协议"}}])}].concat(e(E),I,[{path:"/:pathMatch(.*)*",component:function(){return w((function(){return n.import("./index-legacy.5a5acb4f.js")}),void 0)},meta:{title:"404 Not Fund",platform:"TEACHER"}}]),M=_({history:C(),routes:L,scrollBehavior:function(e,t,n){if(e.hash)return{el:e.hash,behavior:"smooth"}}});M.beforeEach((function(e,t,n){document.title=e.meta.title||"酷乐秀",n()}));var q=!1;M.onError((function(e){if(e instanceof Error){var t=e.name.indexOf("chunk"),n=M.currentRoute.value.fullPath;t&&!q&&(q=!0,A.alert({title:"更新提示",message:"APP有更新请点击确定刷新页面?",confirmButtonColor:"var(--van-primary)"}).then((function(){g().isApp?v({api:"back"}):(location.hash=n,window.location.reload())})))}})),void 0===window.ResizeObserver&&(window.ResizeObserver=O);var z=R(k);v({api:"setBarStatus",content:{status:0}}),v({api:"backIconChange",content:{backIconHide:!0}}),v({api:"getVersion"},(function(e){l.version=e.content.version,console.log(e,"version")})),g().isTeacher?l.platformType="TEACHER":g().isStudent?l.platformType="STUDENT":l.platformType="TEACHER","TEACHER"===l.platformType?l.platformApi="/api-teacher":l.platformApi="/api-student",P.locale("zh-ch"),z.config.globalProperties.$dayjs=P,z.config.globalProperties.$filters=S,z.use(M),z.mount("#app")}}}))}();