Commit a4b4e3a7 by kaisa

feat:测试

parent cce5b654
......@@ -697,10 +697,9 @@
.addClass("n" + numArr[1] + "");
layer.msg(Number(numArr[0]) + "--" + Number(numArr[1]));
if (Number(numArr[0]) == 0 && Number(numArr[1]) == 3) {
// 倒计时3s的时候播放倒计时音效
clock();
}
// 倒计时3s的时候播放倒计时音效
clock(numArr[0], numArr[1]);
$(".go-btn")
.unbind("click")
......
......@@ -113,7 +113,7 @@ function appCollaboration(msg) {
// 判断背景音是否开启/关闭
function isBgMusicClose() {
let isMuted = mAudios.bgm.muted;
// layer.msg(isMuted);
// layer.msg(isMuted);
return isMuted;
}
// 露水音效
......@@ -160,8 +160,10 @@ function rocketStop() {
}
// 倒计时音效
function clock() {
mAudios.clock.play();
function clock(min, sec) {
if (Number(min) == 0 && Number(sec) <= 3) {
mAudios.clock.play();
}
}
//
//处理时间倒计时的函数
......
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 sign in to comment