Parcourir la source

控制台首页

shish il y a 6 ans
Parent
commit
c2f12d65ff
1 fichiers modifiés avec 21 ajouts et 5 suppressions
  1. 21 5
      app/business/controllers/ConsoleController.php

+ 21 - 5
app/business/controllers/ConsoleController.php

@@ -2,13 +2,12 @@
 
 
 namespace business\controllers;
 namespace business\controllers;
 
 
-use biz\merchant\services\MerchantAssetService;
 use Yii;
 use Yii;
 use common\components\util;
 use common\components\util;
 
 
 class ConsoleController extends BaseController
 class ConsoleController extends BaseController
 {
 {
-
+	
 	//概况 shish 2019.12.19
 	//概况 shish 2019.12.19
 	public function actionProfile()
 	public function actionProfile()
 	{
 	{
@@ -16,8 +15,25 @@ class ConsoleController extends BaseController
 		$notice = [
 		$notice = [
 			['title' => '您还没有绑定公众号', 'action' => '立即绑定', 'url' => 'http://www.test.com'],
 			['title' => '您还没有绑定公众号', 'action' => '立即绑定', 'url' => 'http://www.test.com'],
 		];
 		];
-		$todayData = ['visit' => rand(9, 99), 'fans' => rand(9, 99), 'user' => rand(9, 99),'income'=>rand(11,999)];
-		util::success(['asset' => $asset, 'notice' => $notice, 'todayData' => $todayData,'admin'=>['avatar'=>'http://a.huahb.com/images/avatar.jpg']]);
+		$todayData = ['visit' => rand(9, 99), 'fans' => rand(9, 99), 'user' => rand(9, 99), 'income' => rand(11, 999), 'order' => rand(111, 999)];
+		$incomeStat = [
+			'month' => 1999,
+			'week' => 999,
+			'list' => ['7.1' => 100, '7.2' => 200, '7.3' => 300, '7.4' => 400, '7.5' => 500],
+		];
+		$visitStat = [
+			'month' => 1999,
+			'week' => 999,
+			'list' => ['7.1' => 100, '7.2' => 200, '7.3' => 300, '7.4' => 400, '7.5' => 500],
+		];
+		util::success([
+			'asset' => $asset,
+			'notice' => $notice,
+			'todayData' => $todayData,
+			'admin' => ['avatar' => 'http://a.huahb.com/images/avatar.jpg'],
+			'visitStat' => $visitStat,
+			'incomeStat' => $incomeStat,
+		]);
 	}
 	}
-
+	
 }
 }