index.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Page({
  2. /**
  3. * 页面的初始数据
  4. */
  5. data: {
  6. //轮播图列表
  7. swiperBannerList: [{
  8. id: "001",
  9. url: "/static/changeImg.png",
  10. src: ''
  11. }, {
  12. id: "002",
  13. url: "/static/changeImg.png",
  14. src: ''
  15. }, {
  16. id: "003",
  17. url: "/static/changeImg.png",
  18. src: ''
  19. }],
  20. /* 宫格列表 */
  21. gridList: [{
  22. id: '001',
  23. text: '寻找面料',
  24. icon: '/static/login/Phone.png'
  25. }, {
  26. id: '002',
  27. text: '面料设计',
  28. icon: '/static/login/identity.png'
  29. }, {
  30. id: '003',
  31. text: '平面设计',
  32. icon: '/static/login/username.png'
  33. }, {
  34. id: '004',
  35. text: '产品策划',
  36. icon: '/static/login/verificationcode.png'
  37. }, {
  38. id: '005',
  39. text: '寻找主播',
  40. icon: '/static/login/verificationcode.png'
  41. }, {
  42. id: '006',
  43. text: '摄影摄像',
  44. icon: '/static/login/identity.png'
  45. }],
  46. /* 圆角按钮tabs列表 */
  47. roundedList: [
  48. "兴趣爱好", "关注板块", "最新发布"
  49. ]
  50. },
  51. /* tabs切换 */
  52. tabsSelectedIitem(text) {
  53. console.log(text.detail)
  54. },
  55. /* 获得展示区标题 */
  56. getExhibitionTitle(title) {
  57. console.log(title.detail)
  58. },
  59. /**
  60. * 生命周期函数--监听页面加载
  61. */
  62. onLoad: function (options) {
  63. },
  64. /**
  65. * 生命周期函数--监听页面初次渲染完成
  66. */
  67. onReady: function () {
  68. },
  69. /**
  70. * 生命周期函数--监听页面显示
  71. */
  72. onShow: function () {
  73. this.getTabBar().init();
  74. },
  75. /**
  76. * 生命周期函数--监听页面隐藏
  77. */
  78. onHide: function () {
  79. },
  80. /**
  81. * 生命周期函数--监听页面卸载
  82. */
  83. onUnload: function () {
  84. },
  85. /**
  86. * 页面相关事件处理函数--监听用户下拉动作
  87. */
  88. onPullDownRefresh: function () {
  89. },
  90. /**
  91. * 页面上拉触底事件的处理函数
  92. */
  93. onReachBottom: function () {
  94. },
  95. /**
  96. * 用户点击右上角分享
  97. */
  98. onShareAppMessage: function () {
  99. }
  100. })