index.js 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. const prefix = process.env.NODE_ENV === 'production' ? '' : ''
  2. const Api = {
  3. UpdateUserInfo: { // 更新用户信息
  4. method: 'post',
  5. url: `${prefix}/person/:id`
  6. },
  7. GetRecommedList: { // 获取推荐的客户列表
  8. method: 'get',
  9. url: `${prefix}/person/:personId/recommender`
  10. },
  11. PostRecommed: { // 推荐客户
  12. method: 'post',
  13. url: `${prefix}/recommender`
  14. },
  15. GetNewsDetail: { // 获取资讯详情
  16. method: 'get',
  17. url: `${prefix}/news/:id`
  18. },
  19. PostActivityJoin: { // 活动报名
  20. method: 'post',
  21. url: `${prefix}/activity/:id/enroll`
  22. },
  23. PostActivityVote: { // 活动投票
  24. method: 'post',
  25. url: `${prefix}/activity/:id/vote`
  26. },
  27. MainSignIn: { // 登录
  28. method: 'post',
  29. url: `${prefix}/login`
  30. },
  31. GetUserPhone: { // 获取用户手机号
  32. method: 'post',
  33. url: `${prefix}/person/:personId/phone`
  34. },
  35. GetIndexBanner: { // 获取首页banner
  36. method: 'get',
  37. url: `${prefix}/advert`
  38. },
  39. GetPhotoList: { // 获取照片墙列表
  40. method: 'get',
  41. url: `${prefix}/gallery`
  42. },
  43. GetGalleryType: { // 获取照片墙列表类型
  44. method: 'get',
  45. url: `${prefix}/galleryType`
  46. },
  47. GetActivityList: { // 获取活动列表
  48. method: 'get',
  49. url: `${prefix}/activity`
  50. },
  51. GetActivityDetail: { // 获取活动详情
  52. method: 'get',
  53. url: `${prefix}/activity/:id`
  54. },
  55. GetHuiQuanYiBanner: { // 获取荟权益banner
  56. method: 'get',
  57. url: `${prefix}/advert`
  58. },
  59. GetYeZhuZiXunList: { // 获取业主资讯列表
  60. method: 'get',
  61. url: `${prefix}/news`
  62. },
  63. GetHuiAiXinBanner: { // 获取荟爱心banner
  64. method: 'get',
  65. url: `${prefix}/advert`
  66. },
  67. GetMingXingYeZhuList: { // 获取明星业主列表
  68. method: 'get',
  69. url: `${prefix}/activity`
  70. },
  71. GetZhengNengLiangShiJiList: { // 获取正能量事迹列表
  72. method: 'get',
  73. url: `${prefix}/activity`
  74. },
  75. GetHuoDongNavList: { // 获取活动类型列表
  76. method: 'get',
  77. url: `${prefix}/activity`
  78. },
  79. GetUserActivityList: { // 获取我的活动列表
  80. method: 'get',
  81. url: `${prefix}/person/:personId/activity`
  82. }
  83. }
  84. export default Api