修改专题推广

This commit is contained in:
lcc
2025-02-12 21:09:58 +08:00
parent d01a6c24a5
commit bfc20edc05
2 changed files with 9 additions and 5 deletions
@@ -10,8 +10,9 @@ class Market_sytopic_enroll_model extends HD_Model
const ENROLL_DEAL_PUSH_CUSTOMER = 2; // 提交狸车客户池
const STATUS_PENDING = 0; //待处理
const STATUS_SUCCESS = 1; //已成交
const STATUS_INVALID = 2; //无效
const STATUS_SHOP = 1; //已到店
const STATUS_SUCCESS = 2; //已成交
const STATUS_INVALID = 3; //无效
public function __construct()
{
@@ -67,9 +68,10 @@ class Market_sytopic_enroll_model extends HD_Model
public function statusCn()
{
$statusArray = [
self::STATUS_PENDING => '已到店',
self::STATUS_SUCCESS => '战败',
self::STATUS_INVALID => '无效'
self::STATUS_PENDING => '邀约中',
self::STATUS_SHOP => '已到店',
self::STATUS_SUCCESS => '已成交',
self::STATUS_INVALID => '战败'
];
return $statusArray;
}
@@ -221,6 +221,7 @@ class User extends Admin
{
$statusCn = $this->sytopic_enroll_model->statusCn();
$tabList = [['title' => '全部', 'type' => '']];
unset($statusCn[0]);
foreach ($statusCn as $key => $val) {
$tabList[] = [
'title' => $val,
@@ -264,6 +265,7 @@ class User extends Admin
$enrollModel = new Market_sytopic_enroll_model();
$status_array = [
$enrollModel::STATUS_PENDING => ['name' => $statusCn[$enrollModel::STATUS_PENDING], 'class' => 'bg-f8e26a'],
$enrollModel::STATUS_SHOP => ['name' => $statusCn[$enrollModel::STATUS_SHOP], 'class' => 'bg-f8e26a'],
$enrollModel::STATUS_SUCCESS => ['name' => $statusCn[$enrollModel::STATUS_SUCCESS], 'class' => 'bg-2fdc53'],
$enrollModel::STATUS_INVALID => ['name' => $statusCn[$enrollModel::STATUS_INVALID], 'class' => 'bg-f7']
];