teacher-legacy.79ca1bd9.js 11 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.f8641610.js"],(function(t,n){"use strict";var o,a,c,u,l,m,s,p,f,d,h,v,g,y,b,j,x,_,A,C,w,O,P,R,T,E;return{setters:[function(e){o=e.d,a=e._,c=e.r,u=e.o,l=e.c,m=e.s,s=e.a,p=e.e,f=e.f,d=e.g,h=e.h,v=e.b,g=e.p,y=e.i,b=e.C,j=e.R,x=e.F,_=e.n,A=e.q,C=e.t,w=e.u,O=e.v,P=e.D,R=e.w,T=e.x,E=e.y}],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 u(),l(a)}]]),D="_error_1s57h_1",k=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:D},[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 A((function(){return n.import("./index-legacy.414818ae.js")}),void 0)},meta:{title:"分享视频课"}},{path:"/shareLive",name:"shareLive",component:function(){return A((function(){return n.import("./index-legacy.59157331.js")}),void 0)},meta:{title:"分享直播课"}},{path:"/shareMall",name:"shareMall",component:function(){return A((function(){return n.import("./index-legacy.d4d736ea.js")}),void 0)},meta:{title:"分享商品"}},{path:"/shareVip",name:"shareVip",component:function(){return A((function(){return n.import("./index-legacy.c8ebec2a.js")}),void 0)},meta:{title:"会员中心"}},{path:"/shareAblum",name:"shareAblum",component:function(){return A((function(){return n.import("./index-legacy.c067be52.js")}),void 0)},meta:{title:"分享专辑"}},{path:"/shareMusic",name:"shareMusic",component:function(){return A((function(){return n.import("./index-legacy.4238627a.js")}),void 0)},meta:{title:"分享曲谱"}}],M=[{path:"/",component:k,children:[].concat(e(_),[{path:"/login",name:"login",component:function(){return A((function(){return n.import("./login-legacy.eaa25ac9.js")}),void 0)},meta:{isRegister:!1}},{path:"/home",name:"home",component:function(){return A((function(){return n.import("./index-legacy.da674950.js")}),void 0)}},{path:"/teacherCert",name:"teacherCert",component:function(){return A((function(){return n.import("./index-legacy.552b4043.js")}),void 0)},meta:{title:"达人认证"}},{path:"/teacherCertUpdate",name:"teacherCertUpdate",component:function(){return A((function(){return n.import("./index-legacy.0a276c1f.js")}),void 0)},meta:{title:"资料修改"}},{path:"/music-upload",component:function(){return A((function(){return n.import("./index-legacy.892a95c0.js")}),void 0)},meta:{title:"上传曲谱"}},{path:"/music-upload/:id/edit",component:function(){return A((function(){return n.import("./index-legacy.892a95c0.js")}),void 0)},meta:{title:"修改曲谱"}},{path:"/review-list",component:function(){return A((function(){return n.import("./list-legacy.c60e5b99.js")}),void 0)},meta:{title:"曲谱审核列表"}},{path:"/review/:id",component:function(){return A((function(){return n.import("./detail-legacy.c2011625.js")}),void 0)},meta:{title:"曲谱审核详情"}},{path:"/openLive",name:"openLive",component:function(){return A((function(){return n.import("./index-legacy.5aebef58.js")}),void 0)},meta:{title:"开通直播"}},{path:"/liveDetail",name:"liveDetail",component:function(){return A((function(){return n.import("./live-detail-legacy.2ca8edde.js")}),void 0)},meta:{title:"直播课详情"}},{path:"/musicCert",name:"musicCert",component:function(){return A((function(){return n.import("./index-legacy.04a42baa.js")}),void 0)},meta:{title:"音乐人认证"}},{path:"/videoCreate",name:"videoCreate",component:function(){return A((function(){return n.import("./create-legacy.47b0a4bb.js")}),void 0)},meta:{title:"创建视频课"}},{path:"/videoDetail",name:"videoDetail",component:function(){return A((function(){return n.import("./video-detail-legacy.5eb962a9.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/videoClassDetail",name:"videoClassDetail",component:function(){return A((function(){return n.import("./video-class-detail-legacy.68a35f8b.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/liveCreate",name:"liveCreate",component:function(){return A((function(){return n.import("./create-legacy.d407c804.js")}),void 0)},meta:{title:"创建直播课"}},{path:"/practiceSetting",name:"practiceSetting",component:function(){return A((function(){return n.import("./practice-setting-legacy.4540fd02.js")}),void 0)},meta:{title:"陪练课设置"}},{path:"/myFans",name:"myFans",component:function(){return A((function(){return n.import("./index-legacy.d94131ce.js")}),void 0)},meta:{title:"我的粉丝"}},{path:"/pianoRoom",name:"pianoRoom",component:function(){return A((function(){return n.import("./index-legacy.b623755b.js")}),void 0)},meta:{title:"云酷琴房"}},{path:"/courseRecord",name:"courseRecord",component:function(){return A((function(){return n.import("./index-legacy.fcd6a412.js")}),void 0)},meta:{title:"课程记录"}},{path:"/accountRechargeTimer",name:"accountRechargeTimer",component:function(){return A((function(){return n.import("./index-legacy.7efae8e2.js")}),void 0)},meta:{title:"账户充值"}},{path:"/myStudent",name:"myStudent",component:function(){return A((function(){return n.import("./index-legacy.f5758ad2.js")}),void 0)},meta:{title:"我的学员"}},{path:"/classArrangement",name:"classArrangement",component:function(){return A((function(){return n.import("./index-legacy.3ddc4a9a.js")}),void 0)},meta:{title:"排课"}},{path:"/createClass",name:"createClass",component:function(){return A((function(){return n.import("./index-legacy.a9b56f05.js").then((function(e){return e.i}))}),void 0)},meta:{title:"创建直播课"}},{path:"/rechargeRecord",name:"rechargeRecord",component:function(){return A((function(){return n.import("./index-legacy.72ad0f8a.js")}),void 0)},meta:{title:"交易记录"}},{path:"/cashProtocol",name:"cashProtocol",component:function(){return A((function(){return n.import("./index-legacy.a6d42cdf.js")}),void 0)},meta:{title:"结算协议"}},{path:"/incomeConsus",name:"incomeConsus",component:function(){return A((function(){return n.import("./index-legacy.8ef66a17.js")}),void 0)},meta:{title:"收入统计"}},{path:"/extendPlan",name:"extendPlan",component:function(){return A((function(){return n.import("./index-legacy.1cab5de4.js")}),void 0)},meta:{title:"推广计划"}},{path:"/extendPlanDetail",name:"extendPlanDetail",component:function(){return A((function(){return n.import("./detail-legacy.6cb5708f.js")}),void 0)},meta:{title:"推广计划"}},{path:"/track-review-activity",component:function(){return A((function(){return n.import("./index-legacy.3f565be9.js")}),void 0)},meta:{title:"曲目评测活动"}},{path:"/leaderboard",component:function(){return A((function(){return n.import("./index-legacy.85b03407.js")}),void 0)},meta:{title:"曲目挑战排行榜"}},{path:"/mySheetMusic",component:function(){return A((function(){return n.import("./index-legacy.8fae5717.js")}),void 0)},meta:{title:"我的乐谱"}},{path:"/teacherHome",component:function(){return A((function(){return n.import("./teacher-home-legacy.fe6782ba.js")}),void 0)},meta:{title:"老师主页"}}])}].concat(e(C),$,[{path:"/:pathMatch(.*)*",component:function(){return A((function(){return n.import("./index-legacy.b2f29da2.js")}),void 0)},meta:{title:"404 Not Fund",platform:"TEACHER"}}]),q=w({history:O(),routes:M,scrollBehavior:function(e,t,n){if(e.hash)return{el:e.hash,behavior:"smooth"}}});q.beforeEach((function(e,t,n){document.title=e.meta.title||"酷乐秀",n()}));var V=!1;q.onError((function(e){if(e instanceof Error){var t=e.name.indexOf("chunk"),n=q.currentRoute.value.fullPath;t&&!V&&(V=!0,P.alert({title:"更新提示",message:"APP有更新请点击确定刷新页面?",confirmButtonColor:"var(--van-primary)"}).then((function(){v().isApp?g({api:"back"}):(location.hash=n,window.location.reload())})))}}));var H=R(S);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",T.locale("zh-ch"),H.config.globalProperties.$dayjs=T,H.config.globalProperties.$filters=E,H.use(q),H.mount("#app")}}}))}();