diff --git a/pages/agent/index/index.js b/pages/agent/index/index.js index 804da47..c9106c3 100644 --- a/pages/agent/index/index.js +++ b/pages/agent/index/index.js @@ -48,8 +48,9 @@ Page({ }) this.fetchRegionList() this.fetchPapersList() - event.on('attentionPaperList', this, this.onEvent) event.on('factoryDetails', this, this.onEvent) + event.on('attentionPaperList', this, this.onEvent) + }, onEvent: function (message) { if (message.what == 1100 || message.what == 1101) { diff --git a/pages/home/tab1/index.js b/pages/home/tab1/index.js index 46db387..59dbb59 100644 --- a/pages/home/tab1/index.js +++ b/pages/home/tab1/index.js @@ -20,7 +20,6 @@ Page({ */ onLoad: function (options) { this.getUerInfoFct() - }, toNextTab: function () { wx.navigateTo({ @@ -149,5 +148,6 @@ Page({ } }) - } + }, + }) \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index ded996c..1b8c3ec 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -57,6 +57,7 @@ Page({ }, /************************************** 初始化流程 ********************************************/ onLoad: function (options) { + storage.put('isTokenHaveStatus', false) const updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(function (res) { // 请求完新版本信息的回调