index.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. //商品详情
  3. export const getDetail = data => {
  4. return https.get('/goods/detail', data)
  5. }
  6. //获取商品详情 ssh 20220505
  7. export const getBySn = data =>{
  8. return https.get('/goods/get-by-sn', data)
  9. }
  10. /** *
  11. * 获取分类的商品 b
  12. */
  13. export const getCategoryGoodsB = data => {
  14. return https.get('/category/goods-list', data)
  15. }
  16. //商品列表
  17. export const getListB = data => {
  18. return https.get('/goods/list', data)
  19. }
  20. //商品列表
  21. export const getGoodsList = data => {
  22. return https.get('/goods/list', data)
  23. }
  24. /** *
  25. * 商品-查看 b
  26. */
  27. export const getDetailB = data => {
  28. return https.get('/goods/detail', data)
  29. }
  30. /** *
  31. * 商品-添加 b
  32. */
  33. export const addB = data => {
  34. return https.post('/goods/add', data)
  35. }
  36. /** *
  37. * 商品-删除 b
  38. */
  39. export const delB = data => {
  40. return https.get('/goods/delete', data)
  41. }
  42. /** *
  43. * 商品-修改 b
  44. */
  45. export const updateB = data => {
  46. return https.post('/goods/update', data)
  47. }
  48. /** *
  49. * 商品-上下架 b
  50. */
  51. export const changeStatusB = data => {
  52. return https.get('/goods/change-status', data)
  53. }
  54. /** *
  55. * 商品-查看短链接 b
  56. */
  57. export const shortUrlB = data => {
  58. return https.get('/goods/short-url', data)
  59. }
  60. /** *
  61. * 商品-发送链接 b
  62. */
  63. export const sendShortUrlB = data => {
  64. return https.get('/goods/send-short-url', data)
  65. }
  66. /** *
  67. * 商品用途-列表(无分页) b
  68. */
  69. export const usageListB = data => {
  70. return https.get('/usage/list', data)
  71. }
  72. /** *
  73. * 商品分类-列表(无分页) b
  74. */
  75. export const categoryListB = data => {
  76. return https.get('/category/list', data)
  77. }
  78. /** *
  79. * 商品分类-查看 b
  80. */
  81. export const categoryDetB = data => {
  82. return https.get('/category/detail', data)
  83. }
  84. /** *
  85. * 商品分类-添加 b
  86. */
  87. export const categoryAddB = data => {
  88. return https.post('/category/add', data)
  89. }
  90. /** *
  91. * 商品分类-更新 b
  92. */
  93. export const categoryUpdateB = data => {
  94. return https.post('/category/update', data)
  95. }
  96. /** *
  97. * 商品分类-更新 b
  98. */
  99. export const categoryDelB = data => {
  100. return https.get('/category/delete', data)
  101. }
  102. /** *
  103. * 商品分类-启用停用 b
  104. */
  105. export const categoryStatusB = data => {
  106. return https.get('/category/change-status', data)
  107. }
  108. /** *
  109. * 商品管理-运费设置 b
  110. */
  111. export const freightSet = data => {
  112. return https.get('/merchant/freight-setting', data)
  113. }
  114. /** *
  115. * 商品管理-涨价设置 b
  116. */
  117. export const getRise = data => {
  118. return https.get('/goods/setting', data)
  119. }
  120. /** *
  121. * 商品管理-更新涨价 b
  122. */
  123. export const updateRise = data => {
  124. return https.post('/goods/update-rise', data)
  125. }