app.js 389 B

12345678910111213141516171819202122
  1. // app.js
  2. App({
  3. onLaunch() {
  4. console.log('APP onLaunch');
  5. const that = this
  6. wx.getStorage({
  7. key: 'accessToken',
  8. success (res) {
  9. that.globalData.accessToken = res.data
  10. }
  11. })
  12. },
  13. globalData: {
  14. isBindWechat: false,
  15. accessToken: '',
  16. workerId: '',
  17. userName: '',
  18. headImg: '',
  19. device: null,
  20. isNeedAccountPwd: false
  21. }
  22. })