| | |
| | | // pages/store/staff.js |
| | | import { usersDetailByIamId } from '../../api/index' |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | */ |
| | | data: { |
| | | bottomLift: 0, |
| | | isShow: false |
| | | isShow: false, |
| | | |
| | | info: {} |
| | | }, |
| | | |
| | | /** |
| | |
| | | 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}) |
| | |
| | | onClose() { |
| | | this.setData({isShow: false}) |
| | | }, |
| | | |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面初次渲染完成 |