index.js 883 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // index.js
  2. Page({
  3. data: {
  4. },
  5. onLoad: function (options) {
  6. // Do some initialize when page load.
  7. },
  8. onShow: function () {
  9. // Do something when page show.
  10. let that = this;
  11. },
  12. onReady: function () {
  13. // Do something when page ready.
  14. },
  15. onHide: function () {
  16. // Do something when page hide.
  17. },
  18. onUnload: function () {
  19. // Do something when page close.
  20. },
  21. onPullDownRefresh: function () {
  22. // Do something when pull down.
  23. },
  24. onReachBottom: function () {
  25. // Do something when page reach bottom.
  26. },
  27. onShareAppMessage: function () {
  28. // return custom share data when user share.
  29. },
  30. onPageScroll: function () {
  31. // Do something when page scroll
  32. },
  33. onResize: function () {
  34. // Do something when page resize
  35. },
  36. });