Commit 2ec7b8e0 by 高淑倩

modify: page配置

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