dev.env.js 2.8 KB

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