customermsg.js 1.5 KB

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