1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- "use strict";
- const utils_http = require("../utils/http.js");
- const getCarousel = (data) => {
- return utils_http.http({
- method: "GET",
- url: `/miniApp/getCarousel/${data}`,
- data
- });
- };
- const getActivity = (data) => {
- return utils_http.http({
- method: "GET",
- url: `/miniApp/getActivity/${data}`
- });
- };
- const addCustomer = (data) => {
- return utils_http.http({
- method: "POST",
- url: "/customer/add",
- data
- });
- };
- const rewardList = (data) => {
- return utils_http.http({
- method: "POST",
- url: "/customer/rewardList",
- data
- });
- };
- const auditSuccessList = (data) => {
- return utils_http.http({
- method: "POST",
- url: "/customer/auditSuccessList",
- data
- });
- };
- const rewardDetail = (data) => {
- return utils_http.http({
- method: "POST",
- url: "/customer/rewardDetail",
- data
- });
- };
- const getPhoneNumberInfo = (data) => {
- return utils_http.http({
- method: "GET",
- url: `/miniApp/getPhoneNumber/${data.appid}/${data.code}`
- });
- };
- const validate = (data) => {
- return utils_http.http({
- method: "POST",
- url: `/miniApp/validate/${data.marketingActivityId}`,
- data
- });
- };
- const getOpenId = (data) => {
- return utils_http.http({
- method: "GET",
- url: `/miniApp/getOpenId/${data.appid}/${data.code}`,
- data
- });
- };
- const payment = (data) => {
- return utils_http.http({
- method: "POST",
- url: `/customer/payment/${data}`,
- data
- });
- };
- exports.addCustomer = addCustomer;
- exports.auditSuccessList = auditSuccessList;
- exports.getActivity = getActivity;
- exports.getCarousel = getCarousel;
- exports.getOpenId = getOpenId;
- exports.getPhoneNumberInfo = getPhoneNumberInfo;
- exports.payment = payment;
- exports.rewardDetail = rewardDetail;
- exports.rewardList = rewardList;
- exports.validate = validate;
|