config.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // test 测试环境
  2. const test = {
  3. BASE_URL: 'http://120.79.166.78:19012',
  4. BASE_IMG_URL: 'https://file-dev.xyyxt.net/',
  5. WEBVIEW_URL: 'http://120.79.166.78:18001/',
  6. domain: 'h.xyyxt.net',
  7. tenantId: '867735392558919680', //详粤云学堂
  8. appid: 'wxd3c8ae80cf43a305',
  9. version: '1.0.2',
  10. TOP_LOGO: '/static/logo2.png',
  11. SCAN_LOGO: '/static/me/logo.png'
  12. }
  13. let isDev
  14. // #ifdef H5
  15. isDev = process.env.NODE_ENV === 'development'
  16. // #endif
  17. // #ifdef MP-WEIXIN
  18. isDev = __wxConfig.envVersion === 'develop'
  19. // #endif
  20. // const index = 0 // 祥粤云学堂
  21. // const index = 1 // 祥粤学堂
  22. // const index = 2 // 勘设云学堂
  23. const index = 3 // 中正云学堂
  24. const set = [
  25. // 祥粤云学堂
  26. {
  27. BASE_URL: 'https://api.xyyxt.net',
  28. BASE_IMG_URL: 'https://file.xyyxt.net/',
  29. WEBVIEW_URL: 'https://m.xyyxt.net/',
  30. domain: 'h.xyyxt.net',
  31. tenantId: '867735392558919680',
  32. appid: 'wxd3c8ae80cf43a305',
  33. tenantName: '祥粤云学堂',
  34. version: '1.0.2',
  35. TOP_LOGO: '/static/logo2.png',
  36. SCAN_LOGO: '/static/me/logo.png'
  37. },
  38. // 祥粤学堂
  39. {
  40. BASE_URL: 'https://api.xyyxt.net',
  41. BASE_IMG_URL: 'https://file.xyyxt.net/',
  42. WEBVIEW_URL: 'https://cm.xyyxt.net/',
  43. domain: '',
  44. tenantId: '667735392758919630',
  45. appid: 'wx871153afc95f55f4',
  46. tenantName: '祥粤学堂',
  47. version: '1.0.2',
  48. TOP_LOGO: '/static/logo2.png',
  49. SCAN_LOGO: '/static/me/logo.png'
  50. },
  51. // 勘设云学堂
  52. {
  53. BASE_URL: 'https://api.xyyxt.net',
  54. BASE_IMG_URL: 'https://file.xyyxt.net/',
  55. WEBVIEW_URL: 'https://zstcm.xyyxt.net/',
  56. domain: '',
  57. tenantId: '567735392758918520',
  58. appid: 'wx29d0ad81e625ad81',
  59. tenantName: '勘设云学堂',
  60. version: '1.0.2',
  61. TOP_LOGO: '/static/logo520.png',
  62. SCAN_LOGO: '/static/me/logo520.png'
  63. },
  64. // 中正云学堂
  65. {
  66. BASE_URL: 'https://api.xyyxt.net',
  67. BASE_IMG_URL: 'https://file.xyyxt.net/',
  68. WEBVIEW_URL: 'https://live.gdzzkj.net/',
  69. domain: 'h.gdzzkj.net',
  70. tenantId: '141250585240548145',
  71. appid: 'wx5872ef563d13dabf',
  72. tenantName: '中正云学堂',
  73. version: '1.0.2',
  74. TOP_LOGO: '/static/logo145.png',
  75. SCAN_LOGO: '/static/me/logo145.png'
  76. }
  77. ]
  78. export default !isDev ? test : set[index]