|
@@ -1516,15 +1516,29 @@ HTML;
|
|
|
'date' => '今日'
|
|
|
];
|
|
|
$integralService = app()->make(UserAwardIntegralServices::class);
|
|
|
- $info = array_values(compact('sales', 'visits', 'order', 'user'));
|
|
|
+
|
|
|
+ $lack = [
|
|
|
+ 'today' => $integralService->getLake('today'),
|
|
|
+ 'yesterday' => $integralService->getLake('yesterday'),
|
|
|
+ 'today_ratio' => $user_today_ratio,
|
|
|
+// 'week' => $this_week_user,
|
|
|
+// 'last_week' => $last_week_user,
|
|
|
+// 'week_ratio' => $user_week_ratio,
|
|
|
+ 'total' => $integralService->getLake() . '元',
|
|
|
+ 'date' => '今日'
|
|
|
+ ];
|
|
|
+
|
|
|
+ $info = array_values(compact('sales', 'visits', 'order', 'user', 'lack'));
|
|
|
$info[0]['title'] = '销售额';
|
|
|
$info[1]['title'] = '用户访问量';
|
|
|
$info[2]['title'] = '订单量';
|
|
|
$info[3]['title'] = '新增用户';
|
|
|
+ $info[3]['title'] = '资金池';
|
|
|
$info[0]['total_name'] = '本月销售额';
|
|
|
$info[1]['total_name'] = '本月访问量';
|
|
|
$info[2]['total_name'] = '本月订单量';
|
|
|
$info[3]['total_name'] = '本月新增用户';
|
|
|
+ $info[3]['total_name'] = '资金池累计';
|
|
|
return $info;
|
|
|
}
|
|
|
|