config.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. let config = {}
  2. // #ifdef H5
  3. if (process.env.NODE_ENV !== 'production') {} else {}
  4. // #endif
  5. // #ifdef MP-WEIXIN
  6. import wxApp from "@/common/wecaht.min.app.js"
  7. console.log(wxApp.getWXAppId(), 'wxApp.getWXAppId()wxApp.getWXAppId()wxApp.getWXAppId()')
  8. if (__wxConfig.envVersion == 'develop') {
  9. // 开发版本
  10. config = {
  11. apiUrl: "https://api.duanju.dududus.com",
  12. staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
  13. zystaticUrl: "",
  14. TabbarIndex: 2
  15. }
  16. } else if (__wxConfig.envVersion == 'trial') {
  17. //体验版
  18. config = {
  19. apiUrl: "https://api.dududus.com",
  20. staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
  21. zystaticUrl: "",
  22. TabbarIndex: 2
  23. }
  24. } else if (__wxConfig.envVersion == 'release') {
  25. //正式版
  26. config = {
  27. apiUrl: "https://api.dududus.com",
  28. staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
  29. zystaticUrl: "",
  30. TabbarIndex: 2
  31. }
  32. } else {
  33. config = {
  34. apiUrl: "https://api.duanju.dududus.com",
  35. staticUrl: 'https://xjc.demo.hongcd.com/img/', //静态图片地址https://xjc.demo.hongcd.com
  36. zystaticUrl: "",
  37. TabbarIndex: 2
  38. }
  39. }
  40. // #endif
  41. // 配置信息
  42. export default config