更新代码
This commit is contained in:
@ -64,7 +64,10 @@ const audioPaths = {
|
||||
"13": require("@/assets/images/13.mp3"), //有新的研判约稿通知
|
||||
"14": require("@/assets/images/14.mp3"), //有新的公文发布
|
||||
"15": require("@/assets/images/15.mp3"), //有新的警情监测预警,请注意查收
|
||||
"16": require("@/assets/images/16.mp3") //有新的一级临控预警,请及时签收处理!
|
||||
"16": require("@/assets/images/16.mp3"), //有新的一级临控预警,请及时签收处理!
|
||||
"17": require("@/assets/images/17.mp3"), //有新的紧急预警信息,请及时签收处理!
|
||||
"18": require("@/assets/images/18.mp3"), //滴滴滴~~~叮~~~~
|
||||
"19": require("@/assets/images/19.mp3"), //有新的预警信息,请您注意查收
|
||||
};
|
||||
|
||||
// 初始化音频播放器
|
||||
@ -88,24 +91,30 @@ const playAudioByType = (val) => {
|
||||
case "01":
|
||||
switch (val.yjJb) {
|
||||
case "01":
|
||||
audioPlayers.value["01"].play();
|
||||
audioPlayers.value["06"].play();
|
||||
audioPlayers.value["18"].play();
|
||||
audioPlayers.value["17"].play();
|
||||
// audioPlayers.value["01"].play();
|
||||
// audioPlayers.value["06"].play();
|
||||
break;
|
||||
default:
|
||||
audioPlayers.value["02"].play();
|
||||
audioPlayers.value["07"].play();
|
||||
audioPlayers.value["19"].play();
|
||||
// audioPlayers.value["02"].play();
|
||||
// audioPlayers.value["07"].play();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "02":
|
||||
switch (val.yjJb) {
|
||||
case "01":
|
||||
audioPlayers.value["01"].play();
|
||||
audioPlayers.value["04"].play();
|
||||
audioPlayers.value["18"].play();
|
||||
audioPlayers.value["17"].play();
|
||||
// audioPlayers.value["01"].play();
|
||||
// audioPlayers.value["04"].play();
|
||||
break;
|
||||
default:
|
||||
audioPlayers.value["02"].play();
|
||||
audioPlayers.value["05"].play();
|
||||
audioPlayers.value["19"].play();
|
||||
// audioPlayers.value["02"].play();
|
||||
// audioPlayers.value["05"].play();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@ -129,9 +138,18 @@ const playAudioByType = (val) => {
|
||||
audioPlayers.value["03"].play();
|
||||
audioPlayers.value["11"].play();
|
||||
break;
|
||||
case "06": //监测
|
||||
audioPlayers.value["02"].play();
|
||||
audioPlayers.value["15"].play();
|
||||
case "06": //检测警情
|
||||
switch (val.jqdjdm) {
|
||||
case "01":
|
||||
audioPlayers.value["18"].play();
|
||||
audioPlayers.value["17"].play();
|
||||
break;
|
||||
default:
|
||||
audioPlayers.value["19"].play();
|
||||
break;
|
||||
}
|
||||
// audioPlayers.value["02"].play();
|
||||
// audioPlayers.value["15"].play();
|
||||
break;
|
||||
// case '07':
|
||||
// audioPlayers.value['07'].play()
|
||||
|
||||
Reference in New Issue
Block a user