Commit 9d22c8f6 authored by liujiaxin's avatar liujiaxin

sdf

parent a3367c96
...@@ -64,7 +64,26 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -64,7 +64,26 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
ngOnInit() { ngOnInit() {
this.data = {}; this.data = {
contentObj: {
talk: [
[{
text: 'hello?',
audio: 0
}, {
text: 'fine! thank you. and you?',
audio: 0
}],
[{
text: 'how are you?',
audio: 0
}, {
text: 'i am fine too',
audio: 0
}]
]
}
};
this.init(); this.init();
// 获取数据 // 获取数据
const getData = (window as any).courseware.getData; const getData = (window as any).courseware.getData;
...@@ -79,7 +98,7 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -79,7 +98,7 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
}, this.saveKey); }, this.saveKey);
} }
init(){ init() {
this.talkIdx = { this.talkIdx = {
A: -1, A: -1,
B: -1 B: -1
......
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