|
@@ -7,7 +7,7 @@ use app\common\controller\Backend;
|
|
|
use think\Config;
|
|
|
use think\Hook;
|
|
|
use think\Validate;
|
|
|
-
|
|
|
+use think\Db;
|
|
|
|
|
|
* 后台首页
|
|
|
* @internal
|
|
@@ -31,12 +31,28 @@ class Index extends Backend
|
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
+ $wait = [
|
|
|
+ 'report' => Db::name('report')->where('status',0)->count(),
|
|
|
+ 'useridconfirm' => Db::name('user_idconfirm')->where('status',0)->count(),
|
|
|
+ 'takecash' => Db::name('take_cash')->where('status',0)->count(),
|
|
|
+ 'topicdongtai' => Db::name('topic_dongtai')->where('auit_status',0)->count(),
|
|
|
+ ];
|
|
|
+
|
|
|
|
|
|
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
|
|
|
|
|
|
'addon' => ['new', 'red', 'badge'],
|
|
|
'auth/rule' => __('Menu'),
|
|
|
'general' => ['new', 'purple'],*/
|
|
|
+
|
|
|
+
|
|
|
+ 'report' => $wait['report'],
|
|
|
+ 'useridconfirm' => $wait['useridconfirm'],
|
|
|
+ 'takecash' => $wait['takecash'],
|
|
|
+ 'topicdongtai' => $wait['topicdongtai'],
|
|
|
+
|
|
|
], $this->view->site['fixedpage']);
|
|
|
$action = $this->request->request('action');
|
|
|
if ($this->request->isPost()) {
|