Commit 0a60359a authored by liujiaxin's avatar liujiaxin

www

parent 345d06e9
...@@ -151,21 +151,24 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -151,21 +151,24 @@ export class PlayComponent implements OnInit, OnDestroy {
if (data && typeof data === 'object') { if (data && typeof data === 'object') {
this.data = data; this.data = data;
this.zoomIn = false;
this.options = _.get(this.data.contentObj, 'options', []).map(item => {
item.state = '';
// Ken 2019-04-15 22:38 把showPic, showText的逻辑换为type
if (_.isUndefined(item.type)) {
item.type = item.showPic ? this.OPTION_TYPE.PIC : this.OPTION_TYPE.TEXT;
}
return item;
});
}
}
this.zoomIn = false;
this.options = _.get(this.data.contentObj, 'options', []).map(item => {
item.state = '';
// Ken 2019-04-15 22:38 把showPic, showText的逻辑换为type
if (_.isUndefined(item.type)) {
item.type = item.showPic ? this.OPTION_TYPE.PIC : this.OPTION_TYPE.TEXT;
}
return item;
});
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
if (window['air']) { if (window['air']) {
window['air'].hideAirClassLoading(this.saveKey, this.data); window['air'].hideAirClassLoading(this.saveKey, this.data);
} }
this.refresh();
}, 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