index.js 445 B

1234567891011121314151617181920212223242526272829303132
  1. const app = getApp()
  2. import {
  3. getBannerList
  4. } from '~/api/global'
  5. Page({
  6. data: {
  7. bannerList: []
  8. },
  9. onShow() {
  10. if (typeof this.getTabBar === 'function') {
  11. this.getTabBar().setData({
  12. selected: 2
  13. })
  14. }
  15. getApp().callBack = (res) => {
  16. }
  17. },
  18. /**
  19. * 页面上拉触底事件的处理函数
  20. */
  21. onReachBottom() {
  22. },
  23. /**
  24. * 用户点击右上角分享
  25. */
  26. onShareAppMessage() {
  27. }
  28. })