diff --git a/.DS_Store b/.DS_Store index 1d5b6a3..a33bf29 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/pages/.DS_Store b/pages/.DS_Store index dc29784..edf1397 100644 Binary files a/pages/.DS_Store and b/pages/.DS_Store differ diff --git a/pages/im/components/sent/sentVoice.vue b/pages/im/components/sent/sentVoice.vue index 3e5b4d4..0a0d4b1 100644 --- a/pages/im/components/sent/sentVoice.vue +++ b/pages/im/components/sent/sentVoice.vue @@ -140,6 +140,7 @@ this.mp3AudioSrc = null setTimeout(() => { this.$emit('success') + this.toastAudiMp3() }, 500) }) }, @@ -180,6 +181,16 @@ this.isBetaPlay = false; betaAudio.destroy() }) + }, + // 播放提示音乐 + toastAudiMp3(){ + let toastAudio = uni.createInnerAudioContext() + toastAudio.src = require('@/static/im/toast/sentVoice.mp3') + toastAudio.autoplay = true + toastAudio.volume = .1 + toastAudio.onEnded(() => { + toastAudio.destroy() + }) } } } diff --git a/static/.DS_Store b/static/.DS_Store index 0ddb188..70a5648 100644 Binary files a/static/.DS_Store and b/static/.DS_Store differ diff --git a/static/im/toast/sentVoice.mp3 b/static/im/toast/sentVoice.mp3 new file mode 100755 index 0000000..ef13b1d Binary files /dev/null and b/static/im/toast/sentVoice.mp3 differ