index.js 415 B

12345678910111213141516171819202122232425262728293031
  1. const app = getApp();
  2. Page({
  3. data: {
  4. CustomBar: app.globalData.CustomBar,
  5. },
  6. onLoad: function (options) {
  7. },
  8. onReady: function () {
  9. },
  10. onShow: function () {
  11. if (!app.globalData._initState) { wx.switchTab({ url: '/pages/index/index' }); }
  12. },
  13. onHide: function () {
  14. },
  15. onUnload: function () {
  16. },
  17. onPullDownRefresh: function () {
  18. },
  19. onReachBottom: function () {
  20. },
  21. })