config.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // api 请求路径
  2. var PLATFROM_CONFIG = {};
  3. // PLATFROM_CONFIG.baseUrl = "http://172.16.120.104:8010/" //杨强本地
  4. // PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/" //超博本地
  5. if (window.location.host.indexOf('localhost') != -1 || window.location.host.indexOf('pcdev.ewoogi.com') != -1) {
  6. // PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上--->测试
  7. // PLATFROM_CONFIG.images = "https://qhome.usky.cn/file/" //线上图片--->测试
  8. // PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径--->测试
  9. PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上--->测试
  10. PLATFROM_CONFIG.images = "https://qhome.usky.cn/file/" //线上图片--->测试
  11. PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径--->测试
  12. // PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上--->正式
  13. // PLATFROM_CONFIG.images = "https://wx.ewoogi.com/file/" //线上图片--->正式
  14. // PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径--->正式
  15. } else {
  16. PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上--->测试
  17. PLATFROM_CONFIG.images = "https://qhome.usky.cn/file/" //线上图片--->测试
  18. PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径--->测试
  19. // PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上--->正式
  20. // PLATFROM_CONFIG.images = "https://wx.ewoogi.com/file/" //线上图片--->正式
  21. // PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径--->正式
  22. }
  23. // 本地json文件请求路径
  24. PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
  25. PLATFROM_CONFIG.ione = "/vuefiv/1.json"
  26. // 当前站点 siteId 信息存储
  27. // var PLATFROM_SITEID = {};
  28. // PLATFROM_SITEID.id = 0;
  29. //alarming WEBSOCKET
  30. // let userInfo = window.localStorage.getItem("key");
  31. // var PLATFROM_WEBSOCKET = {};
  32. // PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
  33. //iframe 请求路径
  34. //http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
  35. // var PLATFROM_IFRAME = {};
  36. // PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`