|
|
|
@ -46,6 +46,24 @@ App<IAppOption>({
@@ -46,6 +46,24 @@ App<IAppOption>({
|
|
|
|
|
|
|
|
|
|
wx.ajax = licia.curry(request)({ gUrl: this.globalData.url }); |
|
|
|
|
|
|
|
|
|
this.initLogin(); |
|
|
|
|
|
|
|
|
|
wx.setInnerAudioOption({ |
|
|
|
|
obeyMuteSwitch: false, |
|
|
|
|
mixWithOther: false, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
onShow(options) { |
|
|
|
|
if (options.query.scene) { |
|
|
|
|
this.globalData.scene = parseScene(options.query.scene); |
|
|
|
|
} |
|
|
|
|
if (this.globalData.loginState) { |
|
|
|
|
this.globalData.loginState = ""; |
|
|
|
|
this.initLogin(); |
|
|
|
|
} |
|
|
|
|
// this.startLogin();
|
|
|
|
|
}, |
|
|
|
|
initLogin() { |
|
|
|
|
wx.login({ |
|
|
|
|
success: (res) => { |
|
|
|
|
wx.ajax({ |
|
|
|
@ -61,17 +79,6 @@ App<IAppOption>({
@@ -61,17 +79,6 @@ App<IAppOption>({
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
wx.setInnerAudioOption({ |
|
|
|
|
obeyMuteSwitch: false, |
|
|
|
|
mixWithOther: false, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
onShow(options) { |
|
|
|
|
if (options.query.scene) { |
|
|
|
|
this.globalData.scene = parseScene(options.query.scene); |
|
|
|
|
} |
|
|
|
|
// this.startLogin();
|
|
|
|
|
}, |
|
|
|
|
waitLogin(waitLoginState = false) { |
|
|
|
|
let time: number; |
|
|
|
|