feat:用户优惠券
This commit is contained in:
1 parent
c9ff397591
commit
29a675f533
16 files changed
+410
-306
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import request from "@/sheep/utils/request"
|
||||
|
||||
export default {
|
||||
/**
|
||||
* 根据公告id查询对应的活动
|
||||
*/
|
||||
getActByNotifyId: (params: any) =>
|
||||
request({
|
||||
url: "/wallet/act/com/app/get-act-by-notify-id",
|
||||
method: "GET",
|
||||
params,
|
||||
}),
|
||||
/**
|
||||
* 获取活动详情
|
||||
*/
|
||||
getActDetail: (params: any) =>
|
||||
request({
|
||||
url: "/wallet/act/com/app/get-act-detail",
|
||||
method: "GET",
|
||||
params,
|
||||
}),
|
||||
/**
|
||||
* 判断用户是否可以参加活动
|
||||
*/
|
||||
isEligibleForAct: (params: any) =>
|
||||
request({
|
||||
url: "/wallet/act/com/app/is-eligible-for-act",
|
||||
method: "GET",
|
||||
params,
|
||||
}),
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import request from "@/sheep/utils/request"
|
||||
|
||||
export default {
|
||||
/**
|
||||
* 领取优惠券
|
||||
*/
|
||||
receive: (data: any) =>
|
||||
request({
|
||||
url: "/wallet/act-coupon-record/app/receive",
|
||||
method: "POST",
|
||||
data,
|
||||
}),
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
export { default as actCancel } from "./act-cancel"
|
||||
export { default as actComApi } from "./act-com"
|
||||
export { default as actCouponApi } from "./act-coupon"
|
||||
|
||||
export { default as applyApi } from "./apply"
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// #ifdef WEB
|
||||
import { h, render } from "vue"
|
||||
import VerifyDeviceImpModel from "./verify-device-imp-model.vue"
|
||||
|
||||
@@ -24,3 +25,9 @@ const showVerifyDeviceImpModel = (onClose: () => any = () => null) => {
|
||||
}
|
||||
|
||||
export default showVerifyDeviceImpModel
|
||||
// #endif
|
||||
|
||||
// #ifndef WEB
|
||||
const showVerifyDeviceImpModel = (onClose: () => any = () => null) => {}
|
||||
export default showVerifyDeviceImpModel
|
||||
// #endif
|
||||
@@ -55,6 +55,32 @@ const actCancelStatusEnum = {
|
||||
"3": "已过期",
|
||||
}
|
||||
|
||||
const actCouponLimitTypeEnum = {
|
||||
"1": "活动期间一次",
|
||||
"2": "每天",
|
||||
"3": "每周",
|
||||
"4": "每月",
|
||||
"5": "每年",
|
||||
}
|
||||
|
||||
const actCouponTypeEnum = {
|
||||
"1": "满减券",
|
||||
"2": "折扣券",
|
||||
"3": "立减券",
|
||||
"4": "兑换券",
|
||||
}
|
||||
|
||||
// 用户活动状态
|
||||
const actUserReceiveEnum = {
|
||||
"1": "活动不在进行中",
|
||||
"2": "活动不存在",
|
||||
"3": "活动未开启",
|
||||
"4": "用户参加活动已达上限",
|
||||
"5": "用户不能参加此活动",
|
||||
"6": "其他错误",
|
||||
"99": "用户可以参加活动",
|
||||
}
|
||||
|
||||
export default {
|
||||
hardwareOrderStatusEnum,
|
||||
hardwareOrderTypeEnum,
|
||||
@@ -64,4 +90,7 @@ export default {
|
||||
hardwareRefundStatusEnum,
|
||||
carTypeEnum,
|
||||
actCancelStatusEnum,
|
||||
actCouponLimitTypeEnum,
|
||||
actCouponTypeEnum,
|
||||
actUserReceiveEnum,
|
||||
}
|
||||
Reference in new issue
Block a user