dev.env.js 2.3 KB

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