From b1ce5082b7d496884b00038f83c57636fa77a523 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Thu, 7 Nov 2024 14:31:54 +0800 Subject: [PATCH] 1 --- components/tabBar/tabBar.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue index 95ae637..8a48bd6 100644 --- a/components/tabBar/tabBar.vue +++ b/components/tabBar/tabBar.vue @@ -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