index.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/utils/request'
  2. import exp from 'constants';
  3. // 促销商品
  4. export function groom4(data) {
  5. return request({
  6. url: '/api/groom/list/4',
  7. method: 'get',
  8. data
  9. });
  10. }
  11. // 精品推荐
  12. export function groom1(data) {
  13. return request({
  14. url: '/api/groom/list/1',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. // 新品首发
  20. export function groom3(data) {
  21. return request({
  22. url: '/api/groom/list/3',
  23. method: 'get',
  24. data
  25. });
  26. }
  27. // 获取首页信息
  28. export function loadIndexs(data) {
  29. return request({
  30. url: '/api/index',
  31. method: 'get',
  32. data
  33. });
  34. }
  35. export function enroll(data) {
  36. return request({
  37. url: '/api/enroll',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. //普通商品核销
  43. export function orderVerific(data) {
  44. return request({
  45. url: '/api/order/order_verific',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. export function getArtList(data,id) {
  51. return request({
  52. url: '/api/article/list/' + id,
  53. method: 'get',
  54. data
  55. });
  56. }
  57. export function getDetail(id) {
  58. return request({
  59. url: '/api/article/details/' + id,
  60. method: 'get'
  61. });
  62. }