Commit 37b631eb authored by liujiaxin's avatar liujiaxin

2

parent f6eba663
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
*ngFor="let item of options; let i = index" *ngFor="let item of options; let i = index"
> >
<div class="tool-bar"> <div class="tool-bar">
<label nz-checkbox [ngModel]="item.right" (click)="setRightAnswer(i)" class="right-answer"> <label nz-checkbox [ngModel]="item.right" (ngModelChange)="setRightAnswer(i)" class="right-answer">
Right Right
</label> </label>
<div class="button-group"> <div class="button-group">
......
<div class="question-player"> <div class="question-player" style="position: relative">
<div class="top-part"> <div class="top-part">
<img <img
*ngIf="data.contentObj.pic_id" *ngIf="data.contentObj.pic_id"
[src]="data.contentObj.pic_id " [src]="data.contentObj.pic_id "
alt="cover" alt="cover"
(dragstart)="false;$event.preventDefault();" (dragstart)="false;$event.preventDefault();"
(click)="onHandleZoomIn()" (click)="onHandleZoomIn($event)"
[@zoom]="zoomIn ? 'in' : 'none'" [@zoom]="zoomIn ? 'in' : 'none'"
/> />
<div class="title">{{data.contentObj.title}}</div> <div class="title">{{data.contentObj.title}}</div>
......
...@@ -166,7 +166,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -166,7 +166,8 @@ export class PlayComponent implements OnInit, OnDestroy {
} }
} }
onHandleZoomIn() { onHandleZoomIn(e) {
e.stopPropagation();
this.zoomIn = !this.zoomIn; this.zoomIn = !this.zoomIn;
} }
......
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