PreviewTypeEnum.php 875 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace common\enums;
  3. use common\enums\BaseEnum;
  4. /**
  5. * 下单类型
  6. *
  7. *
  8. * Class PreviewTypeEnum
  9. * @package addons\TinyShop\common\enums
  10. * @author qimall
  11. */
  12. class PreviewTypeEnum extends BaseEnum
  13. {
  14. const BUY_NOW = 'buy_now';
  15. const CART = 'cart';
  16. const RESERVE_NOW = 'reserve_now';
  17. const FREIGHT = 'freight';
  18. const EXCHANGE_NOW = 'exchange_now';
  19. const REGISTRATION_NOW ='registration_now';
  20. const REMULTI_NOW ='multi_now';
  21. /**
  22. * @return array
  23. */
  24. public static function getMap(): array
  25. {
  26. return [
  27. self::BUY_NOW => '立即购买',
  28. self::CART => '购物车',
  29. self::RESERVE_NOW => '立即预约',
  30. self::FREIGHT => '运费计算',
  31. self::EXCHANGE_NOW => '立即兑换',
  32. self::REGISTRATION_NOW => '立即挂号',
  33. ];
  34. }
  35. }