抖音b端
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

23 líneas
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. })