platform.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * 注意:
  3. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  4. * module.exports = {
  5. * transpileDependencies: ['uview-v2']
  6. * }
  7. */
  8. let platform = 'none'
  9. // #ifdef VUE3
  10. platform = 'vue3'
  11. // #endif
  12. // #ifdef VUE2
  13. platform = 'vue2'
  14. // #endif
  15. // #ifdef APP-PLUS
  16. platform = 'plus'
  17. // #endif
  18. // #ifdef APP-NVUE
  19. platform = 'nvue'
  20. // #endif
  21. // #ifdef H5
  22. platform = 'h5'
  23. // #endif
  24. // #ifdef MP-WEIXIN
  25. platform = 'weixin'
  26. // #endif
  27. // #ifdef MP-ALIPAY
  28. platform = 'alipay'
  29. // #endif
  30. // #ifdef MP-BAIDU
  31. platform = 'baidu'
  32. // #endif
  33. // #ifdef MP-TOUTIAO
  34. platform = 'toutiao'
  35. // #endif
  36. // #ifdef MP-QQ
  37. platform = 'qq'
  38. // #endif
  39. // #ifdef MP-KUAISHOU
  40. platform = 'kuaishou'
  41. // #endif
  42. // #ifdef MP-360
  43. platform = '360'
  44. // #endif
  45. // #ifdef MP
  46. platform = 'mp'
  47. // #endif
  48. // #ifdef QUICKAPP-WEBVIEW
  49. platform = 'quickapp-webview'
  50. // #endif
  51. // #ifdef QUICKAPP-WEBVIEW-HUAWEI
  52. platform = 'quickapp-webview-huawei'
  53. // #endif
  54. // #ifdef QUICKAPP-WEBVIEW-UNION
  55. platform = 'quckapp-webview-union'
  56. // #endif
  57. export default platform