groupon.js 1.4 KB

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