1
This commit is contained in:
parent
1daae2dc43
commit
b1ce5082b7
@ -122,10 +122,16 @@
|
||||
innerAudioContext.src = 'https://www.nuoyunr.com/lananRsc/rescue/msgV.mp3';
|
||||
// #endif
|
||||
// 设置播放次数和计数器
|
||||
const playCount = 3;
|
||||
const playCount = 4;
|
||||
let currentCount = 0;
|
||||
// 初次播放
|
||||
innerAudioContext.play();
|
||||
// 震动
|
||||
uni.vibrateLong({
|
||||
success: function () {
|
||||
console.log('success');
|
||||
}
|
||||
});
|
||||
innerAudioContext.onError((err) => {
|
||||
console.error('播放错误', err);
|
||||
this.ifPlay=false
|
||||
|
Loading…
Reference in New Issue
Block a user