dev.env.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 = 'http://118.178.134.38'
  7. /** 测试服务器端口号 */
  8. const DEV_PORT = 7903
  9. /** 微信首页地址 */
  10. const wechatRootUrl = "wechat/#/index"
  11. const currFile = __filename.split("/").pop()
  12. /**
  13. * 开发环境
  14. * 【注】如果没有端口号,port填null
  15. */
  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'
  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. /** 尾房 */
  93. itemHouse: {
  94. addr: DEV_HOST,
  95. port: DEV_PORT,
  96. path: '/wf'
  97. },
  98. /** 管理视图 */
  99. datashow: {
  100. addr: DEV_HOST,
  101. port: DEV_PORT,
  102. path: '/datashow'
  103. },
  104. /** 预警 */
  105. warning: {
  106. addr: DEV_HOST,
  107. port: DEV_PORT,
  108. path: '/warning'
  109. },
  110. /** 会议管理 */
  111. groupcontrol: {
  112. addr: DEV_HOST,
  113. port: DEV_PORT,
  114. path: '/groupcontroltest'
  115. },
  116. /** 水电气表查询 */
  117. energyCharging: {
  118. addr: DEV_HOST,
  119. port: DEV_PORT,
  120. path: '/energy-charging'
  121. },
  122. /** 基础服务 */
  123. wuyecrm: {
  124. /** addr填写服务器地址,不用写http://前缀 */
  125. addr: DEV_HOST,
  126. /** port填写服务器端口号,如果不指定端口号则填写0 */
  127. port: DEV_PORT,
  128. /** path填写接口路径 */
  129. path: '/wuyecrm'
  130. },
  131. }
  132. module.exports = merge(prodEnv, {
  133. NODE_ENV: '"development"',
  134. domain: JSON.stringify(DEV_HOST),
  135. wxRootUrl: JSON.stringify(wechatRootUrl),
  136. currProjectName: '"shenjiaosuo"',
  137. hostConfig: JSON.stringify(serverConfig),
  138. findAddr: findServer,
  139. })