app main display

This commit is contained in:
qianhy
2023-02-21 11:11:03 +08:00
committed by lccsw
parent cdbcc57238
commit f144c32610
2 changed files with 17 additions and 14 deletions
+13 -10
View File
@@ -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*/
+4 -4
View File
@@ -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*/