青蛙卖大米小程序2024-11-24
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.

69 lines
1.4 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. // 首页相关接口
  2. const api = {
  3. // 获取首页轮播图
  4. getRiceBanner: {
  5. url: '/rice_index/getRiceBanner',
  6. method: 'GET',
  7. },
  8. // 获取首页常规产品
  9. getRiceCommonProductList: {
  10. url: '/rice_index/getRiceCommonProductList',
  11. method: 'GET',
  12. },
  13. // 获取首页跳转图标
  14. getRiceIconList: {
  15. url: '/rice_index/getRiceIconList',
  16. method: 'GET',
  17. },
  18. // 获取首页新闻详情
  19. getRiceNewsDetail: {
  20. url: '/rice_index/getCommonNewsDetail',
  21. method: 'GET',
  22. },
  23. // 获取首页新闻列表
  24. getRiceNewsList: {
  25. url: '/rice_index/getRiceNewsList',
  26. method: 'GET',
  27. },
  28. // 获取首页公告列表
  29. getRiceNoticeList: {
  30. url: '/rice_index/getRiceNoticeList',
  31. method: 'GET',
  32. },
  33. // 获取首页商品详情
  34. getRiceProductDetail: {
  35. url: '/rice_index/getRiceProductDetail',
  36. method: 'GET',
  37. },
  38. // 获取首页体验产品
  39. getRiceProductList: {
  40. url: '/rice_index/getRiceProductList',
  41. method: 'GET',
  42. },
  43. // 查询分类接口
  44. getCategoryList: {
  45. url: '/rice_index/getCategoryList',
  46. method: 'GET',
  47. },
  48. // 获取分类分页商品列表接口
  49. getClassShopPageList: {
  50. url: '/rice_index/getClassShopPageList',
  51. method: 'GET',
  52. },
  53. // 加入购物车
  54. addCart: {
  55. url: '/rice_index/addCart',
  56. method: 'GET',
  57. auth : true,
  58. },
  59. // 创建订单
  60. createOrder: {
  61. url: '/rice_index/createOrder',
  62. method: 'GET',
  63. auth : true,
  64. },
  65. }
  66. export default api