木邻有你前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
804 B

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. // import request from "@/api/request";
  2. import http from "@/api/http";
  3. export default {
  4. // 首页- 申请成为志愿者
  5. async applyVolunteer(data) {
  6. return http({
  7. url: '/index/applyVolunteer',
  8. method: 'POST',
  9. data
  10. })
  11. },
  12. // 首页- 获取banner图列表
  13. async queryBannerList() {
  14. return http({
  15. url: '/index/queryBannerList',
  16. method: 'GET',
  17. noToken: true
  18. })
  19. },
  20. // 首页- 获取公告详情
  21. async queryNoticeById(data) {
  22. return http({
  23. url: '/index/queryNoticeById',
  24. method: 'GET',
  25. data,
  26. noToken: true
  27. })
  28. },
  29. // 首页- 获取公告列表
  30. async queryNoticeList(data) {
  31. return http({
  32. url: '/index/queryNoticeList',
  33. method: 'GET',
  34. data,
  35. noToken: true
  36. })
  37. },
  38. }