新增发送语音消息成功提示音
This commit is contained in:
BIN
pages/.DS_Store
vendored
BIN
pages/.DS_Store
vendored
Binary file not shown.
@@ -140,6 +140,7 @@
|
|||||||
this.mp3AudioSrc = null
|
this.mp3AudioSrc = null
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$emit('success')
|
this.$emit('success')
|
||||||
|
this.toastAudiMp3()
|
||||||
}, 500)
|
}, 500)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -180,6 +181,16 @@
|
|||||||
this.isBetaPlay = false;
|
this.isBetaPlay = false;
|
||||||
betaAudio.destroy()
|
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()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
static/.DS_Store
vendored
BIN
static/.DS_Store
vendored
Binary file not shown.
BIN
static/im/toast/sentVoice.mp3
Executable file
BIN
static/im/toast/sentVoice.mp3
Executable file
Binary file not shown.
Reference in New Issue
Block a user