second.service.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* HTTP API 二手业务模块
  2. * Copyright 2020, CAIMEI365
  3. * Date 2020/07/16
  4. * auther xw
  5. */
  6. var SecondApi = {
  7. SecondHandProduct: function (params, callback) {//发布信息
  8. Http.AjaxService({ url:'/product/releaseSecondHandProduct', type:'post', data:params, json:false, mask:true,replace:false})
  9. .then(function(res){
  10. callback(res);
  11. });
  12. },
  13. uploadimg: function (params, callback) {//上传图片
  14. Http.uploadImage({ url:'/formData/MultiPictareaddData',data:params},callback)
  15. },
  16. SeconHandProductList: function (params, callback) {//商品列表
  17. Http.AjaxService({ url:'/product/getSecondHandProductList', type:'get', data:params, json:true, mask:true,replace:false})
  18. .then(function(res){
  19. callback(res);
  20. });
  21. },
  22. brandList: function (params, callback) {//品牌列表
  23. Http.AjaxService({ url:'/product/brandList', type:'get', data:params, json:true, mask:true,replace:false})
  24. .then(function(res){
  25. callback(res);
  26. });
  27. },
  28. ProductCount: function (params, callback) {//浏览量
  29. Http.AjaxService({ url:'/product/updateSecondHandProductCount', type:'get', data:params, json:true, mask:true,replace:false})
  30. .then(function(res){
  31. callback(res);
  32. });
  33. },
  34. ProductDetail: function (params, callback) {//商品详情
  35. Http.AjaxService({ url:'/product/getSecondHandProductDetail', type:'get', data:params, json:true, mask:true,replace:false})
  36. .then(function(res){
  37. callback(res);
  38. });
  39. },
  40. ProductRecommend: function (params, callback) {//商品详情/相关推荐
  41. Http.AjaxService({ url:'/product/getSecondHandProductRecommend', type:'get', data:params, json:true, mask:true,replace:false})
  42. .then(function(res){
  43. callback(res);
  44. });
  45. },
  46. };