config.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/zhongshan_logo.png',
  57. },
  58. // 中正学堂
  59. {
  60. BASE_URL: 'https://h.gdzzkj.net',
  61. BASE_IMG_URL: 'https://file.xyyxt.net/',
  62. WEBVIEW_URL: 'https://live.gdzzkj.net/',
  63. domain: 'h.gdzzkj.net',
  64. tenantId: '141250585240548145',
  65. appid: 'wx5872ef563d13dabf',
  66. version: '1.0.2'
  67. }
  68. ]
  69. export default isdev ? test : set[index]