liukangdong
2024-07-18 5b219a9694c8d69db42e746a654c779cc6a61bf6
wechat_staff/pages/work/index.js
@@ -1,4 +1,4 @@
// pages/mine/mine.js
import { getMemberInfo } from '../../api/index'
Page({
  /**
@@ -7,6 +7,8 @@
  data: {
    clientHeight: 0,
    clientTop: 0,
    uesrInfo: {}
  },
  /**
@@ -16,6 +18,8 @@
    const res = wx.getMenuButtonBoundingClientRect()
    this.setData({clientHeight: res.height})
    this.setData({clientTop: res.top})
    this.initData()
  },
  changePath(e) {
    // 页面跳转
@@ -31,9 +35,13 @@
      url: `${temp[index]}`,
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  initData() {
    getMemberInfo().then(res => {
      this.setData({
        uesrInfo: res.data
      })
    })
  },
  onReady() {
  },