config.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // test 测试环境
  2. const test = {
  3. // BASE_URL: 'https://test.xyyxt.net', //预发布
  4. // BASE_URL: 'https://api.xyyxt.net', //正式
  5. // BASE_URL: 'http://192.168.1.24:5055',
  6. BASE_URL: 'http://120.79.166.78:19012',
  7. BASE_IMG_URL: 'https://file-dev.xyyxt.net/',
  8. WEBVIEW_URL: 'http://120.79.166.78:18001/',
  9. domain: 'h.xyyxt.net',
  10. tenantId: '867735392558919680', //详粤云学堂
  11. // tenantId: '667735392758919630', //详粤学堂
  12. // tenantId: '867735392558919520', // 勘设云学堂
  13. // tenantId: '141250585240548145', // 中山云学堂
  14. appid: 'wxd3c8ae80cf43a305',
  15. version: '1.0.2',
  16. TOP_LOGO: '/static/logo2.png',
  17. SCAN_LOGO: '/static/me/logo.png'
  18. }
  19. const isdev = process.env.NODE_ENV === 'development'
  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. version: '1.0.2',
  34. TOP_LOGO: '/static/logo2.png',
  35. SCAN_LOGO: '/static/me/logo.png'
  36. },
  37. // 祥粤学堂
  38. {
  39. BASE_URL: 'https://api.xyyxt.net',
  40. BASE_IMG_URL: 'https://file.xyyxt.net/',
  41. WEBVIEW_URL: 'https://cm.xyyxt.net/',
  42. domain: '',
  43. tenantId: '667735392758919630',
  44. appid: 'wx871153afc95f55f4',
  45. version: '1.0.2'
  46. },
  47. // 勘设云学堂
  48. {
  49. BASE_URL: 'https://api.xyyxt.net',
  50. BASE_IMG_URL: 'https://file.xyyxt.net/',
  51. WEBVIEW_URL: 'https://zstcm.xyyxt.net/',
  52. domain: '',
  53. tenantId: '567735392758918520',
  54. appid: 'wx29d0ad81e625ad81',
  55. version: '1.0.2',
  56. TOP_LOGO: '/static/logo520.png',
  57. SCAN_LOGO: '/static/me/logo520.png'
  58. },
  59. // 中正学堂
  60. {
  61. BASE_URL: 'https://h.gdzzkj.net',
  62. BASE_IMG_URL: 'https://file.xyyxt.net/',
  63. WEBVIEW_URL: 'https://live.gdzzkj.net/',
  64. domain: 'h.gdzzkj.net',
  65. tenantId: '141250585240548145',
  66. appid: 'wx5872ef563d13dabf',
  67. version: '1.0.2',
  68. TOP_LOGO: '/static/logo145.png',
  69. SCAN_LOGO: '/static/me/logo145.png'
  70. }
  71. ]
  72. export default isdev ? test : set[index]