dev.env.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. 'use strict'
  2. const merge = require('webpack-merge')
  3. const prodEnv = require('./prod.env')
  4. const findServer = require('../findAddr')
  5. // /** 测试服务器地址 */
  6. // const DEV_HOST = 'wyappcs.gzbfdc.com'
  7. // /** 测试服务器端口号 */
  8. /** 测试服务器地址 */
  9. // const DEV_HOST = 'wyappcs.gzbfdc.com'
  10. const DEV_HOST = 'http://sys.chjpm.com:6902'
  11. const DEV_PORT = 0
  12. /** 微信首页地址 */
  13. const wechatRootUrl = "wechat/#/index"
  14. const currFile = __filename.split("/").pop()
  15. var serverConfig = {
  16. /** 报事报修地址 */
  17. crm400: {
  18. /** addr填写服务器地址,不用写http://前缀 */
  19. addr: DEV_HOST,
  20. /** port填写服务器端口号,如果不指定端口号则填写0 */
  21. port: DEV_PORT,
  22. /** path填写接口路径 */
  23. path: '/landcrm'
  24. },
  25. /** 商城地址 */
  26. walter: {
  27. addr: DEV_HOST,
  28. port: DEV_PORT,
  29. path: '/community'
  30. },
  31. /** 会所接口地址 */
  32. club: {
  33. addr: DEV_HOST,
  34. port: DEV_PORT,
  35. path: '/community'
  36. },
  37. /** 微信运营-管家地址 */
  38. houserkeep: {
  39. addr: DEV_HOST,
  40. port: DEV_PORT,
  41. path: '/wxmanage/steward'
  42. },
  43. /** 微信运营-活动 */
  44. activity: {
  45. addr: DEV_HOST,
  46. port: DEV_PORT,
  47. path: '/wxmanage/activity'
  48. },
  49. /** 微信运营-文章 */
  50. article: {
  51. addr: DEV_HOST,
  52. port: DEV_PORT,
  53. path: '/wxmanage/media'
  54. },
  55. /** 微信运营-管家 */
  56. steward: {
  57. addr: DEV_HOST,
  58. port: DEV_PORT,
  59. path: '/wxmanage/steward'
  60. },
  61. /** 微信运营-问卷调查 */
  62. question: {
  63. addr: DEV_HOST,
  64. port: DEV_PORT,
  65. path: '/wxmanage/question'
  66. },
  67. /** 收费 */
  68. charge: {
  69. addr: DEV_HOST,
  70. port: DEV_PORT,
  71. path: '/voucher/gzb'
  72. },
  73. /** 用餐预定、会议室预定 */
  74. activiti: {
  75. addr: DEV_HOST,
  76. port: DEV_PORT,
  77. path: '/activiti'
  78. },
  79. /** 装修申请 */
  80. decorationManage: {
  81. addr: DEV_HOST,
  82. port: DEV_PORT,
  83. path: '/decorationManage'
  84. },
  85. /** 物品放行 */
  86. itemPassport: {
  87. addr: DEV_HOST,
  88. port: DEV_PORT,
  89. path: '/decpassManagement'
  90. },
  91. qpi: {
  92. addr: DEV_HOST,
  93. port: DEV_PORT,
  94. path: '/'
  95. },
  96. /** 尾房 */
  97. itemHouse: {
  98. addr: DEV_HOST,
  99. port: DEV_PORT,
  100. path: '/wf'
  101. },
  102. /** 尾房 */
  103. gf: {
  104. addr: DEV_HOST,
  105. port: DEV_PORT,
  106. path: '/gf'
  107. },
  108. /** 尾房 */
  109. filemanager: {
  110. addr: DEV_HOST,
  111. port: DEV_PORT,
  112. path: '/filemanager'
  113. },
  114. leasing: {
  115. addr: DEV_HOST,
  116. port: DEV_PORT,
  117. path: '/leasing'
  118. },
  119. neikong:{
  120. addr: DEV_HOST,
  121. port: DEV_PORT,
  122. path: '/neikong'
  123. },
  124. /** 设备预警 */
  125. device: {
  126. addr: DEV_HOST,
  127. port: DEV_PORT,
  128. path: '/device'
  129. },
  130. }
  131. module.exports = merge(prodEnv, {
  132. NODE_ENV: '"development"',
  133. domain: JSON.stringify(DEV_HOST),
  134. wxRootUrl: JSON.stringify(wechatRootUrl),
  135. currProjectName: '"ebeicloud"',
  136. hostConfig: JSON.stringify(serverConfig),
  137. findAddr: findServer,
  138. })