青蛙卖大米小程序2024-11-24
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.

100 lines
2.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. // 首页相关接口
  2. const api = {
  3. // 获取首页轮播图
  4. getRiceBanner: {
  5. url: '/rice_index/getRiceBanner',
  6. method: 'GET',
  7. },
  8. // 获取首页常规产品
  9. getRiceCommonProductList: {
  10. url: '/rice_index/getRiceCommonProductList',
  11. method: 'GET',
  12. },
  13. // 获取首页跳转图标
  14. getRiceIconList: {
  15. url: '/rice_index/getRiceIconList',
  16. method: 'GET',
  17. },
  18. // 获取首页新闻详情
  19. getRiceNewsDetail: {
  20. url: '/rice_index/getCommonNewsDetail',
  21. method: 'GET',
  22. },
  23. // 获取首页新闻列表
  24. getRiceNewsList: {
  25. url: '/rice_index/getRiceNewsList',
  26. method: 'GET',
  27. },
  28. // 获取首页公告列表
  29. getRiceNoticeList: {
  30. url: '/rice_index/getRiceNoticeList',
  31. method: 'GET',
  32. },
  33. // 获取首页商品详情
  34. getRiceProductDetail: {
  35. url: '/rice_index/getRiceProductDetail',
  36. method: 'GET',
  37. },
  38. // 获取首页体验产品
  39. getRiceProductList: {
  40. url: '/rice_index/getRiceProductList',
  41. method: 'GET',
  42. },
  43. // 查询分类接口
  44. getCategoryList: {
  45. url: '/rice_index/getCategoryList',
  46. method: 'GET',
  47. },
  48. // 获取分类分页商品列表接口
  49. getClassShopPageList: {
  50. url: '/rice_index/getClassShopPageList',
  51. method: 'GET',
  52. },
  53. // 加入购物车
  54. addCart: {
  55. url: '/rice_index/addCart',
  56. method: 'GET',
  57. auth : true,
  58. },
  59. // 删除购物车信息
  60. deleteCart: {
  61. url: '/rice_index/deleteCart',
  62. method: 'DELETE',
  63. auth : true,
  64. },
  65. // 修改购物车信息数量
  66. updateCartNum: {
  67. url: '/rice_index/updateCartNum',
  68. method: 'POST',
  69. auth : true,
  70. debounce : 300,
  71. },
  72. // 创建订单
  73. createOrder: {
  74. url: '/rice_index/createOrder',
  75. method: 'GET',
  76. auth : true,
  77. },
  78. // 创建订单-再次支付
  79. createOrderTwo: {
  80. url: '/rice_index/createOrderTwo',
  81. method: 'GET',
  82. auth : true,
  83. },
  84. // 多商品创建订单
  85. createSumOrder: {
  86. url: '/rice_index/createSumOrder',
  87. method: 'POST',
  88. auth : true,
  89. },
  90. // 多商品订单再次支付
  91. createSumOrderAgain: {
  92. url: '/rice_index/createSumOrderAgain',
  93. method: 'POST',
  94. auth : true,
  95. },
  96. }
  97. export default api