商城类、订单类uniapp模板,多角色
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.

214 lines
4.5 KiB

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