liukangdong
2024-07-18 5b219a9694c8d69db42e746a654c779cc6a61bf6
wechat_jiaxuan/pages/store/staff.js
@@ -1,4 +1,4 @@
// pages/store/staff.js
import { usersDetailByIamId } from '../../api/index'
Page({
  /**
@@ -6,7 +6,9 @@
   */
  data: {
    bottomLift: 0,
    isShow: false
    isShow: false,
    info: {}
  },
  /**
@@ -17,6 +19,16 @@
    this.setData({
      bottomLift: app.bottomLift
    })
    this.getDetail(options.id)
    wx.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline']
    })
  },
  getDetail(id) {
    usersDetailByIamId({iamId: id}).then(res => {
      this.setData({ info: res.data })
    })
  },
  openModal() {
    this.setData({isShow: true})
@@ -24,6 +36,7 @@
  onClose() {
    this.setData({isShow: false})
  },
  /**
   * 生命周期函数--监听页面初次渲染完成