Commit a3587bbc authored by lvtz's avatar lvtz

fix

parent 76a3fa9f
......@@ -253,24 +253,31 @@ Page({
onShow: function () {
},
onHide: function () {
this.innerAudioContext.pause();
// this.resetAudiosPlayStatus()
this.innerAudioContext.destroy();
this.recorderManager.stop();
this.recorderManager = null;
this.innerAudioContext.src='';
this.resetAudiosPlayStatus()
clearInterval(this.data.voiceInterval);
// this.data.voiceInterval = null;
if(this.data.isPreview) {
this.pausevoice();
}
this.data.voiceInterval = null;
// if(this.data.isPreview) {
// this.pausevoice();
// }
},
onUnload: function () {
this.innerAudioContext.pause();
this.innerAudioContext.destroy();
this.recorderManager.stop();
this.recorderManager = null;
this.innerAudioContext.src=''
this.setData({
audioStorage: {}
})
clearInterval(this.data.voiceInterval);
this.data.voiceInterval = null;
if(this.data.isPreview) {
this.pausevoice();
}
// if(this.data.isPreview) {
// this.pausevoice();
// }
},
loadImgOnImage(self){
let that = this;
......@@ -840,9 +847,9 @@ Page({
this.innerAudioContext.pause();
clearInterval(this.data.voiceInterval);
this.data.voiceInterval = null;
if(this.data.isPreview) {
this.pausevoice();
}
// if(this.data.isPreview) {
// this.pausevoice();
// }
}
}).catch((e) => {
wx.hideLoading();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment