| | |
| | | import { getCataLogTagList, getCatalogList } from '../../api/index' |
| | | const { HYEventBus } = require('hy-event-store') |
| | | const eventBus = new HYEventBus() |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | let menuButtonInfo = wx.getMenuButtonBoundingClientRect(); |
| | | this.setData({menuButtonInfo}) |
| | | }, |
| | | onShow() { |
| | | let discoverKey = wx.getStorageSync('discoverKey') || '' |
| | | if(discoverKey){ |
| | | this.setData({ catalogCode: discoverKey }) |
| | | setTimeout(() => { |
| | | wx.setStorageSync('discoverKey', '') |
| | | }, 500) |
| | | } |
| | | }, |
| | | tabsClick(e) { |
| | | const catalogCode = e.currentTarget.dataset.code |
| | | this.setData({catalogCode}) |
| | |
| | | * 生命周期函数--监听页面初次渲染完成 |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |