|
@@ -127,11 +127,21 @@ export default {
|
|
|
if(!this.isAuth){
|
|
|
this.getVoiceList()
|
|
|
}
|
|
|
- // this.innerAudioContext=uni.createInnerAudioContext()
|
|
|
+ innerAudioContext=uni.createInnerAudioContext();
|
|
|
this.listenAudio()
|
|
|
},
|
|
|
+ onHide(){
|
|
|
+ innerAudioContext.destroy()
|
|
|
+ this.temAudio.id=0
|
|
|
+ this.temAudio.paused=true
|
|
|
+ this.temAudio.curTime=''
|
|
|
+ },
|
|
|
onUnload(){
|
|
|
uni.$off('addVoiceSuccess')
|
|
|
+ innerAudioContext.destroy()
|
|
|
+ this.temAudio.id=0
|
|
|
+ this.temAudio.paused=true
|
|
|
+ this.temAudio.curTime=''
|
|
|
},
|
|
|
onShareAppMessage({from,target}) {
|
|
|
console.log(from,target);
|