k94314517
2024-07-29 5a42219c9f91fd8fa77ddd8c8945d03168250b68
wechat_staff/pages/discover/discover.js
@@ -1,4 +1,4 @@
import { getCataLogTagList, getCatalogList } from '../../api/index'
import { getCataLogTagList, getCatalogList,refreshEnjoy } from '../../api/index'
const { HYEventBus } = require('hy-event-store')
const eventBus = new HYEventBus()
Page({
@@ -18,7 +18,10 @@
    let menuButtonInfo = wx.getMenuButtonBoundingClientRect();
    this.setData({menuButtonInfo})
  }, 
  onShow() {
  onShow(){
    console.log('onShow')
    refreshEnjoy(this)
    let discoverKey = wx.getStorageSync('discoverKey') || ''
    if(discoverKey){
      this.setData({ catalogCode: discoverKey })