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.dc694a0c.js"],(function(t,n){"use strict";var o,a,c,u,l,s,m,p,f,d,h,g,y,v,b,j,_,x,O,w,R,A,C,P,S;return{setters:[function(e){o=e.d,a=e._,c=e.r,u=e.c,l=e.o,s=e.s,m=e.a,p=e.b,f=e.e,d=e.f,h=e.g,g=e.h,y=e.p,v=e.i,b=e.F,j=e.C,_=e.R,x=e.j,O=e.k,w=e.l,R=e.m,A=e.n,C=e.q,P=e.t,S=e.v}],execute:function(){var t=o({name:"App"});var D=a(t,[["render",function(e,t,n,r,o,i){var a=c("router-view");return l(),u(a)}]]),E="_error_1s57h_1",T=o({name:"Auth",data:function(){return{loading:!1}},computed:{isNeedView:function(){return"login"===s.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)&&m(o),!t.loading){e.next=5;break}return e.abrupt("return");case 5:if("init"!==s.user.status&&"error"!==s.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"===s.user.status)if(g().isApp)y({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 v(b,null,["error"===s.user.status?v("div",{class:E},[v(j,{type:"notFond",classImgSize:"CERT",tips:"加载失败,请稍后重试",buttonText:"重新加载",plain:!0,onClick:this.setAuth},null)]):this.isNeedView?v(_,null,null):null])}}),k=[{path:"/",component:T,children:[].concat(e(x),[{path:"/login",name:"login",component:function(){return O((function(){return n.import("./login-legacy.8423c94b.js")}),void 0)},meta:{isRegister:!1}},{path:"/home",name:"home",component:function(){return O((function(){return n.import("./index-legacy.e3b01b5b.js")}),void 0)}},{path:"/teacherCert",name:"teacherCert",component:function(){return O((function(){return n.import("./index-legacy.3aac8a22.js")}),void 0)},meta:{title:"老师认证"}},{path:"/music-upload",component:function(){return O((function(){return n.import("./index-legacy.df599cb0.js")}),void 0)},meta:{title:"上传曲谱"}},{path:"/music-list",component:function(){return O((function(){return n.import("./switch-legacy.2d0023e7.js")}),void 0)},meta:{title:"曲谱列表"}},{path:"/openLive",name:"openLive",component:function(){return O((function(){return n.import("./index-legacy.8651bc33.js")}),void 0)},meta:{title:"开通直播"}},{path:"/liveDetail",name:"liveDetail",component:function(){return O((function(){return n.import("./live-detail-legacy.5a1b3814.js")}),void 0)},meta:{title:"直播课详情"}},{path:"/musicCert",name:"musicCert",component:function(){return O((function(){return n.import("./index-legacy.d845675c.js")}),void 0)},meta:{title:"音乐人认证"}},{path:"/videoCreate",name:"videoCreate",component:function(){return O((function(){return n.import("./create-legacy.820e3cbb.js")}),void 0)},meta:{title:"创建视频课"}},{path:"/videoDetail",name:"videoDetail",component:function(){return O((function(){return n.import("./video-detail-legacy.40da04f4.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/videoClassDetail",name:"videoClassDetail",component:function(){return O((function(){return n.import("./video-class-detail-legacy.75e9db3a.js")}),void 0)},meta:{title:"视频课详情"}},{path:"/liveCreate",name:"liveCreate",component:function(){return O((function(){return n.import("./create-legacy.ffd11992.js")}),void 0)},meta:{title:"创建直播课"}},{path:"/practiceSetting",name:"practiceSetting",component:function(){return O((function(){return n.import("./practice-setting-legacy.111ca4cd.js")}),void 0)},meta:{title:"陪练课设置"}},{path:"/myFans",name:"myFans",component:function(){return O((function(){return n.import("./index-legacy.637de5b5.js")}),void 0)},meta:{title:"我的粉丝"}},{path:"/pianoRoom",name:"pianoRoom",component:function(){return O((function(){return n.import("./index-legacy.24c7d3a9.js")}),void 0)},meta:{title:"云酷琴房"}},{path:"/courseRecord",name:"courseRecord",component:function(){return O((function(){return n.import("./index-legacy.62771bd1.js")}),void 0)},meta:{title:"课程记录"}},{path:"/accountRechargeTimer",name:"accountRechargeTimer",component:function(){return O((function(){return n.import("./index-legacy.14cbf04f.js")}),void 0)},meta:{title:"账户充值"}},{path:"/myStudent",name:"myStudent",component:function(){return O((function(){return n.import("./index-legacy.297eb3f9.js")}),void 0)},meta:{title:"我的学员"}},{path:"/classArrangement",name:"classArrangement",component:function(){return O((function(){return n.import("./index-legacy.ddd774d4.js")}),void 0)},meta:{title:"排课"}},{path:"/rechargeRecord",name:"rechargeRecord",component:function(){return O((function(){return n.import("./index-legacy.bc9a1280.js")}),void 0)},meta:{title:"充值记录"}}])}].concat(e(w),[{path:"/:pathMatch(.*)*",component:function(){return O((function(){return n.import("./index-legacy.18ce8388.js")}),void 0)},meta:{title:"404 Not Fund",platform:"TEACHER"}}]),$=R({history:A(),routes:k});$.beforeEach((function(e,t,n){document.title=e.meta.title||"酷乐秀",n()}));var q=C(D);s.platformType="TEACHER",P.locale("zh-ch"),q.config.globalProperties.$dayjs=P,q.config.globalProperties.$filters=S,q.use($),q.mount("#app")}}}))}();
|