zzwy2/view/manager/index/index.html

198 lines
8.9 KiB
HTML
Executable File

{layout name="manager/layout" /}
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md8">
<div class="layui-card">
<div class="layui-card-header">数据概览</div>
<div class="layui-card-body">
<div class="layui-row layui-col-space10">
<div class="layui-col-xs4">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-blue"></span>
<h5>总访问数量</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.visitLog/index">{$data.total ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
<div class="layui-col-xs4">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-orange"></span>
<h5>百度访问总计</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.visitLog/index">{$data.totalBaidu ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
<div class="layui-col-xs4">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-green"></span>
<h5>360访问总计</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.visitLog/index">{$data.total360 ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
<hr class="layui-border-green">
<div class="layui-col-xs4">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-cyan"></span>
<h5>今日访问总量</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.visitLog/index">{$data.todayTotal ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
<div class="layui-col-xs4">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-green"></span>
<h5>百度今日访问</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.visitLog/index">{$data.todayBaidu ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
<div class="layui-col-xs4">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-green"></span>
<h5>360今日访问</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.visitLog/index">{$data.today360 ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
<hr class="layui-border-green">
<!--
<div class="layui-col-xs4 layui-hide">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-cyan"></span>
<h5>今日留言</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.message/index">{$data.todayMessage ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
<div class="layui-col-xs4 layui-hide">
<div class="panel layui-bg-number">
<div class="panel-body">
<div class="panel-title">
<span class="label pull-right layui-bg-green"></span>
<h5>全部留言</h5>
</div>
<div class="panel-content">
<h1 class="no-margins"><a href="manager.message/index">{$data.totalMessage ?? 0}</a></h1>
<small></small>
</div>
</div>
</div>
</div>
</div>
-->
<!-- <div id="LAY-index-dataview"></div>-->
</div>
</div>
</div>
</div>
</div>
<script src="__MANAGER__/extend/echarts.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var dom = document.getElementById("LAY-index-dataview");
var myChart = echarts.init(dom);
var app = {};
var data = [
{name:'直接访问',time:'2020-03-23',number:320}
]
option = null;
option = {
title: {
text: ''
},
tooltip: {
trigger: 'axis',
},
legend: {
data: ['百度', '360']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
//saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
},
yAxis: {
type: 'value'
},
series: [
{
name: '百度',
type: 'line',
stack: '总量',
data: [0, 15, 38, 11, 390, 330, 320]
},
{
name: '360',
type: 'line',
stack: '总量',
data: [820, 932, 901, 934, 1290, 1330, 1320]
}
]
};
if (option && typeof option === "object") {
myChart.setOption(option, true);
}
window.addEventListener("resize",function (){
myChart.resize()
});
</script>