customermsg.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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+'&idx='+options.idx,
  18. })
  19. } else if (options.type=='666') {
  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+'&idx='+options.idx+'&shareval='+options.share,
  23. })
  24. } else {
  25. this.setData({
  26. clientype: app.globalData.clientype,
  27. 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+'&idx='+options.idx,
  28. })
  29. }
  30. },
  31. /**
  32. * 生命周期函数--监听页面初次渲染完成
  33. */
  34. onReady: function () {
  35. },
  36. /**
  37. * 生命周期函数--监听页面显示
  38. */
  39. onShow: function () {
  40. // wx.hideHomeButton();
  41. },
  42. /**
  43. * 生命周期函数--监听页面隐藏
  44. */
  45. onHide: function () {
  46. },
  47. /**
  48. * 生命周期函数--监听页面卸载
  49. */
  50. onUnload: function () {
  51. },
  52. /**
  53. * 页面相关事件处理函数--监听用户下拉动作
  54. */
  55. onPullDownRefresh: function () {
  56. },
  57. /**
  58. * 页面上拉触底事件的处理函数
  59. */
  60. // onReachBottom: function () {
  61. // },
  62. })