From f144c32610435fa94517b3c54c0ef04bd44379df Mon Sep 17 00:00:00 2001 From: qianhy Date: Tue, 21 Feb 2023 11:11:03 +0800 Subject: [PATCH] app main display --- admin/controllers/app/liche/Main.php | 23 +++++++++++++---------- admin/controllers/app/licheb/Main.php | 8 ++++---- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/admin/controllers/app/liche/Main.php b/admin/controllers/app/liche/Main.php index ad653b65..0b67fa64 100644 --- a/admin/controllers/app/liche/Main.php +++ b/admin/controllers/app/liche/Main.php @@ -58,6 +58,19 @@ class Main extends HD_Controller ), ); + $this->load->model('auto/auto_introduce_model', 'mdAutoIntroduce'); + $value = $this->mdAutoIntroduce->count(["status<>-1" => null, 'brand_id in (select id from lc_auto_brand where status > -1)' => null]); + $list[] = array( + 'title' => '车型介绍(条)', + 'value' => $value, + 'btns' => array( + array('name' => '查看详情', 'url' => '/auto/introduce'), + ), + ); + + $conditions[] = array('icon' => 'am-icon-home', 'list' => $list); + + $list = []; $value = $this->mdBlindBox->count(['status>' => -1]); $list[] = array( 'title' => '盲盒抽奖(个)', @@ -140,16 +153,6 @@ class Main extends HD_Controller ), );*/ - $this->load->model('auto/auto_introduce_model', 'mdAutoIntroduce'); - $value = $this->mdAutoIntroduce->count(["status<>-1" => null, 'brand_id in (select id from lc_auto_brand where status > -1)' => null]); - $list[] = array( - 'title' => '车型介绍(条)', - 'value' => $value, - 'btns' => array( - array('name' => '查看详情', 'url' => '/auto/introduce'), - ), - ); - $conditions[] = array('icon' => 'am-icon-home', 'list' => $list); /*实时数据 end*/ diff --git a/admin/controllers/app/licheb/Main.php b/admin/controllers/app/licheb/Main.php index ec03e3dc..6ea66083 100644 --- a/admin/controllers/app/licheb/Main.php +++ b/admin/controllers/app/licheb/Main.php @@ -66,8 +66,8 @@ class Main extends HD_Controller ); $conditions[] = array('icon' => 'am-icon-home', 'list' => $list); - $list = array(); - /*$value = $this->mdSytLive->count(['status>' => -1]); + /*$list = array(); + $value = $this->mdSytLive->count(['status>' => -1]); $list[] = array( 'title' => '私域通-直播(个)', 'value' => $value, @@ -98,7 +98,7 @@ class Main extends HD_Controller 'btns' => array( array('name' => '查看详情', 'url' => '/live/polyv'), ), - );*/ + ); $value = $this->mdBizsLog->count(); $list[] = array( 'title' => '门店日志', @@ -108,7 +108,7 @@ class Main extends HD_Controller ), ); $conditions[] = array('icon' => 'am-icon-user', 'list' => $list); - + */ /*小程序设置 end*/ /*实时数据 end*/