groupon.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import request from "@/utils/request.js";
  2. commitAppoint
  3. // 团长相关履约单列表
  4. export function commitAppoint(id) {
  5. return request.post("/v1/commitAppoint?appointId="+id);
  6. }
  7. // 团长相关履约单列表
  8. export function appointList(data) {
  9. return request.post("/v1/appointList?type="+data.type,data);
  10. }
  11. // 查询系统消息
  12. export function getNotice(data) {
  13. return request.post("/v1/getNotice",data);
  14. }
  15. // 查询个人消息
  16. export function getMyMessage(data) {
  17. return request.post("/v1/getMyMessage",data);
  18. }
  19. // 查询团购统计数据
  20. export function grouponMngStatis() {
  21. return request.get("/v1/groupon/statis");
  22. }
  23. // 查询团购详情
  24. export function grouponMngDetail(id) {
  25. return request.get("/v1/groupon-mng/detail?groupId="+id);
  26. }
  27. // 查询团购列表
  28. export function grouponMngList(index,data) {
  29. return request.get("/v1/groupon-mng/list?state="+index,data);
  30. }
  31. // 查询最新团购列表
  32. export function latestGroupon(data) {
  33. return request.get("/v1/groupon/latest",data);
  34. }
  35. // 查询历史团购数据
  36. export function historyGroupon(data) {
  37. return request.get("/v1/groupon/history",data);
  38. }
  39. // 团购详情
  40. export function detailGroupon(data) {
  41. return request.get("/v1/groupon/detail",data);
  42. }
  43. // 商品详情接口
  44. export function goodsDetail(data) {
  45. return request.get("/v1/goods/detail",data);
  46. }
  47. // 发布团购
  48. export function publishGroupon(data) {
  49. return request.post("/v1/groupon/publish",data);
  50. }
  51. // 查询团购自提点
  52. export function getGrouponSelfTakeList(data) {
  53. return request.get("/v1/self-take/list",data);
  54. }
  55. // 分页查询所有自提点
  56. export function getAllSelfTake(data) {
  57. return request.get("/v1/selfTake/all", data);
  58. }