sellse.service.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * 这是协销用户业务的服务
  3. */
  4. export default class SellerService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'SellerService'
  8. }
  9. /**
  10. *@协销-二手下单商品列表
  11. *@param 二手商品分类 secondHandType 1二手仪器,2临期产品,3其他 【必传】
  12. *@param 二手仪器分类的类型 instrumentType 1轻光电、2重光电、3耗材配件【不传默认全部】
  13. *@param 搜索关键词 searchKeyword 【选传】
  14. */
  15. GetOrderSecondHandProductList (data = {}) {
  16. return this.AjaxService.get({ url:'/product/getOrderSecondHandProductList', data, isLoading: true })
  17. }
  18. /**
  19. *@协销-二手去结算接口
  20. *@param productId:商品ID(数字类型,必传)
  21. *@param clubId:机构会所ID(同之前)
  22. *@param serviceProviderId:协销ID(同之前)
  23. *@param productCount:二手购买数量
  24. */
  25. GetSettlementBySencondProduct (data = {}) {
  26. return this.AjaxService.post({ url:'/seller/settlementBySencondProduct', data, isLoading: true })
  27. }
  28. ProductDetail (data={}){//商品详情
  29. return this.AjaxService.get({ url:'/product/getSecondHandProductDetail', data, isLoading: true })
  30. }
  31. ProductRecommend (data={}){//相关推荐
  32. return this.AjaxService.get({ url:'/product/getSecondHandProductRecommend', data, isLoading: true })
  33. }
  34. }