groupon.js 862 B

123456789101112131415161718192021222324252627282930313233343536
  1. import request from "@/utils/request.js";
  2. // 查询最新团购列表
  3. export function latestGroupon(data) {
  4. return request.get("/v1/groupon/latest",data);
  5. }
  6. // 查询历史团购数据
  7. export function historyGroupon(data) {
  8. return request.get("/v1/groupon/history",data);
  9. }
  10. // 团购详情
  11. export function detailGroupon(data) {
  12. return request.get("/v1/groupon/detail",data);
  13. }
  14. // 商品详情接口
  15. export function goodsDetail(data) {
  16. return request.get("/v1/goods/detail",data);
  17. }
  18. // 发布团购
  19. export function publishGroupon(data) {
  20. return request.post("/v1/groupon/publish",data);
  21. }
  22. // 查询团购自提点
  23. export function getGrouponSelfTakeList(data) {
  24. return request.get("/v1/self-take/list",data);
  25. }
  26. // 分页查询所有自提点
  27. export function getAllSelfTake(data) {
  28. return request.get("/v1/selfTake/all", data);
  29. }