抖音b端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

il y a 2 ans
il y a 2 ans
il y a 2 ans
1234567891011121314151617181920212223242526
  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