第一次提交
This commit is contained in:
10
common/enum/coupon/ApplyRange.js
Executable file
10
common/enum/coupon/ApplyRange.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:优惠券适用范围
|
||||
* ApplyRangeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'ALL', name: '全部商品', value: 10 },
|
||||
{ key: 'SOME_GOODS', name: '指定商品', value: 20 }
|
||||
])
|
||||
10
common/enum/coupon/CouponType.js
Executable file
10
common/enum/coupon/CouponType.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:优惠券类型
|
||||
* CouponTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'FULL_DISCOUNT', name: '满减券', value: 10 },
|
||||
{ key: 'DISCOUNT', name: '折扣券', value: 20 }
|
||||
])
|
||||
10
common/enum/coupon/ExpireType.js
Executable file
10
common/enum/coupon/ExpireType.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:优惠券到期类型
|
||||
* ExpireTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'RECEIVE', name: '领取后', value: 10 },
|
||||
{ key: 'FIXED_TIME', name: '固定时间', value: 20 }
|
||||
])
|
||||
5
common/enum/coupon/index.js
Executable file
5
common/enum/coupon/index.js
Executable file
@@ -0,0 +1,5 @@
|
||||
import ApplyRangeEnum from './ApplyRange'
|
||||
import ExpireTypeEnum from './ExpireType'
|
||||
import CouponTypeEnum from './CouponType'
|
||||
|
||||
export { ApplyRangeEnum, CouponTypeEnum, ExpireTypeEnum }
|
||||
Reference in New Issue
Block a user