Compare commits
2 Commits
81543cdcdc
...
31846e54a7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31846e54a7 | ||
|
|
75d73e9c87 |
BIN
pages/.DS_Store
vendored
BIN
pages/.DS_Store
vendored
Binary file not shown.
@@ -108,9 +108,6 @@
|
||||
this.isMoveCancel = false
|
||||
return
|
||||
}
|
||||
|
||||
console.log(this.maxRecordTime - this.recordTime)
|
||||
|
||||
if((this.maxRecordTime - this.recordTime) <= 0){
|
||||
uni.showToast({
|
||||
title: '说话时间太短',
|
||||
@@ -140,6 +137,7 @@
|
||||
this.mp3AudioSrc = null
|
||||
setTimeout(() => {
|
||||
this.$emit('success')
|
||||
this.toastAudiMp3()
|
||||
}, 500)
|
||||
})
|
||||
},
|
||||
@@ -180,6 +178,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()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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