second.service.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // 二手商品
  2. export default class SecondService {
  3. constructor(AjaxService) {
  4. Object.assign(this, { AjaxService })
  5. this.name = 'SecondService'
  6. }
  7. /**
  8. *二手商品列表
  9. *@param 二手商品分类 secondHandType 1二手仪器,2临期产品,3其他 【必传】
  10. *@param 二手仪器分类的类型 instrumentType 1轻光电、2重光电、3耗材配件【不传默认全部】
  11. *@param 搜索关键词 searchKeyword 【选传】
  12. */
  13. SeconHandProductList (data = {}) {
  14. return this.AjaxService.get({ url:'/product/getSecondHandProductList', data, isLoading: true })
  15. }
  16. /*二手发布/品牌列表 */
  17. brandList (data = {}) {
  18. return this.AjaxService.get({ url:'/product/brandList', data, isLoading: true })
  19. }
  20. /*二手发布/提交发布 */
  21. SecondHandProduct (data = {}) {
  22. return this.AjaxService.post({ url:'/product/releaseSecondHandProduct', data, isLoading: true })
  23. }
  24. /*二手发布/浏览量 */
  25. ProductCount (data = {}) {
  26. return this.AjaxService.get({ url:'/product/updateSecondHandProductCount', data, isLoading: true })
  27. }
  28. /**
  29. *@二手商品详情
  30. *@param productId:商品ID(数字类型,必传)
  31. */
  32. ProductDetail (data={}){//商品详情
  33. return this.AjaxService.get({ url:'/product/getSecondHandProductDetail', data, isLoading: true })
  34. }
  35. }