config.js 1.9 KB

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