jiangping
2024-07-19 bf99ae66d14857dfcd97dc6ccb8e82a38d3bd75f
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})
  },
  /**
   * 生命周期函数--监听页面初次渲染完成