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

186 lines
3.8 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. getRiceProductList: {
  110. url: '/index_common/getRiceAdList',
  111. method: 'GET',
  112. },
  113. // 获取首页广告列表
  114. getRiceAdDetail: {
  115. url: '/index_common/getRiceAdDetail',
  116. method: 'GET',
  117. },
  118. //增加或者修改合伙人申请信息
  119. addOrUpdateCommonUser: {
  120. url: '/index_common/addOrUpdateCommonUser',
  121. method: 'POST',
  122. },
  123. //根据用户查询渠合伙人申请信息表单
  124. getCommonUser: {
  125. url: '/index_common/getCommonUser',
  126. method: 'GET'
  127. },
  128. //提交反馈信息
  129. addFeedback: {
  130. url: '/info_common/addFeedback',
  131. method: 'POST'
  132. },
  133. // 获取我的直接推荐间接推荐用户列表带分页
  134. getHanHaiMemberUser: {
  135. url: '/info_common/getHanHaiMemberUser',
  136. method: 'GET'
  137. },
  138. // 获取祝福背景图
  139. getRiceBlessing: {
  140. url: '/index_common/getRiceBlessing',
  141. method: 'GET'
  142. },
  143. // 随机获取祝福语
  144. getRiceBlessingWords: {
  145. url: '/index_common/getRiceBlessingWords',
  146. method: 'GET'
  147. },
  148. // 根据订单标识修改订单祝福语背景
  149. updateOrderBlessing: {
  150. url: '/index_common/updateOrderBlessing',
  151. method: 'POST',
  152. auth : true,
  153. limit : 1000,
  154. },
  155. // 1.收礼流程 =》点击收礼
  156. getGiveShop: {
  157. url: '/index_common/getGiveShop',
  158. method: 'GET',
  159. auth : true,
  160. limit : 1000,
  161. },
  162. // 2.点击抽奖 =》抽奖
  163. getGiveShopLottery: {
  164. url: '/index_common/getGiveShopLottery',
  165. method: 'GET',
  166. auth : true,
  167. limit : 1000,
  168. },
  169. // 获取我的礼品订单
  170. getMyGiftOrder: {
  171. url: '/index_common/getMyGiftOrder',
  172. method: 'GET',
  173. auth : true,
  174. },
  175. // 获取我的礼品订单详情
  176. getMyGiftOrderDetail: {
  177. url: '/index_common/getMyGiftOrderDetail',
  178. method: 'GET',
  179. auth : true,
  180. },
  181. }
  182. export default api