index.js 987 B

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