index.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import request from '@/utils/request'
  2. // 促销商品
  3. export function groom4(data) {
  4. return request({
  5. url: '/api/groom/list/4',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 精品推荐
  11. export function groom1(data) {
  12. return request({
  13. url: '/api/groom/list/1',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 新品首发
  19. export function groom3(data) {
  20. return request({
  21. url: '/api/groom/list/3',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 获取首页信息
  27. export function loadIndexs(data) {
  28. return request({
  29. url: '/api/index',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. //获取活动列表
  35. export function getActionList(data) {
  36. return request({
  37. url: '/api/partake/out',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. //获取活动详情
  43. export function getActionDetail(data,id) {
  44. return request({
  45. url: '/api/partake/out/' + id,
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 参加活动
  51. export function addAction(data) {
  52. return request({
  53. url: '/api/partake/participate_in',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. export function getAddList(data) {
  59. return request({
  60. url: '/api/partake/partake',
  61. method: 'get',
  62. data
  63. });
  64. }
  65. //
  66. export function getStoreList(data) {
  67. return request({
  68. url: '/api/store_list',
  69. method: 'get',
  70. data
  71. })
  72. }
  73. //文章列表
  74. export function article(data, id) {
  75. return request({
  76. url: '/api/article/list/' + id,
  77. method: 'GET',
  78. data
  79. });
  80. }