ams.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. "use strict";
  2. const utils_http = require("../utils/http.js");
  3. const getCarousel = (data) => {
  4. return utils_http.http({
  5. method: "GET",
  6. url: `/miniApp/getCarousel/${data}`,
  7. data
  8. });
  9. };
  10. const getActivity = (data) => {
  11. return utils_http.http({
  12. method: "GET",
  13. url: `/miniApp/getActivity/${data}`
  14. });
  15. };
  16. const addCustomer = (data) => {
  17. return utils_http.http({
  18. method: "POST",
  19. url: "/customer/add",
  20. data
  21. });
  22. };
  23. const rewardList = (data) => {
  24. return utils_http.http({
  25. method: "POST",
  26. url: "/customer/rewardList",
  27. data
  28. });
  29. };
  30. const auditSuccessList = (data) => {
  31. return utils_http.http({
  32. method: "POST",
  33. url: "/customer/auditSuccessList",
  34. data
  35. });
  36. };
  37. const rewardDetail = (data) => {
  38. return utils_http.http({
  39. method: "POST",
  40. url: "/customer/rewardDetail",
  41. data
  42. });
  43. };
  44. const getPhoneNumberInfo = (data) => {
  45. return utils_http.http({
  46. method: "GET",
  47. url: `/miniApp/getPhoneNumber/${data.appid}/${data.code}`
  48. });
  49. };
  50. const validate = (data) => {
  51. return utils_http.http({
  52. method: "POST",
  53. url: `/miniApp/validate/${data.marketingActivityId}`,
  54. data
  55. });
  56. };
  57. const getOpenId = (data) => {
  58. return utils_http.http({
  59. method: "GET",
  60. url: `/miniApp/getOpenId/${data.appid}/${data.code}`,
  61. data
  62. });
  63. };
  64. const payment = (data) => {
  65. return utils_http.http({
  66. method: "POST",
  67. url: `/customer/payment/${data}`,
  68. data
  69. });
  70. };
  71. exports.addCustomer = addCustomer;
  72. exports.auditSuccessList = auditSuccessList;
  73. exports.getActivity = getActivity;
  74. exports.getCarousel = getCarousel;
  75. exports.getOpenId = getOpenId;
  76. exports.getPhoneNumberInfo = getPhoneNumberInfo;
  77. exports.payment = payment;
  78. exports.rewardDetail = rewardDetail;
  79. exports.rewardList = rewardList;
  80. exports.validate = validate;