prod.env.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. 'use strict'
  2. const findServer = require('../findAddr')
  3. // /** 正式服务器地址 */
  4. // const PROD_HOST = "wyservice.gzbfdc.com"
  5. // /** 正式服务器端口号 */
  6. // const PROD_PORT = 5008
  7. /** 测试服务器地址 */
  8. const PROD_HOST = 'http://www.jmpms.cn'
  9. // const PROD_HOST = 'http://180.168.37.139';
  10. /** 测试服务器端口号 */
  11. const PROD_PORT = 0
  12. /** 微信首页地址 */
  13. const wechatRootUrl = "wechat/#/index"
  14. const currFile = __filename.split("/").pop()
  15. let serverConfig = {
  16. /**
  17. * 正式环境
  18. * 【注】如果没有端口号,port填null
  19. */
  20. /** 报事报修地址 */
  21. crm400: {
  22. addr: PROD_HOST,
  23. port: PROD_PORT,
  24. path: '/landcrm'
  25. },
  26. /** 商城地址 */
  27. walter: {
  28. addr: PROD_HOST,
  29. port: PROD_PORT,
  30. path: '/community'
  31. },
  32. /** 会所接口地址 */
  33. club: {
  34. addr: PROD_HOST,
  35. port: PROD_PORT,
  36. path: '/community'
  37. },
  38. /** 微信运营-管家地址 */
  39. houserkeep: {
  40. addr: PROD_HOST,
  41. port: PROD_PORT,
  42. path: '/wxmanage/steward'
  43. },
  44. /** 微信运营-活动地址 */
  45. activity: {
  46. addr: PROD_HOST,
  47. port: PROD_PORT,
  48. path: '/wxmanage/activity'
  49. },
  50. /** 微信运营-公告 */
  51. article: {
  52. addr: PROD_HOST,
  53. port: PROD_PORT,
  54. path: '/wxmanage/media'
  55. },
  56. /** 微信运营-管家 */
  57. steward: {
  58. addr: PROD_HOST,
  59. port: PROD_PORT,
  60. path: '/wxmanage/steward'
  61. },
  62. /** 微信运营-问卷调查 */
  63. question: {
  64. addr: PROD_HOST,
  65. port: PROD_PORT,
  66. path: '/wxmanage/question'
  67. },
  68. /** 收费 */
  69. charge: {
  70. addr: PROD_HOST,
  71. port: PROD_PORT,
  72. path: '/voucher/gzb'
  73. },
  74. /** 用餐预定、会议室预定 */
  75. activiti: {
  76. addr: PROD_HOST,
  77. port: PROD_PORT,
  78. path: '/activiti'
  79. },
  80. /** 装修申请 */
  81. decorationManage: {
  82. addr: PROD_HOST,
  83. port: PROD_PORT,
  84. path: '/decorationManage'
  85. },
  86. /** 物品放行 */
  87. itemPassport: {
  88. addr: PROD_HOST,
  89. port: PROD_PORT,
  90. path: '/decpassManagement'
  91. },
  92. /** 物品放行 */
  93. itemHouse: {
  94. addr: PROD_HOST,
  95. port: PROD_PORT,
  96. path: '/wf'
  97. },
  98. /** qpi */
  99. qpi: {
  100. addr: 'http://101.37.179.25',
  101. port: 5802,
  102. path: '/'
  103. },
  104. /** 尾房 */
  105. gf: {
  106. addr: PROD_HOST,
  107. port: PROD_PORT,
  108. path: '/gf'
  109. },
  110. leasing: {
  111. addr: PROD_HOST,
  112. port: PROD_PORT,
  113. path: '/leasing'
  114. },
  115. neikong:{
  116. addr: PROD_HOST,
  117. port: PROD_PORT,
  118. path: '/neikong'
  119. }
  120. }
  121. module.exports = {
  122. NODE_ENV: '"production"',
  123. domain: JSON.stringify(PROD_HOST),
  124. wxRootUrl: JSON.stringify(wechatRootUrl),
  125. currProjectName: '"ebeicloud"',
  126. hostConfig: JSON.stringify(serverConfig),
  127. findAddr: findServer,
  128. Url:JSON.stringify(PROD_HOST)
  129. // Url:'"http://www.jmpms.cn"'
  130. }