Commit 2ec7b8e0 by 高淑倩

modify: page配置

parent 5c301f5e
...@@ -300,20 +300,22 @@ class WXService extends Http { ...@@ -300,20 +300,22 @@ class WXService extends Http {
const { sr } = this.getApp() const { sr } = this.getApp()
const CONFIG_PAPGE = { const CONFIG_PAPGE = {
onLoad: function (...args) { onLoad: function (...args) {
// const app = _self.getApp()
const page = this const page = this
_self.initAppGlobalDataSync()
config.onLoad && config.onLoad.apply(page, args)
}, },
onShow: function (...args) { onShow: function (...args) {
const page = this const page = this
_self.currentPage = page
config.onShow && config.onShow.apply(page, args)
}, },
onReady: function (...args) { onReady: function (...args) {
config.onReady && config.onReady.apply(this, args) config.onReady && config.onReady.apply(this, args)
}, },
onHide: function (...args) { onHide: function (...args) {
const page = this const page = this
config.onHide && config.onHide.apply(this, args)
}, },
onUnload: function (...args) { onUnload: function (...args) {
......
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