index.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. export function enroll(data) {
  35. return request({
  36. url: '/api/enroll',
  37. method: 'post',
  38. data
  39. });
  40. }
  41. //普通商品核销
  42. export function orderVerific(data) {
  43. return request({
  44. url: '/api/order/order_verific',
  45. method: 'post',
  46. data
  47. });
  48. }
  49. export function getLevelList(data) {
  50. // user/level/grade
  51. return request({
  52. url: '/api/user/level/grade',
  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. }