Commit 0b5bd096 authored by liujiaxin's avatar liujiaxin

111

parent a11666eb
...@@ -44,7 +44,17 @@ export class PlayComponent extends BaseResizeComponent implements OnInit { ...@@ -44,7 +44,17 @@ export class PlayComponent extends BaseResizeComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.data = {}; this.data = {
contentObj: {
cards: [{
pic_id: 'http://staging-teach.cdn.ireadabc.com/8257ac52af8d8201931d08aafe9de685.png',
word: 'aaaaa'
}, {
pic_id: 'http://staging-teach.cdn.ireadabc.com/dae252625e5fc37e992c8e1d4c8f0ad6.png',
word: 'bbbbbb'
}]
}
};
// 获取数据 // 获取数据
const getData = ( window as any).courseware.getData; const getData = ( window as any).courseware.getData;
...@@ -54,7 +64,9 @@ export class PlayComponent extends BaseResizeComponent implements OnInit { ...@@ -54,7 +64,9 @@ export class PlayComponent extends BaseResizeComponent implements OnInit {
this.data = data; this.data = data;
} }
this.dataChange(); this.dataChange();
window["air"].hideAirClassLoading(this.saveKey, this.data); if (window['air']) {
window['air'].hideAirClassLoading(this.saveKey, this.data);
}
}, this.saveKey); }, this.saveKey);
} }
dataChange() { dataChange() {
......
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