赫艾前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.1 KiB

5 years ago
3 weeks ago
5 years ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
5 years ago
  1. /**
  2. * 生产环境
  3. */
  4. ;(function () {
  5. window.SITE_CONFIG = {};
  6. /**
  7. * 部署站点打包前只改此常量 从下面两套完整配置中选一套生效 - rqrq
  8. * 可选值'苏州' | '国外'
  9. */
  10. var DEPLOY_SITE = '苏州';
  11. // 两套完整配置(baseUrl、静态资源、LODOP 授权均可分别填写)- rqrq
  12. var PRESETS = {
  13. '苏州': {
  14. baseUrl: 'http://192.168.2.172:9090',
  15. printAssetBaseUrl: 'http://192.168.2.172:80/print',
  16. uploadBaseUrl: 'http://192.168.2.172:80/upload/',
  17. sopFileBaseUrl: 'http://192.168.2.172:80/sopFile/',
  18. lodopLicenseStr1: '',
  19. lodopLicenseStr2: 'AF8A5800B823CC8E18BCF67B925E7BF0',
  20. lodopLicenseStr3: '',
  21. lodopLicenseStr4: '',
  22. siteName: '苏州赫艾聚合科技有限公司',
  23. siteNameE: 'A&M Polymer'
  24. },
  25. '国外': {
  26. baseUrl: 'http://192.168.1.88:9090',
  27. printAssetBaseUrl: 'http://192.168.1.88:82/print',
  28. uploadBaseUrl: 'http://192.168.1.88:82/upload/',
  29. sopFileBaseUrl: 'http://192.168.1.88:82/sopFile/',
  30. lodopLicenseStr1: '',
  31. lodopLicenseStr2: '15F0BE661E7F39FD7491843CB2514F69',
  32. lodopLicenseStr3: '',
  33. lodopLicenseStr4: '',
  34. siteName: 'JCA POLYMER TECHNICS SDN.BHD. ',
  35. siteNameE: 'JCA Polymer'
  36. }
  37. };
  38. var cfg = PRESETS[DEPLOY_SITE] || PRESETS['苏州'];
  39. window.SITE_CONFIG['baseUrl'] = cfg.baseUrl;
  40. window.SITE_CONFIG['printAssetBaseUrl'] = cfg.printAssetBaseUrl;
  41. window.SITE_CONFIG['uploadBaseUrl'] = cfg.uploadBaseUrl;
  42. window.SITE_CONFIG['sopFileBaseUrl'] = cfg.sopFileBaseUrl;
  43. window.SITE_CONFIG['lodopLicenseStr1'] = cfg.lodopLicenseStr1;
  44. window.SITE_CONFIG['lodopLicenseStr2'] = cfg.lodopLicenseStr2;
  45. window.SITE_CONFIG['lodopLicenseStr3'] = cfg.lodopLicenseStr3;
  46. window.SITE_CONFIG['lodopLicenseStr4'] = cfg.lodopLicenseStr4;
  47. window.SITE_CONFIG['siteName'] = cfg.siteName;
  48. window.SITE_CONFIG['siteNameE'] = cfg.siteNameE;
  49. // cdn地址 = 域名 + 版本号
  50. window.SITE_CONFIG['domain'] = './'; // 域名
  51. window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分)
  52. window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
  53. })();