Commit 5f3aa9d3 authored by 李维's avatar 李维

add err sound

parent d925fb17
......@@ -670,6 +670,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.addUrlToAudioObj('click', this.rawAudios.get('click'), 0.3);
this.addUrlToAudioObj('newpage', this.rawAudios.get('newpage'));
this.addUrlToAudioObj('sm-choice-correct', this.rawAudios.get('sm-choice-correct'));
this.addUrlToAudioObj('err_new', this.rawAudios.get('err_new'));
// 听力资料
this.addUrlToAudioObj(this.saveData.listen_audio_url, null,1, false, function(listenPlayStatus){
......@@ -1121,7 +1122,7 @@ export class PlayComponent implements OnInit, OnDestroy {
if (this.checkClickTarget(option)) {
this.currentClickNode = option["highlight"]
option["highlight"].alpha = 1;
console.log(option["highlight"])
// console.log(option["highlight"])
if(option["correct"]) {
if(this.opend[option["index"]]) {
// console.log(this.underLine[option["index"]])
......@@ -1139,6 +1140,9 @@ export class PlayComponent implements OnInit, OnDestroy {
word.wordLoaded = true;
this.stopAllAudio()
this.playAudio("sm-choice-correct")
} else {
this.stopAllAudio()
this.playAudio("err_new")
}
}
}
......
......@@ -16,7 +16,7 @@ const resAudio = [
['click', "assets/YM5-6/music/click.mp3"],
['newpage', "assets/YM5-6/music/newpage.mp3"],
['sm-choice-correct', "assets/YM5-6/music/sm-choice-correct.mp3"]
['err_new', "assets/YM5-6/music/err_new.mp3"]
];
......
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