抖音b端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

23 строки
609 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. })