国外MOSE官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
947 B

  1. import request from "@/api/request";
  2. export default {
  3. // 首页-兑换商品
  4. async buyGoods(data) {
  5. return request({
  6. url: '/goods/buyGoods',
  7. method: 'POST',
  8. data,
  9. showLoading: true
  10. })
  11. },
  12. // 首页- 收藏商品
  13. async collectionGoods(data) {
  14. return request({
  15. url: '/goods/collectionGoods',
  16. method: 'POST',
  17. data,
  18. showLoading: true
  19. })
  20. },
  21. // 首页- 获取商品详情
  22. async queryGoodsById(data) {
  23. return request({
  24. url: '/goods/queryGoodsById',
  25. method: 'GET',
  26. data
  27. })
  28. },
  29. // 商品收藏- 获取我收藏的商品列表
  30. async queryGoodsCollectionList(data) {
  31. return request({
  32. url: '/goods/queryGoodsCollectionList',
  33. method: 'POST',
  34. data
  35. })
  36. },
  37. // 首页- 获取商品列表
  38. async queryGoodsList(data) {
  39. return request({
  40. url: '/goods/queryGoodsList',
  41. method: 'GET',
  42. data
  43. })
  44. }
  45. }