抖音b端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 rivejä
659 B

  1. App({
  2. data:{},
  3. globalData:{
  4. token: "",
  5. // "token": "0b272d7d-d669-401a-8d4b-a9eef9340dc1:1027:tt-cuser",
  6. imgHttps: 'https://formall.oss-accelerate.aliyuncs.com/douyin/drawable-xhdpi/',
  7. platform:null,//手机型号
  8. },
  9. onLaunch: function () {
  10. let that = this
  11. // this.logn();
  12. try {
  13. var res = tt.getSystemInfoSync();
  14. that.statusBarHeight = res.statusBarHeight
  15. console.log(`手机型号为 ${res.platform}`);
  16. this.globalData.platform = res.platform
  17. } catch (error) {
  18. console.log(`获取系统信息失败`);
  19. }
  20. },
  21. statusBarHeight: 0,
  22. })
  23. // 测试账号信息
  24. // 18872592635
  25. // 123456GD