爱简收旧衣按件回收前端代码仓库
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.

210 lines
4.4 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. // 首页相关接口
  2. const api = {
  3. // 获取首页轮播图
  4. getRiceBanner: {
  5. url: '/recycle-admin/applet/index/getBanner',
  6. method: 'GET',
  7. },
  8. getRiceIconList: {
  9. url: '/index_common/getRiceIconList',
  10. method: 'GET',
  11. },
  12. // 获取首页新闻详情
  13. getRiceNewsDetail: {
  14. url: '/index_common/getCommonNewsDetail',
  15. method: 'GET',
  16. },
  17. // 获取首页新闻列表
  18. getRiceNewsList: {
  19. url: '/index_common/getRiceNewsList',
  20. method: 'GET',
  21. },
  22. // 获取首页公告列表
  23. getRiceNoticeList: {
  24. url: '/index_common/getRiceNoticeList',
  25. method: 'GET',
  26. },
  27. // 获取首页商品详情
  28. getRiceProductDetail: {
  29. url: '/index_common/getRiceProductDetail',
  30. method: 'GET',
  31. },
  32. // 获取首页体验产品
  33. getRiceProductList: {
  34. url: '/index_common/getRiceProductList',
  35. method: 'GET',
  36. },
  37. // 查询分类接口
  38. getCategoryList: {
  39. url: '/index_common/getCategoryList',
  40. method: 'GET',
  41. },
  42. // 新查询分类以及商品数据接口
  43. getCategoryPidList: {
  44. url: '/index_common/getCategoryPidList',
  45. method: 'GET',
  46. debounce : 250,
  47. },
  48. // 查询一级分类接口
  49. getPidList: {
  50. url: '/index_common/getCategoryPidList',
  51. method: 'GET',
  52. },
  53. // 获取分类分页商品列表接口
  54. getClassShopPageList: {
  55. url: '/index_common/getClassShopPageList',
  56. method: 'GET',
  57. },
  58. // 加入购物车
  59. addCart: {
  60. url: '/index_common/addCart',
  61. method: 'GET',
  62. auth: true,
  63. showLoading: true,
  64. limit : 500,
  65. },
  66. // 删除购物车信息
  67. deleteCart: {
  68. url: '/index_common/deleteCart',
  69. method: 'DELETE',
  70. auth: true,
  71. showLoading: true,
  72. },
  73. // 修改购物车信息数量
  74. updateCartNum: {
  75. url: '/index_common/updateCartNum',
  76. method: 'POST',
  77. auth: true,
  78. debounce: 300,
  79. },
  80. // 创建订单
  81. createOrder: {
  82. url: '/index_common/createOrder',
  83. method: 'GET',
  84. auth: true,
  85. limit: 1000,
  86. showLoading: true,
  87. },
  88. // 创建订单-再次支付
  89. createOrderTwo: {
  90. url: '/index_common/createOrderTwo',
  91. method: 'GET',
  92. auth: true,
  93. limit: 1000,
  94. showLoading: true,
  95. },
  96. // 多商品创建订单
  97. createSumOrder: {
  98. url: '/index_common/createSumOrder',
  99. method: 'POST',
  100. auth: true,
  101. limit: 1000,
  102. showLoading: true,
  103. },
  104. // 多商品订单再次支付
  105. createSumOrderAgain: {
  106. url: '/index_common/createSumOrderAgain',
  107. method: 'POST',
  108. auth: true,
  109. limit: 1000,
  110. showLoading: true,
  111. },
  112. // 确认收货
  113. confirmOrder: {
  114. url: '/index_common/confirmOrder',
  115. method: 'GET',
  116. auth: true,
  117. limit: 1000,
  118. showLoading: true,
  119. },
  120. // 取消订单
  121. cancelOrder: {
  122. url: '/index_common/cancelOrder',
  123. method: 'GET',
  124. auth: true,
  125. limit: 1000,
  126. showLoading: true,
  127. },
  128. // 获取首页广告列表
  129. getRiceProductList: {
  130. url: '/index_common/getRiceAdList',
  131. method: 'GET',
  132. },
  133. // 获取首页广告列表
  134. getRiceAdDetail: {
  135. url: '/index_common/getRiceAdDetail',
  136. method: 'GET',
  137. },
  138. //获取优惠券信息
  139. getRiceCouponList: {
  140. url: '/info_common/getRiceCouponList',
  141. method: 'GET',
  142. },
  143. //增加或者修改合伙人申请信息
  144. addOrUpdateCommonUser: {
  145. url: '/index_common/addOrUpdateCommonUser',
  146. method: 'POST',
  147. },
  148. //根据用户查询渠合伙人申请信息表单
  149. getCommonUser: {
  150. url: '/index_common/getCommonUser',
  151. method: 'GET'
  152. },
  153. //提交反馈信息
  154. addFeedback: {
  155. url: '/info_common/addFeedback',
  156. method: 'POST'
  157. },
  158. // 获取我的直接推荐间接推荐用户列表带分页
  159. getHanHaiMemberUser: {
  160. url: '/info_common/getHanHaiMemberUser',
  161. method: 'GET'
  162. },
  163. // 获取祝福背景图
  164. getRiceBlessing: {
  165. url: '/index_common/getRiceBlessing',
  166. method: 'GET'
  167. },
  168. // 查询最近回收商品
  169. getRecentGoodsList: {
  170. url: '/recycle-admin/applet/index/getRecentGoodsList',
  171. method: 'GET',
  172. auth : false
  173. },
  174. // 最近回收
  175. getQualityReport: {
  176. url: '/recycle-admin/applet/index/getQualityReport',
  177. method: 'GET',
  178. auth : false,
  179. limit : 1000,
  180. },
  181. // 1.根据id获取对应商品列表
  182. getGoodsBrandList: {
  183. url: '/recycle-admin/applet/class/getGoodsBrandList',
  184. method: 'GET',
  185. auth : false,
  186. limit : 1000,
  187. },
  188. // 2.根据分类标识获取分类商品列表带分页
  189. getClassGoodsList: {
  190. url: '/recycle-admin/applet/class/getClassGoodsList',
  191. method: 'GET',
  192. auth : false,
  193. limit : 1000,
  194. },
  195. // 获取我的礼品订单
  196. getPricePreviewClassList: {
  197. url: '/recycle-admin/applet/class/getPricePreviewClassList',
  198. method: 'GET',
  199. auth : false,
  200. },
  201. // 获取我的礼品订单详情
  202. getAreaList: {
  203. url: '/recycle-admin/applet/index/getAreaList',
  204. method: 'GET',
  205. auth : true,
  206. },
  207. }
  208. export default api