second.service.js 897 B

1234567891011121314151617181920212223242526
  1. // 二手商品
  2. export default class SecondApi {
  3. constructor(AjaxService) {
  4. Object.assign(this, { AjaxService })
  5. this.name = 'SecondApi'
  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. }