index.js 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. const app = getApp()
  2. Page({
  3. data: {
  4. info: {}
  5. },
  6. /**
  7. * 生命周期函数--监听页面加载
  8. */
  9. onLoad(options) {
  10. const that = this;
  11. wx.showLoading({ title: '加载中', mask: true })
  12. that.search()
  13. wx.hideLoading()
  14. },
  15. // 查询通知
  16. async search() {
  17. const that = this;
  18. },
  19. /**
  20. * 生命周期函数--监听页面初次渲染完成
  21. */
  22. onReady() {
  23. },
  24. /**
  25. * 生命周期函数--监听页面显示
  26. */
  27. onShow() {
  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. })