Commit c89edea3 authored by liujiaxin's avatar liujiaxin

asdasd

parent b1347551
......@@ -23,7 +23,7 @@
></div>
</div>
</div>
<div class="p-cur-option" [@zoomOption] *ngIf="curOption" (click)="curOption=null;"
<div class="p-cur-option" [@zoomOption] *ngIf="curOption" (click)="resetOption()"
[style.background-image]="'url('+ curOption.pic_id +')'"
>
</div>
......
......@@ -91,6 +91,12 @@ export class PlayComponent implements OnInit {
this.changeDetectorRef.detectChanges();
this.refresh();
}
resetOption() {
this.curOption=null;
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}
ngOnDestroy() {
}
......
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