groupon.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import request from "@/utils/request.js";
  2. // 查询团购统计数据
  3. export function grouponMngStatis() {
  4. return request.get("/v1/groupon/statis");
  5. }
  6. // 查询团购详情
  7. export function grouponMngDetail(id) {
  8. return request.get("/v1/groupon-mng/detail?groupId="+id);
  9. }
  10. // 查询团购列表
  11. export function grouponMngList(index,data) {
  12. return request.get("/v1/groupon-mng/list?state="+index,data);
  13. }
  14. // 查询最新团购列表
  15. export function latestGroupon(data) {
  16. return request.get("/v1/groupon/latest",data);
  17. }
  18. // 查询历史团购数据
  19. export function historyGroupon(data) {
  20. return request.get("/v1/groupon/history",data);
  21. }
  22. // 团购详情
  23. export function detailGroupon(data) {
  24. return request.get("/v1/groupon/detail",data);
  25. }
  26. // 商品详情接口
  27. export function goodsDetail(data) {
  28. return request.get("/v1/goods/detail",data);
  29. }
  30. // 发布团购
  31. export function publishGroupon(data) {
  32. return request.post("/v1/groupon/publish",data);
  33. }
  34. // 查询团购自提点
  35. export function getGrouponSelfTakeList(data) {
  36. return request.get("/v1/self-take/list",data);
  37. }
  38. // 分页查询所有自提点
  39. export function getAllSelfTake(data) {
  40. return request.get("/v1/selfTake/all", data);
  41. }