const.js 763 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // ========== MALL - 营销模块 ==========
  2. /**
  3. * 优惠类型枚举
  4. */
  5. export const PromotionDiscountTypeEnum = {
  6. PRICE: {
  7. type: 1,
  8. name: '满减'
  9. },
  10. PERCENT: {
  11. type: 2,
  12. name: '折扣'
  13. }
  14. }
  15. /**
  16. * 优惠劵模板的有限期类型的枚举
  17. */
  18. export const CouponTemplateValidityTypeEnum = {
  19. DATE: {
  20. type: 1,
  21. name: '固定日期可用'
  22. },
  23. TERM: {
  24. type: 2,
  25. name: '领取之后可用'
  26. }
  27. }
  28. /**
  29. * 营销的商品范围枚举
  30. */
  31. export const PromotionProductScopeEnum = {
  32. ALL: {
  33. scope: 1,
  34. name: '通用劵'
  35. },
  36. SPU: {
  37. scope: 2,
  38. name: '商品劵'
  39. },
  40. CATEGORY: {
  41. scope: 3,
  42. name: '品类劵'
  43. }
  44. }