apply.js 923 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import {upFilse} from '@/utils/request'
  2. import request from '@/utils/request'
  3. export function upload(data){
  4. return upFilse({
  5. url:'/api/upload/image',
  6. method:'post',
  7. data
  8. })
  9. }
  10. //我的审核列表
  11. export function getApplyList(data) {
  12. return request({
  13. url: '/api/activity/my',
  14. method:'get',
  15. data
  16. })
  17. }
  18. //我的申请列表
  19. export function getMyList(data) {
  20. return request({
  21. url: '/api/activity/my_join',
  22. method:'get',
  23. data
  24. })
  25. }
  26. //通过审核
  27. export function passApply(data,id) {
  28. return request({
  29. url: '/api/activity/pass/' + id,
  30. method:'post',
  31. data
  32. })
  33. }
  34. //审核不通过
  35. export function cancelApply(data,id) {
  36. return request({
  37. url: '/api/activity/cancel/' + id,
  38. method:'post',
  39. data
  40. })
  41. }
  42. //上传凭证uploadApply
  43. export function uploadApply(data,id) {
  44. return request({
  45. url: '/api/activity/upload/' + id,
  46. method:'post',
  47. data
  48. })
  49. }