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