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.b903c881.js","./routes-common-legacy.ea497c09.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.w,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.u,R=e.v},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.40ed6903.js")}),void 0)},meta:{title:"分享视频课"}},{path:"/shareLive",name:"shareLive",component:function(){return _((function(){return n.import("./index-legacy.3d403a1f.js")}),void 0)},meta:{title:"分享直播课"}},{path:"/shareMall",name:"shareMall",component:function(){return _((function(){return n.import("./index-legacy.95884897.js")}),void 0)},meta:{title:"分享商品"}},{path:"/shareVip",name:"shareVip",component:function(){return _((function(){return n.import("./index-legacy.86e1f847.js")}),void 0)},meta:{title:"会员中心"}},{path:"/shareAblum",name:"shareAblum",component:function(){return _((function(){return n.import("./index-legacy.caa26599.js")}),void 0)},meta:{title:"分享专辑"}},{path:"/shareMusic",name:"shareMusic",component:function(){return _((function(){return n.import("./index-legacy.4a58ddeb.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.47a6728e.js")}),void 0)},meta:{isRegister:!1}},{path:"/home",name:"home",component:function(){return _((function(){return n.import("./index-legacy.ca1a4e34.js")}),void 0)}},{path:"/teacherCert",name:"teacherCert",component:function(){return _((function(){return n.import("./index-legacy.5a5a41dd.js")}),void 0)},meta:{title:"达人认证"}},{path:"/teacherCertUpdate",name:"teacherCertUpdate",component:function(){return _((function(){return n.import("./index-legacy.dc913074.js")}),void 0)},meta:{title:"资料修改"}},{path:"/music-upload",component:function(){return _((function(){return n.import("./index-legacy.66b8243f.js")}),void 0)},meta:{title:"上传曲谱"}},{path:"/music-upload/:id/edit",component:function(){return _((function(){return n.import("./index-legacy.66b8243f.js")}),void 0)},meta:{title:"修改曲谱"}},{path:"/review-list",component:function(){return _((function(){return n.import("./list-legacy.460e0bbd.js")}),void 0)},meta:{title:"曲谱审核列表"}},{path:"/review/:id",component:function(){return _((function(){return n.import("./detail-legacy.c0a042a7.js")}),void 0)},meta:{title:"曲谱审核详情"}},{path:"/openLive",name:"openLive",component:function(){return _((function(){return n.import("./index-legacy.4ac4c7f9.js")}),void 0)},meta:{title:"开通直播"}},{path:"/liveDetail",name:"liveDetail",component:function(){return _((function(){return n.import("./live-detail-legacy.b5a4db13.js")}),void 0)},meta:{title:"直播课详情"}},{path:"/musicCert",name:"musicCert",component:function(){return _((function(){return n.import("./index-legacy.fcd3103f.js")}),void 0)},meta:{title:"音乐人认证"}},{path:"/videoCreate",name:"videoCreate",component:function(){return _((function(){return n.import("./create-legacy.46457988.js")}),void 0)},meta:{title:"创建视频课"}},{path:"/videoDetail",name:"videoDetail",component:function(){return _((function(){return n.import("./video-detail-legacy.e7f42341.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/videoClassDetail",name:"videoClassDetail",component:function(){return _((function(){return n.import("./video-class-detail-legacy.10f506e5.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/liveCreate",name:"liveCreate",component:function(){return _((function(){return n.import("./create-legacy.68a67a71.js")}),void 0)},meta:{title:"创建直播课"}},{path:"/practiceSetting",name:"practiceSetting",component:function(){return _((function(){return n.import("./practice-setting-legacy.a0ca38ca.js")}),void 0)},meta:{title:"陪练课设置"}},{path:"/myFans",name:"myFans",component:function(){return _((function(){return n.import("./index-legacy.ee7839f2.js")}),void 0)},meta:{title:"我的粉丝"}},{path:"/pianoRoom",name:"pianoRoom",component:function(){return _((function(){return n.import("./index-legacy.aaba3edc.js")}),void 0)},meta:{title:"云酷琴房"}},{path:"/courseRecord",name:"courseRecord",component:function(){return _((function(){return n.import("./index-legacy.8f20d839.js")}),void 0)},meta:{title:"课程记录"}},{path:"/accountRechargeTimer",name:"accountRechargeTimer",component:function(){return _((function(){return n.import("./index-legacy.e6813d5f.js")}),void 0)},meta:{title:"账户充值"}},{path:"/myStudent",name:"myStudent",component:function(){return _((function(){return n.import("./index-legacy.5e619b25.js")}),void 0)},meta:{title:"我的学员"}},{path:"/classArrangement",name:"classArrangement",component:function(){return _((function(){return n.import("./index-legacy.814e54f6.js")}),void 0)},meta:{title:"排课"}},{path:"/createClass",name:"createClass",component:function(){return _((function(){return n.import("./index-legacy.88e69420.js").then((function(e){return e.i}))}),void 0)},meta:{title:"创建直播课"}},{path:"/rechargeRecord",name:"rechargeRecord",component:function(){return _((function(){return n.import("./index-legacy.0db29bd3.js")}),void 0)},meta:{title:"交易记录"}},{path:"/cashProtocol",name:"cashProtocol",component:function(){return _((function(){return n.import("./index-legacy.c6c1145c.js")}),void 0)},meta:{title:"结算协议"}},{path:"/incomeConsus",name:"incomeConsus",component:function(){return _((function(){return n.import("./index-legacy.f4be03c1.js")}),void 0)},meta:{title:"收入统计"}},{path:"/extendPlan",name:"extendPlan",component:function(){return _((function(){return n.import("./index-legacy.a248a8b4.js")}),void 0)},meta:{title:"推广计划"}},{path:"/extendPlanDetail",name:"extendPlanDetail",component:function(){return _((function(){return n.import("./detail-legacy.025ed1f9.js")}),void 0)},meta:{title:"推广计划"}},{path:"/track-review-activity",component:function(){return _((function(){return n.import("./index-legacy.06ca780d.js")}),void 0)},meta:{title:"曲目评测活动"}},{path:"/leaderboard",component:function(){return _((function(){return n.import("./index-legacy.e70ff90b.js")}),void 0)},meta:{title:"曲目挑战排行榜"}},{path:"/mySheetMusic",component:function(){return _((function(){return n.import("./index-legacy.d88b95e3.js")}),void 0)},meta:{title:"我的乐谱"}},{path:"/teacherHome",component:function(){return _((function(){return n.import("./teacher-home-legacy.4218eeac.js")}),void 0)},meta:{title:"老师主页"}},{path:"/train-tool",component:function(){return _((function(){return n.import("./index-legacy.1b412f5d.js")}),void 0)},meta:{title:"训练工具"}}])}].concat(e(E),$,[{path:"/:pathMatch(.*)*",component:function(){return _((function(){return n.import("./index-legacy.4bf841d6.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")}}}))}();
|