xungengdetails.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // pages/xungengdetails/xungengdetails.js
  2. import http from '../../base/httputil'
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. id: null,
  9. host: app.globalData.host,
  10. //店铺经纬度
  11. latitude: 43.8691319,
  12. longitude: 125.3504459,
  13. //标记点
  14. markers: [{
  15. id: 0,
  16. name: "编程小石头",
  17. address: "长春首佳科技有限公司",
  18. latitude: 43.8691319,
  19. longitude: 125.3504459,
  20. width: 35,
  21. height: 50
  22. }]
  23. },
  24. /**
  25. * 生命周期函数--监听页面加载
  26. */
  27. onLoad(options) {
  28. console.log("@@@",options.id)
  29. this.setData({
  30. id:options.id
  31. })
  32. this.getDetails(options.id)
  33. },
  34. getDetails(id){
  35. let obj = new Object();
  36. obj.id = this.data.id
  37. http.post("/system/AppEnterpriseController/getEnterpriseDetails", obj, this.getDetailsSuccess)
  38. },
  39. getDetailsSuccess(res){
  40. },
  41. /**
  42. * 生命周期函数--监听页面初次渲染完成
  43. */
  44. onReady() {
  45. },
  46. /**
  47. * 生命周期函数--监听页面显示
  48. */
  49. onShow() {
  50. },
  51. /**
  52. * 生命周期函数--监听页面隐藏
  53. */
  54. onHide() {
  55. },
  56. /**
  57. * 生命周期函数--监听页面卸载
  58. */
  59. onUnload() {
  60. },
  61. /**
  62. * 页面相关事件处理函数--监听用户下拉动作
  63. */
  64. onPullDownRefresh() {
  65. },
  66. /**
  67. * 页面上拉触底事件的处理函数
  68. */
  69. onReachBottom() {
  70. },
  71. /**
  72. * 用户点击右上角分享
  73. */
  74. onShareAppMessage() {
  75. }
  76. })