index.js 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 获取分类 m
  4. */
  5. export const getClass = data => {
  6. return https.get('/category/list', data)
  7. }
  8. /** *
  9. * 获取分类的商品 m
  10. */
  11. export const getList = data => {
  12. return https.get('/category/goods-list', data)
  13. }
  14. // ===================== B 端 ========================
  15. /** *
  16. * 商品分类-列表(全部分类无分页) b
  17. */
  18. export const getClassB = data => {
  19. return https.get('/category/list', data)
  20. }
  21. /** *
  22. * 商品分类-查看 b
  23. */
  24. export const getClassDetB = data => {
  25. return https.get('/category/detail', data)
  26. }
  27. /** *
  28. * 商品分类-添加 b
  29. */
  30. export const classAddB = data => {
  31. return https.get('/category/add', data)
  32. }
  33. /** *
  34. * 商品分类-修改 b
  35. */
  36. export const classUpdateB = data => {
  37. return https.get('/category/update', data)
  38. }
  39. /** *
  40. * 商品分类-修改 b
  41. */
  42. export const changeStatusB = data => {
  43. return https.get('/category/change-status', data)
  44. }