beautyArchive.service.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // 美业资料库列表
  2. var BeautyArchiveApi = {
  3. //获取资料库商品列表
  4. GetArchiveProduct: function (params, callback) {//资料库获取详情
  5. Http.AjaxService({
  6. url: '/commodity/product/archive',
  7. type: 'GET',
  8. data: params,
  9. json: false,
  10. isHost: true,
  11. }).then(function (res) {
  12. callback(res);
  13. });
  14. },
  15. //获取商品资料列表
  16. GetProdcutArchiveDetails: function (params, callback) {//资料库获取详情
  17. Http.AjaxService({
  18. url: '/commodity/product/archive/detail',
  19. type: 'GET',
  20. data: params,
  21. json: false,
  22. isHost: true,
  23. }).then(function (res) {
  24. callback(res);
  25. });
  26. },
  27. //采美豆抵扣
  28. SearchArchiveByBeans: function (params, callback) {
  29. Http.AjaxService({
  30. url: '/user/club/archive/deduction',
  31. type: 'POST',
  32. data: params,
  33. json: false,
  34. isHost: true,
  35. }).then(function (res) {
  36. callback(res);
  37. });
  38. }
  39. };