wechat_jiaxuan/pages/mine/mine.js
@@ -20,7 +20,8 @@ const res = wx.getMenuButtonBoundingClientRect() this.setData({clientHeight: res.height}) this.setData({clientTop: res.top}) }, onShow(){ this.initData() }, initData() { @@ -71,13 +72,6 @@ * 生命周期函数--监听页面初次渲染完成 */ onReady() { }, /** * 生命周期函数--监听页面显示 */ onShow() { },