Commit 3f658fc7 authored by Li MingZhe's avatar Li MingZhe

feat: 开始事件

parent 1f347132
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
"protractor": "^5.4.2", "protractor": "^5.4.2",
"ts-node": "~5.0.1", "ts-node": "~5.0.1",
"tslint": "^5.12.0", "tslint": "^5.12.0",
"node-sass": "^4.0.0",
"typescript": "3.1.1" "typescript": "3.1.1"
} }
} }
...@@ -519,13 +519,31 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -519,13 +519,31 @@ export class PlayComponent implements OnInit, OnDestroy {
this.loadResources().then(() => { this.loadResources().then(() => {
// this.setfontData(); // this.setfontData();
this.addServerListener();
window['air'].hideAirClassLoading(this.KEY, this.data); window['air'].hideAirClassLoading(this.KEY, this.data);
});
}
start() {
this.init(); this.init();
this.update(); this.update();
}); }
addServerListener() {
const c = (<any> window).courseware;
if (!c || !c.onEvent) {
return;
} }
c.onEvent('course-in-screen', (data, next) => { // 学生端 初始化时调用
this.start();
next();
});
}
initFontImg() { initFontImg() {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment