setting.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * 全局变量配置
  3. */
  4. module.exports = {
  5. // 应用名
  6. name: 'shzhjcyjptywxt',
  7. // 应用logo,支持本地路径和网络路径
  8. logo: '/static/images/logo.png',
  9. // 版本号
  10. version: '2.0.0',
  11. userType: 'app',
  12. // 开发环境接口Url
  13. devUrl: 'http://127.0.0.1:40004',
  14. //devUrl: 'https://nmwx.dahengsi.com:20001/api',
  15. // 线上环境接口Url
  16. prodUrl: 'https://wx.dahengsi.com:44301/api',
  17. //prodUrl: 'https://nmwx.dahengsi.com:20001/api',
  18. // 后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
  19. contentType: 'application/json;charset=UTF-8',
  20. // 后端返回状态码
  21. codeName: 'code',
  22. // 操作正常code
  23. successCode: 200,
  24. // 登录失效code
  25. invalidCode: 401,
  26. // 客户端ID
  27. clientId: 'shzhjcyjptywxt',
  28. // 客户端密钥
  29. clientSecret: 'shzhjcyjptywxt_secret_82828800',
  30. oss: 'https://wx.dahengsi.com:44301/oss/galaxy/',
  31. //oss: 'https://nmwx.dahengsi.com:20001/oss/galaxy/',
  32. img: 'https://wx.dahengsi.com:44301/img/',
  33. //img: 'https://nmwx.dahengsi.com:20001/img/',
  34. }