index.js 1.2 KB

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