123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\common\enum;
-
-
- class ShopEnum
- {
-
-
- const AUDIT_STATUS_STAY = 1;
- const AUDIT_STATUS_OK = 2;
- const AUDIT_STATUS_REFUSE = 3;
-
-
-
- const SHOP_TYPE_SELF = 1;
- const SHOP_TYPE_IN = 2;
-
-
-
- const SHOP_RUN_CLOSE = 0;
- const SHOP_RUN_OPEN = 1;
-
-
-
- const SHOP_FREEZE_NORMAL = 0;
- const SHOP_FREEZE_BAN = 1;
-
-
-
- const PRODUCT_AUDIT_FALSE = 0;
- const PRODUCT_AUDIT_TRUE = 1;
-
-
-
- const SHOP_RECOMMEND_FALSE = 0;
- const SHOP_RECOMMEND_TRUE = 1;
-
-
-
- const DEFAULT_LOGO = '/static/common/image/default/shop_default_logo.png';
- const DEFAULT_BG = '/static/common/image/default/shop_default_bg.jpg';
- const DEFAULT_COVER = '/static/common/image/default/shop_default_cover.png';
- const DEFAULT_BANNER = '/static/common/image/default/shop_default_banner.jpg';
-
-
-
- const DOME_BG = '/static/common/image/default/shop_demo_background.png';
- const DOME_COVER = '/static/common/image/default/shop_demo_cover.png';
- const DOME_BANNER = '/static/common/image/default/shop_demo_banner.png';
-
-
-
-
- const INVOICE_CLOSE = 0;
- const INVOICE_OPEN = 1;
-
-
-
- const SPEC_INVOICE_UNABLE = 0;
- const SPEC_INVOICE_ABLE = 1;
-
-
-
-
- const DELIVERY_EXPRESS = 1;
- const DELIVERY_SELF = 2;
-
-
-
-
- public static function getAuditStatusDesc($form = true){
- $desc = [
- self::AUDIT_STATUS_STAY => '待审核',
- self::AUDIT_STATUS_OK => '审核通过',
- self::AUDIT_STATUS_REFUSE => '审核拒绝'
- ];
- if(true === $form){
- return $desc;
- }
- return $desc[$form] ?? '';
- }
-
-
-
- public static function getShopTypeDesc($form = true){
- $desc = [
- self::SHOP_TYPE_SELF => '官方自营',
- self::SHOP_TYPE_IN => '入驻商家',
- ];
- if(true === $form){
- return $desc;
- }
- return $desc[$form] ?? '';
- }
-
-
-
- public static function getShopIsRunDesc($form = true)
- {
- $desc = [
- self::SHOP_RUN_CLOSE => '暂停营业',
- self::SHOP_RUN_OPEN => '营业中',
- ];
- if(true === $form){
- return $desc;
- }
- return $desc[$form] ?? '';
- }
-
-
-
- public static function getShopFreezeDesc($form = true) {
- $desc = [
- self::SHOP_FREEZE_NORMAL => '正常',
- self::SHOP_FREEZE_BAN => '冻结',
- ];
- if(true === $form){
- return $desc;
- }
- return $desc[$form] ?? '';
- }
-
-
-
- public static function getShopIsRecommendDesc($form = true) {
- $desc = [
- self::SHOP_RECOMMEND_TRUE => '推荐',
- self::SHOP_RECOMMEND_FALSE => '不推荐',
- ];
- if(true === $form){
- return $desc;
- }
- return $desc[$form] ?? '';
- }
-
-
-
-
- public static function getDeliveryTypeDesc($form = true)
- {
- $desc = [
- self::DELIVERY_EXPRESS => '快递发货',
- self::DELIVERY_SELF => '线下自提',
- ];
- if(true === $form){
- return $desc;
- }
- return $desc[$form] ?? '';
- }
-
-
- }
|