Commit d6459bf4 authored by liujiangnan's avatar liujiangnan

修改展现

parent 29d0fc7d
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
OnChanges, OnChanges,
OnInit, OnInit,
AfterViewInit, ElementRef, ViewChild, AfterViewInit, ElementRef, ViewChild,
ApplicationRef
} from '@angular/core'; } from '@angular/core';
import * as _ from 'lodash'; import * as _ from 'lodash';
...@@ -35,7 +36,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni ...@@ -35,7 +36,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
curItemUrl = ''; curItemUrl = '';
curEvt; curEvt;
constructor() { constructor(private appRef: ApplicationRef) {
} }
range(start, end) { range(start, end) {
...@@ -46,7 +47,8 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni ...@@ -46,7 +47,8 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
let _this = this; let _this = this;
(<any>window).courseware.getData(function(data){ (<any>window).courseware.getData(function(data){
if(data){ if(data){
_this.data.contentObj.titleObj = data; _this.data.contentObj.titleObj.content = data.content;
_this.appRef.tick();
} }
}); });
......
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