prod.env.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. 'use strict'
  2. const findServer = require('../findAddr')
  3. /** 正式服务器地址 */
  4. const PROD_HOST = 'http://www.km-life.com'
  5. /** 正式服务器端口号 */
  6. const PROD_PORT = 0
  7. /** 微信首页地址 */
  8. const wechatRootUrl = "wechat/#/index"
  9. const currFile = __filename.split("/").pop()
  10. let serverConfig = {
  11. /**
  12. * 正式环境
  13. * 【注】如果没有端口号,port填null
  14. */
  15. /** 报事报修地址 */
  16. crm400: {
  17. addr: PROD_HOST,
  18. port: PROD_PORT,
  19. path: '/landcrm'
  20. },
  21. /** 商城地址 */
  22. walter: {
  23. addr: PROD_HOST,
  24. port: PROD_PORT,
  25. path: '/community'
  26. },
  27. /** 会所接口地址 */
  28. club: {
  29. addr: PROD_HOST,
  30. port: PROD_PORT,
  31. path: '/community'
  32. },
  33. /** 微信运营-管家地址 */
  34. houserkeep: {
  35. addr: PROD_HOST,
  36. port: PROD_PORT,
  37. path: '/wxmanage/steward'
  38. },
  39. /** 微信运营-活动地址 */
  40. activity: {
  41. addr: PROD_HOST,
  42. port: PROD_PORT,
  43. path: '/wxmanage/activity'
  44. },
  45. /** 微信运营-公告 */
  46. article: {
  47. addr: PROD_HOST,
  48. port: PROD_PORT,
  49. path: '/wxmanage/media'
  50. },
  51. /** 微信运营-管家 */
  52. steward: {
  53. addr: PROD_HOST,
  54. port: PROD_PORT,
  55. path: '/wxmanage/steward'
  56. },
  57. /** 微信运营-问卷调查 */
  58. question: {
  59. addr: PROD_HOST,
  60. port: PROD_PORT,
  61. path: '/wxmanage/question'
  62. },
  63. /** 收费 */
  64. charge: {
  65. addr: PROD_HOST,
  66. port: PROD_PORT,
  67. path: '/sf'
  68. },
  69. /** 用餐预定、会议室预定 */
  70. activiti: {
  71. addr: PROD_HOST,
  72. port: PROD_PORT,
  73. path: '/activiti'
  74. },
  75. /** 装修申请 */
  76. decorationManage: {
  77. addr: PROD_HOST,
  78. port: PROD_PORT,
  79. path: '/decorationManage'
  80. },
  81. /** 物品放行 */
  82. itemPassport: {
  83. addr: PROD_HOST,
  84. port: PROD_PORT,
  85. path: '/decpassManagement'
  86. }
  87. }
  88. module.exports = {
  89. NODE_ENV: '"production"',
  90. domain: JSON.stringify(PROD_HOST),
  91. wxRootUrl: JSON.stringify(wechatRootUrl),
  92. currProjectName: '"jingdi"',
  93. hostConfig: JSON.stringify(serverConfig),
  94. findAddr: findServer,
  95. }