Commit 48631fce authored by lvtz's avatar lvtz

fix

parent f08992cf
......@@ -115,14 +115,16 @@ Page({
} else if (type == 2) {
this.videoContext = wx.createVideoContext('video');
}
this.activeReviewGet();
const that = this;
},
onShow: function (options) { // Do something when page show.
},
onReady: function () { // Do something when page ready.
const that = this;
this.activeReviewGet();
},
onHide: function () { // Do something when page hide.
console.log('onhide')
let audioStorage = this.data.audioStorage;
audioStorage.play = false;
this.setData({
......@@ -138,6 +140,7 @@ Page({
clearInterval(this.secondinterval);
},
onUnload: function () {
console.log('onunload')
let audioStorage = this.data.audioStorage;
audioStorage.play = false;
this.setData({
......@@ -151,6 +154,7 @@ Page({
clearInterval(this.data.voiceInterval);
this.data.voiceInterval = null;
clearInterval(this.secondinterval);
this.innerAudioContext.destroy()
},
loadImgOnImage(self){
let that = this;
......
......@@ -244,7 +244,7 @@ Page({
if(user && user.token){
LocalStorage.setItem('dakarole', 1);
wx.redirectTo({
wx.navigateTo({
url: `/business/pages/exchangebusiness/index?from=1`
})
......@@ -268,7 +268,7 @@ Page({
})
LocalStorage.setItem('dakarole', 1);
wx.redirectTo({
wx.navigateTo({
url: `/business/pages/exchangebusiness/index?from=1`
// url: `/business/pages/deskcenter/index?sid=${data.member[0].id}`
})
......
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