customer.js 1.3 KB

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