Commit fb9eb3a6 authored by 范雪寒's avatar 范雪寒

Merge branch 'master' of http://vcs.ireadabc.com/template/hw_003

parents 8bb16561 bce9fd06
......@@ -519,14 +519,32 @@ export class PlayComponent implements OnInit, OnDestroy {
this.loadResources().then(() => {
// this.setfontData();
this.addServerListener();
window['air'].hideAirClassLoading(this.KEY, this.data);
this.init();
this.update();
});
}
start() {
this.init();
this.update();
}
addServerListener() {
const c = (<any> window).courseware;
if (!c || !c.onEvent) {
return;
}
c.onEvent('course-in-screen', (data, next) => { // 学生端 初始化时调用
this.start();
next();
});
}
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