platform.js 905 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. let platform = 'none';
  2. // #ifdef VUE3
  3. platform = 'vue3';
  4. // #endif
  5. // #ifdef VUE2
  6. platform = 'vue2';
  7. // #endif
  8. // #ifdef APP-PLUS
  9. platform = 'plus';
  10. // #endif
  11. // #ifdef APP-NVUE
  12. platform = 'nvue';
  13. // #endif
  14. // #ifdef H5
  15. platform = 'h5';
  16. // #endif
  17. // #ifdef MP-WEIXIN
  18. platform = 'weixin';
  19. // #endif
  20. // #ifdef MP-ALIPAY
  21. platform = 'alipay';
  22. // #endif
  23. // #ifdef MP-BAIDU
  24. platform = 'baidu';
  25. // #endif
  26. // #ifdef MP-TOUTIAO
  27. platform = 'toutiao';
  28. // #endif
  29. // #ifdef MP-QQ
  30. platform = 'qq';
  31. // #endif
  32. // #ifdef MP-KUAISHOU
  33. platform = 'kuaishou';
  34. // #endif
  35. // #ifdef MP-360
  36. platform = '360';
  37. // #endif
  38. // #ifdef MP
  39. platform = 'mp';
  40. // #endif
  41. // #ifdef QUICKAPP-WEBVIEW
  42. platform = 'quickapp-webview';
  43. // #endif
  44. // #ifdef QUICKAPP-WEBVIEW-HUAWEI
  45. platform = 'quickapp-webview-huawei';
  46. // #endif
  47. // #ifdef QUICKAPP-WEBVIEW-UNION
  48. platform = 'quckapp-webview-union';
  49. // #endif
  50. export default platform;