prod.env.js 2.8 KB

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