repair.service.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* HTTP API 维修业务模块
  2. * Copyright 2020, CAIMEI365
  3. * Date 2020/09/09
  4. * auther ZHJY
  5. */
  6. var RepairApi = {
  7. /* 查询用户维修列表 */
  8. GetFindMaintenance: function (params, callback) {
  9. Http.AjaxService({ url:'/pcCenter/findMaintenance', type:'GET', data:params, json:false})
  10. .then(function(res){
  11. callback(res);
  12. });
  13. },
  14. /* 用户申请维修 */
  15. AddApplyMaintenance: function (params, callback) {
  16. Http.AjaxService({ url:'/pcCenter/applyMaintenance', type:'POST', data:params, json:false})
  17. .then(function(res){
  18. callback(res);
  19. });
  20. },
  21. /* 维修详情 */
  22. MaintenanceDetail: function (params, callback) {
  23. Http.AjaxService({ url:'/pcCenter/maintenance/detail', type:'GET', data:params, json:false})
  24. .then(function(res){
  25. callback(res);
  26. });
  27. },
  28. /* 维修详情 提交评论 */
  29. evaluation: function (params, callback) {
  30. Http.AjaxService({ url:'/pcCenter/maintenance/evaluation', type:'POST', data:params, json:false})
  31. .then(function(res){
  32. callback(res);
  33. });
  34. },
  35. };