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

213 lines
4.5 KiB

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