推拿小程序前端代码仓库
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.

194 lines
4.0 KiB

3 months ago
3 months ago
3 months ago
  1. // 首页相关接口
  2. const api = {
  3. // 获取首页轮播图
  4. queryBannerList: {
  5. url: '/banner/queryBannerList',
  6. method: 'GET',
  7. },
  8. // 获取首页公告列表
  9. queryNoticeList: {
  10. url: '/notice/queryNoticeList',
  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. getRiceProductDetail: {
  30. url: '/index_common/getRiceProductDetail',
  31. method: 'GET',
  32. },
  33. // 获取首页体验产品
  34. getRiceProductList: {
  35. url: '/index_common/getRiceProductList',
  36. method: 'GET',
  37. },
  38. // 新查询分类以及商品数据接口
  39. getCategoryPidList: {
  40. url: '/index_common/getCategoryPidList',
  41. method: 'GET',
  42. debounce : 250,
  43. },
  44. // 查询一级分类接口
  45. getPidList: {
  46. url: '/index_common/getCategoryPidList',
  47. method: 'GET',
  48. },
  49. // 获取分类分页商品列表接口
  50. getClassShopPageList: {
  51. url: '/index_common/getClassShopPageList',
  52. method: 'GET',
  53. },
  54. // 加入购物车
  55. addCart: {
  56. url: '/index_common/addCart',
  57. method: 'GET',
  58. auth: true,
  59. showLoading: true,
  60. limit : 500,
  61. },
  62. // 删除购物车信息
  63. deleteCart: {
  64. url: '/index_common/deleteCart',
  65. method: 'DELETE',
  66. auth: true,
  67. showLoading: true,
  68. },
  69. // 修改购物车信息数量
  70. updateCartNum: {
  71. url: '/index_common/updateCartNum',
  72. method: 'POST',
  73. auth: true,
  74. debounce: 300,
  75. },
  76. // 创建订单-再次支付
  77. createOrderTwo: {
  78. url: '/index_common/createOrderTwo',
  79. method: 'GET',
  80. auth: true,
  81. limit: 1000,
  82. showLoading: true,
  83. },
  84. // 多商品创建订单
  85. createSumOrder: {
  86. url: '/index_common/createSumOrder',
  87. method: 'POST',
  88. auth: true,
  89. limit: 1000,
  90. showLoading: true,
  91. },
  92. // 多商品订单再次支付
  93. createSumOrderAgain: {
  94. url: '/index_common/createSumOrderAgain',
  95. method: 'POST',
  96. auth: true,
  97. limit: 1000,
  98. showLoading: true,
  99. },
  100. // 确认收货
  101. confirmOrder: {
  102. url: '/index_common/confirmOrder',
  103. method: 'GET',
  104. auth: true,
  105. limit: 1000,
  106. showLoading: true,
  107. },
  108. // 取消订单
  109. cancelOrder: {
  110. url: '/index_common/cancelOrder',
  111. method: 'GET',
  112. auth: true,
  113. limit: 1000,
  114. showLoading: true,
  115. },
  116. // 获取首页广告列表
  117. getRiceProductList: {
  118. url: '/index_common/getRiceAdList',
  119. method: 'GET',
  120. },
  121. // 获取首页广告列表
  122. getRiceAdDetail: {
  123. url: '/index_common/getRiceAdDetail',
  124. method: 'GET',
  125. },
  126. //增加或者修改合伙人申请信息
  127. addOrUpdateCommonUser: {
  128. url: '/index_common/addOrUpdateCommonUser',
  129. method: 'POST',
  130. },
  131. //根据用户查询渠合伙人申请信息表单
  132. getCommonUser: {
  133. url: '/index_common/getCommonUser',
  134. method: 'GET'
  135. },
  136. //提交反馈信息
  137. addFeedback: {
  138. url: '/info_common/addFeedback',
  139. method: 'POST'
  140. },
  141. // 获取我的直接推荐间接推荐用户列表带分页
  142. getHanHaiMemberUser: {
  143. url: '/info_common/getHanHaiMemberUser',
  144. method: 'GET'
  145. },
  146. // 获取祝福背景图
  147. getRiceBlessing: {
  148. url: '/index_common/getRiceBlessing',
  149. method: 'GET'
  150. },
  151. // 随机获取祝福语
  152. getRiceBlessingWords: {
  153. url: '/index_common/getRiceBlessingWords',
  154. method: 'GET'
  155. },
  156. // 根据订单标识修改订单祝福语背景
  157. updateOrderBlessing: {
  158. url: '/index_common/updateOrderBlessing',
  159. method: 'POST',
  160. auth : true,
  161. limit : 1000,
  162. },
  163. // 1.收礼流程 =》点击收礼
  164. getGiveShop: {
  165. url: '/index_common/getGiveShop',
  166. method: 'GET',
  167. auth : true,
  168. limit : 1000,
  169. },
  170. // 2.点击抽奖 =》抽奖
  171. getGiveShopLottery: {
  172. url: '/index_common/getGiveShopLottery',
  173. method: 'GET',
  174. auth : true,
  175. limit : 1000,
  176. },
  177. // 获取我的礼品订单
  178. getMyGiftOrder: {
  179. url: '/index_common/getMyGiftOrder',
  180. method: 'GET',
  181. auth : true,
  182. },
  183. // 获取我的礼品订单详情
  184. getMyGiftOrderDetail: {
  185. url: '/index_common/getMyGiftOrderDetail',
  186. method: 'GET',
  187. auth : true,
  188. },
  189. }
  190. export default api