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

151 lines
3.2 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 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. getRiceAdDetail: {
  121. url: '/index_common/getRiceAdDetail',
  122. method: 'GET',
  123. },
  124. //获取优惠券信息
  125. getRiceCouponList: {
  126. url: '/info_common/getRiceCouponList',
  127. method: 'GET',
  128. },
  129. //增加或者修改合伙人申请信息
  130. addOrUpdateCommonUser: {
  131. url: '/index_common/addOrUpdateCommonUser',
  132. method: 'POST',
  133. },
  134. //根据用户查询渠合伙人申请信息表单
  135. getCommonUser: {
  136. url: '/index_common/getCommonUser',
  137. method: 'GET'
  138. },
  139. //提交反馈信息
  140. addFeedback: {
  141. url: '/info_common/addFeedback',
  142. method: 'POST'
  143. },
  144. // 获取我的直接推荐间接推荐用户列表带分页
  145. getHanHaiMemberUser: {
  146. url: '/info_common/getHanHaiMemberUser',
  147. method: 'GET'
  148. },
  149. }
  150. export default api