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 = 'http://qiaoxintest.wuyeface.com'
  7. /** 测试服务器端口号 */
  8. const DEV_PORT = 5803
  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: 0,
  23. /** path填写接口路径 */
  24. path: '/landcrm'
  25. },
  26. /** 商城地址 */
  27. walter: {
  28. addr: DEV_HOST,
  29. port: 0,
  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. /** qpi */
  93. qpi: {
  94. addr: DEV_HOST,
  95. port: 5803,
  96. path: '/qpi'
  97. },
  98. /** 尾房 */
  99. itemHouse: {
  100. addr: DEV_HOST,
  101. port: DEV_PORT,
  102. path: '/wf'
  103. },
  104. /** 尾房 */
  105. datashow: {
  106. addr: DEV_HOST,
  107. port: DEV_PORT,
  108. path: '/datashow'
  109. },
  110. /** 尾房 */
  111. warning: {
  112. addr: DEV_HOST,
  113. port: DEV_PORT,
  114. path: '/warning'
  115. },
  116. /** 尾房 */
  117. groupcontrol: {
  118. addr: DEV_HOST,
  119. port: DEV_PORT,
  120. path: '/groupcontrol'
  121. },
  122. /** 尾房 */
  123. energyCharging: {
  124. addr: DEV_HOST,
  125. port: DEV_PORT,
  126. path: '/energyCharging'
  127. },
  128. /** 尾房 */
  129. wuyecrm: {
  130. addr: DEV_HOST,
  131. port: DEV_PORT,
  132. path: '/wuyecrm'
  133. }
  134. }
  135. module.exports = merge(prodEnv, {
  136. NODE_ENV: '"development"',
  137. domain: JSON.stringify(DEV_HOST),
  138. wxRootUrl: JSON.stringify(wechatRootUrl),
  139. currProjectName: '"qiaoxin"',
  140. hostConfig: JSON.stringify(serverConfig),
  141. findAddr: findServer,
  142. })