敢为人鲜小程序前端代码仓库
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.

121 lines
2.5 KiB

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