初始化

This commit is contained in:
2023-06-06 17:11:04 +08:00
commit 4fff04b095
113 changed files with 11291 additions and 0 deletions

10
request/loginReq.js Normal file
View File

@@ -0,0 +1,10 @@
// import $http from '@/common/http/index'
import { myRequest } from "@/util/api.js";
// 获取用户钱包信息
export function getUserWallet(id) {
return myRequest({
method: "get",
url: `/machine/user?user_id=${id}`,
});
}

11
request/public.js Normal file
View File

@@ -0,0 +1,11 @@
// import $http from "@/common/http/index";
import { myRequest } from "@/util/api.js";
// 根据imei号获取店铺信息
export const getShopInfo = (params) => {
return myRequest({
method: "get",
url: `/machine/shop?imei=${params.machineId}`,
data: params,
});
};

28
request/ticketReq.js Normal file
View File

@@ -0,0 +1,28 @@
import { myRequest } from "@/util/api.js";
// 已核销列表
export const getVerificationList = (params) => {
return myRequest({
method: "get",
url: `/machine/write-off-search`,
data: params,
});
};
// 删除核销记录
export const deleteVerificationRecord = (params) => {
return myRequest({
method: "post",
url: `/machine/write-off-del`,
data: params,
});
};
// 核销-店铺优惠券
export function getWriteOffInfo(data) {
return myRequest({
method: "get",
url: "/write-off/info",
data,
});
}