shopCategory.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import { axios } from '@/utils/request'
  2. // 易码通商城列表 无分页
  3. export const shopCategoryList = (params) => {
  4. const url = '/shopCategory/queryList'
  5. return axios({
  6. url: url,
  7. data: params,
  8. method: 'post',
  9. headers: {
  10. 'module': encodeURIComponent('列表查询')
  11. }
  12. })
  13. }
  14. // 易码通商城新增类目
  15. export const saveShopCategory = (params) => {
  16. return axios({
  17. url: '/shopCategory/saveShopCategory',
  18. data: params,
  19. method: 'post',
  20. headers: {
  21. 'module': encodeURIComponent('新增类目')
  22. }
  23. })
  24. }
  25. // 易码通商城目录 删除 sn=categorySn
  26. export const shopCategoryDel = params => {
  27. return axios({
  28. url: `/shopCategory/delete/${params.categorySn}`,
  29. data: params,
  30. method: 'post',
  31. headers: {
  32. 'module': encodeURIComponent('删除')
  33. }
  34. })
  35. }
  36. // 易码通商城目录 获取子级目录列表 无分页
  37. export const getChildList = params => {
  38. return axios({
  39. url: `/shopCategory/queryExtBySn/${params.categorySn}`,
  40. data: params,
  41. method: 'post',
  42. headers: {
  43. 'module': encodeURIComponent('获取子级目录列表')
  44. }
  45. })
  46. }
  47. // 易码通商城目录 详情
  48. export const shopCategoryDetail = params => {
  49. return axios({
  50. url: `/shopCategory/queryBySn/${params.categorySn}`,
  51. data: params,
  52. method: 'post',
  53. headers: {
  54. 'module': encodeURIComponent('详情')
  55. }
  56. })
  57. }
  58. // 易码通商城目录 修改状态
  59. export const shopCategoryUpdateStatus = (params) => {
  60. return axios({
  61. url: 'shopCategory/updateStatus',
  62. data: params,
  63. method: 'post'
  64. })
  65. }