platform.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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
  25. platform = 'mp'
  26. // #endif
  27. // #ifdef MP-WEIXIN
  28. platform = 'weixin'
  29. // #endif
  30. // #ifdef MP-ALIPAY
  31. platform = 'alipay'
  32. // #endif
  33. // #ifdef MP-BAIDU
  34. platform = 'baidu'
  35. // #endif
  36. // #ifdef MP-TOUTIAO
  37. platform = 'toutiao'
  38. // #endif
  39. // #ifdef MP-QQ
  40. platform = 'qq'
  41. // #endif
  42. // #ifdef MP-KUAISHOU
  43. platform = 'kuaishou'
  44. // #endif
  45. // #ifdef MP-360
  46. platform = '360'
  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