| | |
| | | HYEventBus |
| | | } = require('hy-event-store') |
| | | const eventBus = new HYEventBus() |
| | | const app = getApp() |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | HOME_CLASS_B2: '', |
| | | HOME_CLASS_C: '', |
| | | }, |
| | | onLoadLogin(options){ |
| | | // 已经登录,可以走依赖token的逻辑了 |
| | | console.log('首页的onLoadLogin',options,`{"token":"${app.globalData.token}"}`); |
| | | this.initData() |
| | | }, |
| | | onShow() { |
| | | let that = this |
| | | const member = wx.getStorageSync('member') |
| | |
| | | onLoad(options) { |
| | | const member = wx.getStorageSync('member') |
| | | this.initDictData() |
| | | setTimeout(() => { |
| | | this.initData() |
| | | }, 1200) |
| | | }, |
| | | changePath(e) { |
| | | let index = e.currentTarget.dataset.type |