1
0

addcustomerData.js 1.1 KB

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