shopProduct.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { axios } from '@/utils/request'
  2. // 仓库列表 有分页
  3. export const shopProductList = (params) => {
  4. const url = `/shopProduct/queryProductPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post',
  11. headers: {
  12. 'module': encodeURIComponent('列表查询')
  13. }
  14. })
  15. }
  16. // 获取商城状态
  17. export const findMallParam = (params) => {
  18. return axios({
  19. url: '/dealerBizParam/findMallParam',
  20. data: params,
  21. method: 'post',
  22. headers: {
  23. 'module': encodeURIComponent('获取商城状态')
  24. }
  25. })
  26. }
  27. // 修改商城状态
  28. export const updateMallParam = (params) => {
  29. return axios({
  30. url: '/dealerBizParam/updateMallParam',
  31. data: params,
  32. method: 'post',
  33. headers: {
  34. 'module': encodeURIComponent('修改商城状态')
  35. }
  36. })
  37. }
  38. // 商城目录 列表 无分页
  39. export const queryExtList = (params) => {
  40. return axios({
  41. url: '/shopCategory/queryExtList',
  42. data: params,
  43. method: 'post',
  44. headers: {
  45. 'module': encodeURIComponent('商城目录列表')
  46. }
  47. })
  48. }