文件
yjyf/server/application/admin/model/CommissionRule.php

62 行
1.4 KiB
PHP

<?php
namespace app\admin\model;
use think\Model;
class CommissionRule extends Model
{
protected $name = 'commission_rule';
protected $autoWriteTimestamp = 'integer';
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
protected $deleteTime = false;
public function getOrderModeList(): array
{
return [
'all' => '不限订单类型',
'fixed' => '一口价',
'quote' => '师傅报价',
'custom' => '业主自主出价',
'range' => '区间定价',
];
}
public function getCustomerTypeList(): array
{
return [
'all' => '不限下单人',
'personal' => '个人下单',
'merchant' => '企业商家',
];
}
public function getUrgentModeList(): array
{
return [
'all' => '不限是否加急',
'normal' => '仅普通单',
'urgent' => '仅加急单',
];
}
public function getCalcModeList(): array
{
return [
'percent' => '按比例抽成 (%)',
'fixed' => '每单固定收费 (元)',
'mixed' => '按比例 + 每单固定费',
];
}
public function getStatusList(): array
{
return [
'normal' => '启用',
'hidden' => '停用',
];
}
}