project.js 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. // 项目详情
  3. export function getproject(data, id) {
  4. return request({
  5. url: '/api/index/project/id/' + id,
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 项目任务详情
  11. export function misssion(data, id, uid, pid) {
  12. return request({
  13. url: '/api/index/misssion/id/' + id + '/group_id/' + uid + '/product_id/' + pid,
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 待评分用户列表
  19. export function user_list(data) {
  20. return request({
  21. url: '/api/index/user_list',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 评分
  27. export function score(data, id, uid, pid) {
  28. return request({
  29. url: '/api/index/score/id/' + id + '/group_id/' + uid + '/product_id/' + pid,
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 我的得分
  35. export function my_point(data, id) {
  36. return request({
  37. url: '/api/index/my_point/id/' + id,
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 最近一场
  43. export function new_project(data) {
  44. return request({
  45. url: '/api/index/new_project',
  46. method: 'get',
  47. data
  48. });
  49. }