depoSuce.js 534 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var app = getApp()
  2. Page({
  3. data: {
  4. },
  5. onLoad: function (options) {
  6. },
  7. goHome(){
  8. if(app.globalData.compatible){
  9. wx.reLaunch({
  10. url: '/pages/compatible/index/index',
  11. })
  12. }else{
  13. wx.reLaunch({
  14. url: '/pages/index/index',
  15. })
  16. }
  17. },
  18. onReady: function () {
  19. },
  20. onShow: function () {
  21. },
  22. onHide: function () {
  23. },
  24. onUnload: function () {
  25. },
  26. onPullDownRefresh: function () {
  27. },
  28. onReachBottom: function () {
  29. },
  30. onShareAppMessage: function () {
  31. }
  32. })