| | |
| | | getCustomizedNewsList, |
| | | newsPage |
| | | } from '../../api/index' |
| | | const { HYEventBus } = require('hy-event-store') |
| | | const eventBus = new HYEventBus() |
| | | Page({ |
| | | data: { |
| | | searchValue: '', |
| | |
| | | onLoad() { |
| | | const res = wx.getMenuButtonBoundingClientRect() |
| | | this.setData({ |
| | | clientHeight: res.height |
| | | }) |
| | | this.setData({ |
| | | clientHeight: res.height, |
| | | clientTop: res.top |
| | | }) |
| | | |
| | | }, |
| | | onShow() { |
| | | this.initData() |
| | | }, |
| | | initData() { |
| | |
| | | url: '/pages/promotion/index', |
| | | }) |
| | | }, |
| | | funClick(e){ |
| | | const i = e.currentTarget.dataset.i |
| | | let map = ['product_intro', 'whole_case', 'real_case'] |
| | | if(i == 3){ |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/consult', |
| | | }) |
| | | }else{ |
| | | wx.setStorageSync('discoverKey', map[i]) |
| | | wx.switchTab({ |
| | | url: '/pages/discover/discover', |
| | | }) |
| | | } |
| | | }, |
| | | jumpProVideo() { |
| | | wx.navigateTo({ |
| | | url: '/pages/productVideo/index', |