Commit e8fe5b34 authored by 李维's avatar 李维

Bug fix

parent ec52fa0c
...@@ -1261,7 +1261,16 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1261,7 +1261,16 @@ export class PlayComponent implements OnInit, OnDestroy {
private showAnswerWrong(answerArrElement: any) { private showAnswerWrong(answerArrElement: any) {
shake(answerArrElement); shake(answerArrElement);
this.playAudio('cuowu'); this.playAudio('cuowu');
this.canTouch = true; if(answerArrElement.audio_url) {
let audio = this.audioObj[answerArrElement.audio_url]
audio.play();
audio.onended = () =>{
this.canTouch = true;
}
} else {
this.canTouch = true;
}
// this.canTouch = true;
} }
private checkGameEnd() { private checkGameEnd() {
......
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