dev.env.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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://hui.ndzwy.com'
  7. /** 测试服务器端口号 */
  8. const DEV_PORT = 0
  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. module.exports = merge(prodEnv, {
  94. NODE_ENV: '"development"',
  95. domain: JSON.stringify(DEV_HOST),
  96. wxRootUrl: JSON.stringify(wechatRootUrl),
  97. currProjectName: '"xindazheng"',
  98. hostConfig: JSON.stringify(serverConfig),
  99. findAddr: findServer,
  100. })