feat:核销活动
This commit is contained in:
1 parent
c86d29bd8d
commit
f9386dd2bf
3 files changed
+43
No files matched your search
@@ -0,0 +1,34 @@
|
||||
import request from "@/sheep/utils/request"
|
||||
|
||||
export default {
|
||||
/**
|
||||
* app领取优惠券
|
||||
* 不用穿参数
|
||||
*/
|
||||
appGet: (data: any) =>
|
||||
request({
|
||||
url: "/act/cancel-item/app/get",
|
||||
method: "POST",
|
||||
data,
|
||||
}),
|
||||
/**
|
||||
* app查询用户的唯一优惠券
|
||||
* 不用穿参数
|
||||
*/
|
||||
appFindUnique: (params: any) =>
|
||||
request({
|
||||
url: "/act/cancel-item/app/find-unique",
|
||||
method: "GET",
|
||||
params,
|
||||
}),
|
||||
/**
|
||||
* app查询本店优惠券列表
|
||||
* @param params.actStatus 核销类型
|
||||
*/
|
||||
appMchPage: (params: any) =>
|
||||
request({
|
||||
url: "/act/cancel-item/app/mch/page",
|
||||
method: "GET",
|
||||
params,
|
||||
}),
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
export { default as actCancel } from "./act-cancel"
|
||||
|
||||
export { default as applyApi } from "./apply"
|
||||
|
||||
export { default as boxesApi } from "./boxes"
|
||||
|
||||
@@ -49,6 +49,12 @@ const boxesBxStatusEnum = {
|
||||
"2": "今日已满",
|
||||
}
|
||||
|
||||
const actCancelStatusEnum = {
|
||||
"1": "未核销",
|
||||
"2": "已核销",
|
||||
"3": "已过期",
|
||||
}
|
||||
|
||||
export default {
|
||||
hardwareOrderStatusEnum,
|
||||
hardwareOrderTypeEnum,
|
||||
@@ -57,4 +63,5 @@ export default {
|
||||
hardwareSaleStatusEnum,
|
||||
hardwareRefundStatusEnum,
|
||||
carTypeEnum,
|
||||
actCancelStatusEnum,
|
||||
}
|
||||
Reference in new issue
Block a user