activity.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. import { getHttp, postHttp } from "../request.js";
  2. /* 活动 */
  3. export const activity = {
  4. /* 获取活动列表接口*/
  5. getActivityList: (params) => {
  6. return getHttp("/activity/list", params);
  7. },
  8. /* 获取活动列表接口*/
  9. getActivityDetail: (params) => {
  10. return getHttp("/activity/detail", params);
  11. },
  12. /* 获取活动详情接口*/
  13. getUserSearchContent: (params) => {
  14. return getHttp("/activity/getUserSearchContent", params);
  15. },
  16. /* 活动报名接口*/
  17. signupAdd: (params) => {
  18. return postHttp("/activity/signup/add", params);
  19. },
  20. /* 活动取消报名接口*/
  21. signupCancel: (params) => {
  22. return postHttp("/activity/signup/cancel", params);
  23. },
  24. /* 获取活动列表接口*/
  25. getScheduleList: (params) => {
  26. return getHttp("/activity/scheduleList", params);
  27. },
  28. /* 活动取消报名接口*/
  29. meetingReminderAdd: (params) => {
  30. return postHttp("/activity/meetingReminder/add", params);
  31. },
  32. /* 取消消息提醒接口*/
  33. meetingReminderCancel: (params) => {
  34. return postHttp("/activity/meetingReminder/cancel", params);
  35. },
  36. /* 获取敏捷搜索关键词的列表接口*/
  37. fastSearchKeWord: (params) => {
  38. return getHttp("/activity/labelMoreList", params);
  39. },
  40. /*用户修改外呼手机号以及区号接口*/
  41. addOutboundMobile: (params) => {
  42. return postHttp("/user/countryCcode/addOutboundMobile", params);
  43. },
  44. /*新增活动带问接口*/
  45. activityAskAdd: (params) => {
  46. return postHttp("/activity/askAdd", params);
  47. },
  48. /*获取研选说明接口*/
  49. descriptionOfResearch: (params) => {
  50. return getHttp("/config/descriptionOfResearch", params);
  51. },
  52. /*获取主题活动接口*/
  53. getActivityListNew: (params) => {
  54. return getHttp("/activity/listNew", params);
  55. },
  56. /*获取主题活动接口*/
  57. getActivityListSearch: (params) => {
  58. return getHttp("/activity/listSearch", params);
  59. },
  60. /*获取活动类型下的主题列表接口(4.3版本)*/
  61. getActivityLabelTypeList: (params) => {
  62. return getHttp("/activity/labelTypeListV5", params);
  63. },
  64. /* 校验活动带问是否有权限接口 */
  65. checkAskActivity: (params) => {
  66. return postHttp("/activity/checkAsk", params, 0);
  67. },
  68. /*获取专项产业调研列表接口*/
  69. getSpecialList: (params) => {
  70. return getHttp("/activity_special/list", params);
  71. },
  72. /*获取专项产业调研列表接口*/
  73. getSpecialDetailList: (params) => {
  74. return getHttp("/activity_special/detail", params);
  75. },
  76. /*感兴趣、不感兴趣接口*/
  77. postSpecialSignupAdd: (params) => {
  78. return postHttp("/activity/special/signup/add", params);
  79. },
  80. /*获取专项产业调研列表接口*/
  81. postSpecialFollow: (params) => {
  82. return postHttp("/activity/special/follow", params);
  83. },
  84. /*预约纪要接口*/
  85. postAppointmentAdd: (params) => {
  86. return postHttp("/activity/appointment/add", params);
  87. },
  88. /*取消预约纪要接口*/
  89. postAppointmentCancel: (params) => {
  90. return postHttp("/activity/appointment/cancel", params);
  91. },
  92. //背景音频开始播放
  93. backAudioPlay: (params) => {
  94. return postHttp("/micro_roadshow/videoHistory/add", params, 0);
  95. },
  96. //专项产业报名取消报名接口
  97. activityApecialAdd: (params) => {
  98. return postHttp("/activity_special/add", params, 0);
  99. },
  100. //专项产业取消报名接口
  101. activityApecialCancel: (params) => {
  102. return postHttp("/activity_special/trip/cancel", params, 0);
  103. },
  104. // 已结束活动列表
  105. activityOverActivityList: (params) => {
  106. return getHttp("/activity/overActivityList", params, 0);
  107. },
  108. // 活动报名之前的校验(权限、时间、点数、邮箱)
  109. activityCheck: (params) => {
  110. return postHttp("/activity/check", params, 0);
  111. },
  112. // 更改绑定邮箱
  113. activityEmailBinding: (params) => {
  114. return postHttp("/user/email/binding", params, 0);
  115. },
  116. };