123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <?php
- // +----------------------------------------------------------------------
- // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2017~2021 https://www.yiovo.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
- // +----------------------------------------------------------------------
- // | Author: 萤火科技 <admin@yiovo.com>
- // +----------------------------------------------------------------------
- declare (strict_types = 1);
- namespace app\common\enum;
- /**
- * 商城设置枚举类
- * Class Setting
- * @package app\common\enum
- */
- class Setting extends EnumBasics
- {
- // 配送设置
- const DELIVERY = 'delivery';
- // 交易设置
- const TRADE = 'trade';
- // 短信通知
- const SMS = 'sms';
- // 上传设置
- const STORAGE = 'storage';
- // 满额包邮设置
- const FULL_FREE = 'full_free';
- // 充值设置
- const RECHARGE = 'recharge';
- // 积分设置
- const POINTS = 'points';
- // 分类页模板
- const PAGE_CATEGORY_TEMPLATE = 'page_category_template';
- // 佣金提现设置
- const WITHDRAWAL = 'withdrawal';
- // 品牌文化设置
- const BRAND_CULTURE = 'brand_culture';
- // 未支付订单自动关闭设置
- const ORDER_CANCEL = 'order_cancel';
- // 供应商结算设置
- const PROVIDER_SETTLEMENT = 'provider_settlement';
- // 关闭售后入口+自动确认收货+佣金结算周期
- const REFUND = 'refund';
- // 分销员推广佣金配置
- const COMMISSION = 'commission'; //废弃于2021年12月7日
- // 分销员推广佣金配置
- const DISTRIBUTOR_GRADE = 'distributor_grade';
- // 分销员推广佣金阶梯达量奖励配置
- const DISTRIBUTOR_STEP = 'distributor_step';
- //顾客购物折扣配置
- const DISTRIBUTOR = 'distributor';
- //门店自提订单配置
- const SHOPS = 'shops';
- //会员成长值配置
- const MEMBER_GROWTH = 'member_growth';
- //腊肠积分设置
- const POINTS_RATE = 'points_rate';
- /**
- * 获取订单类型值
- * @return array
- */
- public static function data()
- {
- return [
- self::DELIVERY => [
- 'value' => self::DELIVERY,
- 'describe' => '配送设置',
- ],
- self::TRADE => [
- 'value' => self::TRADE,
- 'describe' => '交易设置',
- ],
- self::SMS => [
- 'value' => self::SMS,
- 'describe' => '短信通知',
- ],
- self::STORAGE => [
- 'value' => self::STORAGE,
- 'describe' => '上传设置',
- ],
- self::FULL_FREE => [
- 'value' => self::FULL_FREE,
- 'describe' => '满额包邮设置',
- ],
- self::RECHARGE => [
- 'value' => self::RECHARGE,
- 'describe' => '充值设置',
- ],
- self::POINTS => [
- 'value' => self::POINTS,
- 'describe' => '积分设置',
- ],
- self::PAGE_CATEGORY_TEMPLATE => [
- 'value' => self::PAGE_CATEGORY_TEMPLATE,
- 'describe' => '分类页模板',
- ],
- self::WITHDRAWAL => [
- 'value' => self::WITHDRAWAL,
- 'describe' => '佣金提现设置',
- ],
- self::BRAND_CULTURE => [
- 'value' => self::BRAND_CULTURE,
- 'describe' => '品牌文化',
- ],
- self::ORDER_CANCEL => [
- 'value' => self::ORDER_CANCEL,
- 'describe' => '未支付订单',
- ],
- self::PROVIDER_SETTLEMENT => [
- 'value' => self::PROVIDER_SETTLEMENT,
- 'describe' => '供应商结算',
- ],
- self::REFUND => [
- 'value' => self::REFUND,
- 'describe' => '售后及佣金结算',
- ],
- self::COMMISSION => [
- 'value' => self::COMMISSION,
- 'describe' => '分销员分佣配置',
- ],
- self::DISTRIBUTOR => [
- 'value' => self::DISTRIBUTOR,
- 'describe' => '顾客购物折扣配置',
- ],
- self::SHOPS => [
- 'value' => self::SHOPS,
- 'describe' => '门店自提订单配置',
- ],
- self::DISTRIBUTOR_GRADE => [
- 'value' => self::DISTRIBUTOR_GRADE,
- 'describe' => '分销员推广佣金配置',
- ],
- self::DISTRIBUTOR_STEP => [
- 'value' => self::DISTRIBUTOR_STEP,
- 'describe' => '分销员推广阶梯达量奖励配置',
- ],
- self::MEMBER_GROWTH => [
- 'value' => self::MEMBER_GROWTH,
- 'describe' => 'VIP会员成长值配置',
- ],
- self::POINTS_RATE => [
- 'value' => self::MEMBER_GROWTH,
- 'describe' => '荣旺积分配置',
- ],
- ];
- }
- }
|