Commit 545dfd90 authored by liujiaxin's avatar liujiaxin

12

parent 32424548
...@@ -448,6 +448,70 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -448,6 +448,70 @@ export class PlayComponent implements OnInit, OnDestroy {
ngOnInit() { ngOnInit() {
this.data = { this.data = {
contentObj: { contentObj: {
wordnum: [{
words: [{
value: 'a',
selected: false
}, {
value: 'p',
selected: true
}, {
value: 'p',
selected: false
}, {
value: 'l',
selected: false
}, {
value: 'e',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}, {
value: '',
selected: false
}],
spelling_audio: '',
pic_id: ''
}],
selectedArr: [{
value: 'p',
audio: '',
index: 1
}],
audio_word: null,
options: [{
value: 'b',
audio: ''
}, {
value: 'q',
audio: ''
}],
pic_res_id: 'http://staging-teach.cdn.ireadabc.com/3362dd9e86df013ef4ac62739e5bdfee.jpg'
} }
}; };
...@@ -462,7 +526,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -462,7 +526,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this.initAudio(); this.initAudio();
this.initImg(); this.initImg();
this.initListener(); this.initListener();
window["air"].hideAirClassLoading(this.saveKey, this.data); if (window["air"]) {
window["air"].hideAirClassLoading(this.saveKey, this.data);
}
}, this.saveKey); }, this.saveKey);
......
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