index.js 669 B

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