managerdata.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. const app=getApp();
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. weburl:''
  8. },
  9. /**
  10. * 生命周期函数--监听页面加载
  11. */
  12. onLoad: function (options) {
  13. if(!!options.type){
  14. this.setData({
  15. weburl:app.globalData.webUrl + 'applet.html#/management?orgid='+app.globalData.personMsg.binded.org_id+'&type='+options.type+'&empid='+app.globalData.personMsg.binded.id+'&token=' + app.globalData.token + '&client_type=' + app.globalData.clientype,
  16. })
  17. }else{
  18. this.setData({
  19. weburl:app.globalData.webUrl + 'applet.html#/management?orgid='+app.globalData.personMsg.binded.org_id+'&empid='+app.globalData.personMsg.binded.id+'&token=' + app.globalData.token + '&client_type=' + app.globalData.clientype,
  20. })
  21. }
  22. },
  23. /**
  24. * 生命周期函数--监听页面初次渲染完成
  25. */
  26. onReady: function () {
  27. },
  28. /**
  29. * 生命周期函数--监听页面显示
  30. */
  31. onShow: function () {
  32. },
  33. /**
  34. * 生命周期函数--监听页面隐藏
  35. */
  36. onHide: function () {
  37. },
  38. /**
  39. * 生命周期函数--监听页面卸载
  40. */
  41. onUnload: function () {
  42. },
  43. /**
  44. * 页面相关事件处理函数--监听用户下拉动作
  45. */
  46. onPullDownRefresh: function () {
  47. },
  48. /**
  49. * 页面上拉触底事件的处理函数
  50. */
  51. onReachBottom: function () {
  52. },
  53. /**
  54. * 用户点击右上角分享
  55. */
  56. })