...
|
...
|
@@ -20,7 +20,7 @@ |
|
|
value="{$end_time|default=''}"
|
|
|
style="width: 140px;" autocomplete="off">
|
|
|
<input type="submit" class="btn btn-primary" value="搜索" onclick="getData()"/>
|
|
|
<a class="btn btn-danger" href="{:url('Statistics/getmoney')}">清空</a>
|
|
|
<span class="btn btn-danger" onclick="all()" >清空</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="container" style="min-width:400px;height:400px">
|
...
|
...
|
@@ -36,6 +36,7 @@ |
|
|
var chart ;
|
|
|
var pie_user ;
|
|
|
var pie_member ;
|
|
|
var pie_all ;
|
|
|
var start_time = $('.start_time').val();
|
|
|
var end_time = $('.end_time').val();
|
|
|
function GetDateStr(AddDayCount) {
|
...
|
...
|
@@ -65,10 +66,11 @@ |
|
|
_member = Object.assign([],data.data.member);
|
|
|
pie_user = data.data.pie_user;
|
|
|
pie_member = data.data.pie_member;
|
|
|
pie_all = data.data.pie_member + data.data.pie_user;
|
|
|
// 图表
|
|
|
chart = Highcharts.chart('container', {
|
|
|
title: {
|
|
|
text: '注册统计图表'
|
|
|
text: '奖励金额统计图表'
|
|
|
},
|
|
|
xAxis: {
|
|
|
categories: timeList,
|
...
|
...
|
@@ -82,7 +84,7 @@ |
|
|
},
|
|
|
labels: {
|
|
|
items: [{
|
|
|
html: '即时数据/筛选结果',
|
|
|
html: "即时数据/筛选结果(共"+pie_all+"元)",
|
|
|
style: {
|
|
|
left: '100px',
|
|
|
top: '18px',
|
...
|
...
|
|