1 |
- !function(){function e(e,n,t,r,o,i,c){try{var u=e[i](c),a=u.value}catch(s){return void t(s)}u.done?n(a):Promise.resolve(a).then(r,o)}System.register(["./use-app-legacy.043cbe16.js","./lib-flexible-legacy.e8ca3d6a.js"],(function(n,t){"use strict";var r,o,i,c,u,a,s,l,d,p,f,m,v,h,y,I,T,g,S;return{setters:[function(e){r=e.d,o=e.o,i=e.c,c=e.u,u=e.a,a=e.b,s=e.g,l=e.r,d=e.e,p=e.f,f=e.h,m=e.i,v=e.j,h=e._,y=e.p,I=e.s,T=e.k,g=e.l,S=e.m},function(){}],execute:function(){var n=r({setup:function(){var n,t=c();null!=t&&null!==(n=t.query)&&void 0!==n&&n.Authorization&&sessionStorage.setItem("Authorization",t.query.Authorization);var r=Date.now(),m=""+Date.now(),v=function(){var n,t=(n=regeneratorRuntime.mark((function e(){var n,t,o,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("student"==(n=u())){e.next=3;break}return e.abrupt("return");case 3:return t=a(),o=s(),i=(Date.now()-r)/1e3,r=Date.now(),e.next=9,l.post("/musicPracticeRecord/save",{prefix:o,requestType:"json",data:{musicSheetId:t.id,sysMusicScoreId:t.id,feature:"PRACTICE",practiceSource:"PRACTICE",playTime:i,deviceType:d(),behaviorId:m}});case 9:if(!t.lessonTrainingId){e.next=20;break}return e.prev=10,console.log(o),c=p(),e.next=15,l.post("/studentLessonTraining/lessonTrainingRecord",{prefix:o,requestType:"json",data:{materialType:"SONG",record:{clientType:null==n?void 0:n.toLocaleUpperCase(),practiceSource:"LESSON_TRAINING",feature:"PRACTICE",deviceType:c.android?"ANDROID":c.isApp?"IOS":"WEB",behaviorId:m,playTime:i,musicSheetId:t.id},courseScheduleId:t.courseScheduleId,lessonTrainingId:t.lessonTrainingId,materialId:t.materialId}});case 15:e.sent,e.next=20;break;case 18:e.prev=18,e.t0=e.catch(10);case 20:case"end":return e.stop()}}),e,null,[[10,18]])})),function(){var t=this,r=arguments;return new Promise((function(o,i){var c=n.apply(t,r);function u(n){e(c,o,i,u,a,"next",n)}function a(n){e(c,o,i,u,a,"throw",n)}u(void 0)}))});return function(){return t.apply(this,arguments)}}(),h=null;return o((function(){clearInterval(h),t.name&&(console.log("进入云教练"),h=setInterval((function(){v()}),6e4))})),function(){return i(f("router-view"),null,null)}}}),b=Object.freeze(Object.defineProperty({__proto__:null,default:n},Symbol.toStringTag,{value:"Module"})),x=[{path:"/",name:"home",component:function(){return h((function(){return Promise.resolve().then((function(){return b}))}),void 0)},children:[{path:"",name:"musicScore",component:function(){return h((function(){return t.import("./index-legacy.e3650b8c.js")}),void 0)}}]},{path:"/:path(.*)*",name:"ErrorPage",component:function(){return h((function(){return t.import("./index-legacy.c1cd5f96.js")}),void 0)}}],w=m({history:v("/orchestra-music-score"),routes:x});y({api:"getToken"}).then((function(e){var n;null!=e&&null!==(n=e.content)&&void 0!==n&&n.accessToken&&sessionStorage.setItem("Authorization",e.content.tokenType+" "+e.content.accessToken)})),I.clintNmae="colexiu",window.DYEnvironment="colexiu",document.body.style.setProperty("--osdm-zoom",""+T()),g(),S(n).use(w).mount("#app")}}}))}();
|