storeOrder.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. var common_request = require("../common/request.js");
  3. let request = new common_request.Request().http;
  4. function getMyStoreOrderList(data) {
  5. return request("/app/storeOrder/getMyStoreOrderList", data, "GET");
  6. }
  7. function getCompanyUserStoreOrderList(data) {
  8. return request("/app/storeOrder/getCompanyUserStoreOrderList", data, "GET");
  9. }
  10. function getMyStoreOrderById(data) {
  11. return request("/app/storeOrder/getMyStoreOrderById", data, "GET");
  12. }
  13. function getStoreOrderById(data) {
  14. return request("/app/storeOrder/getStoreOrderById", data, "GET");
  15. }
  16. function getCompanyUserStoreOrderById(data) {
  17. return request("/app/storeOrder/getCompanyUserStoreOrderById", data, "GET");
  18. }
  19. function pay(data) {
  20. return request("/app/storeOrder/pay", data, "POST", "application/json;charset=UTF-8");
  21. }
  22. function payment(data) {
  23. return request("/app/storeOrder/payment", data, "POST", "application/json;charset=UTF-8");
  24. }
  25. function compute(data) {
  26. return request("/app/storeOrder/compute", data, "POST", "application/json;charset=UTF-8");
  27. }
  28. function cancelOrder(data) {
  29. return request("/app/storeOrder/cancelOrder", data, "POST", "application/json;charset=UTF-8");
  30. }
  31. function finishOrder(data) {
  32. return request("/app/storeOrder/finishOrder", data, "POST", "application/json;charset=UTF-8");
  33. }
  34. function getExpress(data) {
  35. return request("/app/storeOrder/getExpress", data, "POST", "application/json;charset=UTF-8");
  36. }
  37. exports.cancelOrder = cancelOrder;
  38. exports.compute = compute;
  39. exports.finishOrder = finishOrder;
  40. exports.getCompanyUserStoreOrderById = getCompanyUserStoreOrderById;
  41. exports.getCompanyUserStoreOrderList = getCompanyUserStoreOrderList;
  42. exports.getExpress = getExpress;
  43. exports.getMyStoreOrderById = getMyStoreOrderById;
  44. exports.getMyStoreOrderList = getMyStoreOrderList;
  45. exports.getStoreOrderById = getStoreOrderById;
  46. exports.pay = pay;
  47. exports.payment = payment;