index.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import {
  2. ApiModel
  3. } from "../../utils/api";
  4. const _Http = new ApiModel();
  5. Page({
  6. /**
  7. * 页面的初始数据
  8. */
  9. data: {
  10. //轮播图列表
  11. swiperBannerList: [],
  12. },
  13. /**
  14. * 生命周期函数--监听页面加载
  15. */
  16. onLoad: function (options) {
  17. /* 热门展商 */
  18. _Http.basic({
  19. "classname": "publicmethod.live.live",
  20. "method": "agentList",
  21. "content": {
  22. "tactivityidid": options.id
  23. }
  24. }).then(res => {
  25. console.log(res)
  26. });
  27. /* 获取轮播图 */
  28. const bannerList = getApp().globalData.bannerDataList.filter(value => value.flocation == 'activity_head');
  29. this.setData({
  30. swiperBannerList: bannerList[0].banner
  31. });
  32. },
  33. searchBlur(e) {
  34. const {
  35. value
  36. } = e.detail;
  37. console.log(value)
  38. },
  39. /**
  40. * 生命周期函数--监听页面初次渲染完成
  41. */
  42. onReady: function () {
  43. },
  44. /**
  45. * 生命周期函数--监听页面显示
  46. */
  47. onShow: function () {
  48. },
  49. /**
  50. * 生命周期函数--监听页面隐藏
  51. */
  52. onHide: function () {
  53. },
  54. /**
  55. * 生命周期函数--监听页面卸载
  56. */
  57. onUnload: function () {
  58. },
  59. /**
  60. * 页面相关事件处理函数--监听用户下拉动作
  61. */
  62. onPullDownRefresh: function () {
  63. },
  64. /**
  65. * 页面上拉触底事件的处理函数
  66. */
  67. onReachBottom: function () {
  68. },
  69. /**
  70. * 用户点击右上角分享
  71. */
  72. onShareAppMessage: function () {
  73. }
  74. })