Commit 722aa8f7 authored by liujiaxin's avatar liujiaxin

sdf

parent 5699827a
...@@ -42,9 +42,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -42,9 +42,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
this.resetContainerItems(); this.resetContainerItems();
} }
constructor() { constructor() {
this.rightAudio.src = '/assets/right.mp3'; this.rightAudio.src = 'assets/right.mp3';
this.rightAudio.load(); this.rightAudio.load();
this.wrongAudio.src = '/assets/wrong.mp3'; this.wrongAudio.src = 'assets/wrong.mp3';
this.wrongAudio.load(); this.wrongAudio.load();
} }
ngAfterViewInit(): void { ngAfterViewInit(): void {
...@@ -64,7 +64,13 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -64,7 +64,13 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
} }
ngOnInit() { ngOnInit() {
this.data = {}; this.data = {
contentObj: {
pics: ["http://staging-teach.cdn.ireadabc.com/5502addf299f5f34dc181f993f81e311.png",
"http://staging-teach.cdn.ireadabc.com/dae252625e5fc37e992c8e1d4c8f0ad6.png",
"http://staging-teach.cdn.ireadabc.com/de72d34b60a2ca72b2688859d6f1d5e2.jpg"]
}
};
// 获取数据 // 获取数据
const getData = (window as any).courseware.getData; const getData = (window as any).courseware.getData;
......
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