wechat_staff/pages/work/index.js
@@ -8,19 +8,22 @@ topimg:'', clientHeight: 0, clientTop: 0, showCard: false, userInfo: {name:''} }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { const res = wx.getMenuButtonBoundingClientRect() this.setData({clientHeight: res.height}) this.setData({clientTop: res.top}) }, onShow() { this.initData() }, showQrcode() { this.setData({ showCard: true }) }, onClose() { this.setData({ showCard: false }) }, changePath(e) { const {userInfo} = this.data @@ -52,13 +55,6 @@ }) }, onReady() { }, /** * 生命周期函数--监听页面显示 */ onShow() { }, /**