作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

order

... ... @@ -46,15 +46,15 @@ class AdminStatisticsController extends AdminBaseController{
//周统计
$week=array();
for ($i = 0; $i <= 15; $i++){
for ($i = 0; $i <= 30; $i++){
$week[15-$i]=strtotime(date('Ymd',strtotime("-$i week")));
}
$Week=array();
for ($i = 0; $i<15; $i++){
for ($i = 0; $i<30; $i++){
$Week[$i]=[$week[$i],$week[$i+1]];
}
$Week_statistics=array();
for ($i = 0; $i<15; $i++){
for ($i = 0; $i<30; $i++){
$Week_statistics[]=Db::name('order')->where('start_time','between',$Week[$i])->count();
}
$this->assign('weekData',json_encode($Week_statistics));
... ...
... ... @@ -432,7 +432,7 @@
realtime: true,
y : 220,
height: 20,
start : 0,
start : 50,
end : 100
},
... ...