index.js 644 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // pages/activity/index.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. },
  8. onShow() {
  9. if (typeof this.getTabBar === 'function') {
  10. this.getTabBar().setData({
  11. selected: 1
  12. })
  13. }
  14. },
  15. /**
  16. * 生命周期函数--监听页面隐藏
  17. */
  18. onHide() {
  19. },
  20. /**
  21. * 生命周期函数--监听页面卸载
  22. */
  23. onUnload() {
  24. },
  25. /**
  26. * 页面相关事件处理函数--监听用户下拉动作
  27. */
  28. onPullDownRefresh() {
  29. },
  30. /**
  31. * 页面上拉触底事件的处理函数
  32. */
  33. onReachBottom() {
  34. },
  35. /**
  36. * 用户点击右上角分享
  37. */
  38. onShareAppMessage() {
  39. }
  40. })