| | |
| | | const res = wx.getMenuButtonBoundingClientRect() |
| | | this.setData({clientHeight: res.height}) |
| | | this.setData({clientTop: res.top}) |
| | | |
| | | }, |
| | | onShow(){ |
| | | this.initData() |
| | | }, |
| | | initData() { |
| | |
| | | let temp = ['mysub', 'collect', 'favorite','index'] |
| | | const index = e.currentTarget.dataset.index |
| | | if(index == '4'){ |
| | | |
| | | wx.navigateToMiniProgram({ |
| | | appId: 'wx9910433b937fff92', |
| | | path: '', |
| | | envVersion: 'trial', |
| | | extraData: { |
| | | origin: 'c' |
| | | } |
| | | }) |
| | | } |
| | | if(index == '5'){ |
| | | wx.navigateTo({ |
| | |
| | | * 生命周期函数--监听页面初次渲染完成 |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |