app.js 778 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. App({
  2. globalData: {
  3. showAnimation: true,
  4. id: null,
  5. name:null,
  6. },
  7. onLaunch(options) {
  8. // if (wx.getStorageSync('openId')) {
  9. // wx.request({
  10. // url: 'http://info.windd.cn:8080/test/applet/isExist',
  11. // method: "GET",
  12. // data: {
  13. // appletsId: wx.getStorageSync('openId')
  14. // },
  15. // success: (res) => {
  16. // console.log(res, "000000000000000000");
  17. // if(res.data.code == 0){
  18. // wx.switchTab({
  19. // url: '/pages/index/index',
  20. // })
  21. // }
  22. // }
  23. // })
  24. // } else {
  25. // }
  26. },
  27. onShow(options) {
  28. // Do something when show.
  29. },
  30. onHide() {
  31. // Do something when hide.
  32. },
  33. onError(msg) {
  34. console.log(msg)
  35. },
  36. })