Commit 2372a29b authored by liujiaxin's avatar liujiaxin

add video cover

parent d7b04e05
......@@ -44,7 +44,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
// 获取数据
const getData = ( window as any).courseware.getData;
getData((data) => {
console.log(222, data);
console.log(333, data);
if (data && typeof data === 'object') {
this.data = data;
}
......@@ -103,9 +103,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
this.changeDetectorRef.detectChanges();
this.refresh();
})
setTimeout(() => {
this.initCover = this.data.contentObj.pic_id;
});
this.initCover = this.data.contentObj.pic_id;
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
......
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