Commit e8fe5b34 authored by 李维's avatar 李维

Bug fix

parent ec52fa0c
......@@ -1261,8 +1261,17 @@ export class PlayComponent implements OnInit, OnDestroy {
private showAnswerWrong(answerArrElement: any) {
shake(answerArrElement);
this.playAudio('cuowu');
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() {
for (let i = 0; i < this.answerArr.length; i++) {
......
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