teacher-legacy.8daab34e.js 12 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(l){return void n(l)}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(["./index-legacy.7a891e5d.js","./routes-common-legacy.aee44e61.js"],(function(t,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(e){o=e.d,a=e._,c=e.r,u=e.c,l=e.o,m=e.g,s=e.t,p=e.x,f=e.i,d=e.b,h=e.a,v=e.f,g=e.n,y=e.j,b=e.C,j=e.R,x=e.F,_=e.k,C=e.l,A=e.m,w=e.D,O=e.q,P=e.v,R=e.w},function(e){T=e.r,E=e.a}],execute:function(){var t=o({name:"App"});var S=a(t,[["render",function(e,t,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 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"!==m.user.status&&"error"!==m.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"===m.user.status)if(v().isApp)g({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(l){}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"===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.983090d0.js")}),void 0)},meta:{title:"分享视频课"}},{path:"/shareLive",name:"shareLive",component:function(){return _((function(){return n.import("./index-legacy.551070d9.js")}),void 0)},meta:{title:"分享直播课"}},{path:"/shareMall",name:"shareMall",component:function(){return _((function(){return n.import("./index-legacy.7f73eebc.js")}),void 0)},meta:{title:"分享商品"}},{path:"/shareVip",name:"shareVip",component:function(){return _((function(){return n.import("./index-legacy.b42e0468.js")}),void 0)},meta:{title:"会员中心"}},{path:"/shareAblum",name:"shareAblum",component:function(){return _((function(){return n.import("./index-legacy.52f4d032.js")}),void 0)},meta:{title:"分享专辑"}},{path:"/shareMusic",name:"shareMusic",component:function(){return _((function(){return n.import("./index-legacy.ba9136a3.js")}),void 0)},meta:{title:"分享曲谱"}}],I=[{path:"/",component:D,children:[].concat(e(T),[{path:"/login",name:"login",component:function(){return _((function(){return n.import("./login-legacy.57eda194.js")}),void 0)},meta:{isRegister:!1}},{path:"/home",name:"home",component:function(){return _((function(){return n.import("./index-legacy.f009a07d.js")}),void 0)}},{path:"/teacherCert",name:"teacherCert",component:function(){return _((function(){return n.import("./index-legacy.d5159fa0.js")}),void 0)},meta:{title:"达人认证"}},{path:"/teacherCertUpdate",name:"teacherCertUpdate",component:function(){return _((function(){return n.import("./index-legacy.3ef00481.js")}),void 0)},meta:{title:"资料修改"}},{path:"/music-upload",component:function(){return _((function(){return n.import("./index-legacy.a7716cfd.js")}),void 0)},meta:{title:"上传曲谱"}},{path:"/music-upload/:id/edit",component:function(){return _((function(){return n.import("./index-legacy.a7716cfd.js")}),void 0)},meta:{title:"修改曲谱"}},{path:"/review-list",component:function(){return _((function(){return n.import("./list-legacy.9c6a69dc.js")}),void 0)},meta:{title:"曲谱审核列表"}},{path:"/review/:id",component:function(){return _((function(){return n.import("./detail-legacy.17d3c593.js")}),void 0)},meta:{title:"曲谱审核详情"}},{path:"/openLive",name:"openLive",component:function(){return _((function(){return n.import("./index-legacy.02639958.js")}),void 0)},meta:{title:"开通直播"}},{path:"/liveDetail",name:"liveDetail",component:function(){return _((function(){return n.import("./live-detail-legacy.b0ba5a26.js")}),void 0)},meta:{title:"直播课详情"}},{path:"/musicCert",name:"musicCert",component:function(){return _((function(){return n.import("./index-legacy.78f4ce7c.js")}),void 0)},meta:{title:"音乐人认证"}},{path:"/videoCreate",name:"videoCreate",component:function(){return _((function(){return n.import("./create-legacy.753e8a5e.js")}),void 0)},meta:{title:"创建视频课"}},{path:"/videoDetail",name:"videoDetail",component:function(){return _((function(){return n.import("./video-detail-legacy.ffb0837f.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/videoClassDetail",name:"videoClassDetail",component:function(){return _((function(){return n.import("./video-class-detail-legacy.c52ca48e.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/liveCreate",name:"liveCreate",component:function(){return _((function(){return n.import("./create-legacy.657ce7e8.js")}),void 0)},meta:{title:"创建直播课"}},{path:"/practiceSetting",name:"practiceSetting",component:function(){return _((function(){return n.import("./practice-setting-legacy.766089ee.js")}),void 0)},meta:{title:"陪练课设置"}},{path:"/myFans",name:"myFans",component:function(){return _((function(){return n.import("./index-legacy.6b241534.js")}),void 0)},meta:{title:"我的粉丝"}},{path:"/pianoRoom",name:"pianoRoom",component:function(){return _((function(){return n.import("./index-legacy.e7459268.js")}),void 0)},meta:{title:"云酷琴房"}},{path:"/courseRecord",name:"courseRecord",component:function(){return _((function(){return n.import("./index-legacy.1f3a2f4a.js")}),void 0)},meta:{title:"课程记录"}},{path:"/accountRechargeTimer",name:"accountRechargeTimer",component:function(){return _((function(){return n.import("./index-legacy.5bd0bb45.js")}),void 0)},meta:{title:"账户充值"}},{path:"/myStudent",name:"myStudent",component:function(){return _((function(){return n.import("./index-legacy.4b01cb2c.js")}),void 0)},meta:{title:"我的学员"}},{path:"/classArrangement",name:"classArrangement",component:function(){return _((function(){return n.import("./index-legacy.65c08179.js")}),void 0)},meta:{title:"排课"}},{path:"/createClass",name:"createClass",component:function(){return _((function(){return n.import("./index-legacy.056480b6.js").then((function(e){return e.i}))}),void 0)},meta:{title:"创建直播课"}},{path:"/rechargeRecord",name:"rechargeRecord",component:function(){return _((function(){return n.import("./index-legacy.8fb9438e.js")}),void 0)},meta:{title:"交易记录"}},{path:"/cashProtocol",name:"cashProtocol",component:function(){return _((function(){return n.import("./index-legacy.094f266c.js")}),void 0)},meta:{title:"结算协议"}},{path:"/incomeConsus",name:"incomeConsus",component:function(){return _((function(){return n.import("./index-legacy.907d2f42.js")}),void 0)},meta:{title:"收入统计"}},{path:"/extendPlan",name:"extendPlan",component:function(){return _((function(){return n.import("./index-legacy.b0e8666c.js")}),void 0)},meta:{title:"推广计划"}},{path:"/extendPlanDetail",name:"extendPlanDetail",component:function(){return _((function(){return n.import("./detail-legacy.13ad8891.js")}),void 0)},meta:{title:"推广计划"}},{path:"/track-review-activity",component:function(){return _((function(){return n.import("./index-legacy.dac96570.js")}),void 0)},meta:{title:"曲目评测活动"}},{path:"/leaderboard",component:function(){return _((function(){return n.import("./index-legacy.36feb9dd.js")}),void 0)},meta:{title:"曲目挑战排行榜"}},{path:"/mySheetMusic",component:function(){return _((function(){return n.import("./index-legacy.066a7fe2.js")}),void 0)},meta:{title:"我的乐谱"}},{path:"/teacherHome",component:function(){return _((function(){return n.import("./teacher-home-legacy.a3389181.js")}),void 0)},meta:{title:"老师主页"}},{path:"/train-tool",component:function(){return _((function(){return n.import("./index-legacy.854e6728.js")}),void 0)},meta:{title:"训练教程"}},{path:"/courseList",component:function(){return _((function(){return n.import("./index-legacy.d8f51548.js")}),void 0)},meta:{title:"教程详情"}},{path:"/coursewarePlay",component:function(){return _((function(){return n.import("./index-legacy.13f3642e.js")}),void 0)},meta:{title:"教程播放"}}])}].concat(e(E),$,[{path:"/:pathMatch(.*)*",component:function(){return _((function(){return n.import("./index-legacy.3127d44e.js")}),void 0)},meta:{title:"404 Not Fund",platform:"TEACHER"}}]),M=C({history:A(),routes:I,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,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(e){m.version=e.content.version,console.log(e,"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")}}}))}();