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

order

... ... @@ -41,7 +41,8 @@ class AdminStatisticsController extends AdminBaseController{
for ($i = 0; $i<15; $i++){
$Week_statistics[]=Db::name('order')->where('start_time','between',$where[$i])->count();
}
dump($Week_statistics);
$this->assign('weekData',json_encode($Week_statistics));
$month=array();
for ($i = 0; $i <= 24; $i++){
... ...
... ... @@ -111,11 +111,15 @@
//周统计
var weekDataX = ["第一周","第二周","第三周","第四周","第五周","第六周", "第七周",
"第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"];
var weekDataY = {$weekData};
var axisData = ["第一周","第二周","第三周","第四周","第五周","第六周", "第七周",
"第八周","第九周","第十周","第十一周","第十二周","第十三周","第十四周","第十五周"];
var myData = {$weekData};
var myData = [1,52,35,46,75,82,15,43,65,35,25,41,83,75,98];
function GetData(){
var myData = [];
... ... @@ -487,7 +491,7 @@
{
type : 'category',
boundaryGap : true,
data : axisData
data : weekDataX
}
],
yAxis : [
... ... @@ -503,7 +507,7 @@
type:'line',
//stack: '人数',
barWidth : 10,
data:myData
data:weekDataY
}
]
};
... ...