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

211 lines
4.5 KiB

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