初始化
This commit is contained in:
10
request/loginReq.js
Normal file
10
request/loginReq.js
Normal 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
11
request/public.js
Normal 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
28
request/ticketReq.js
Normal 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,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user