diff --git a/pmcalendar.php b/pmcalendar.php index fa1ffc4..a85086b 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -2022,8 +2022,27 @@ if ($act == 'newevent') { $('#data_box').hide(); $("#echarts-time").hide(); $('#datarepairname').html('查看统计'); + $("#dataimg").attr("src",'assets/images/tongji.png'); $('#calendardiv').show(); + $.ajax({ + url: './?app=pmcalendar&act=getEvents', + dataType: 'json', + data: { + start: Math.round(starttime.getTime() / 1000), + end: Math.round(endtime.getTime() / 1000), + game: showGame + }, + success: function (doc) { + console.log(doc); + $("#dabaonum").html("("+doc.count['打包']+")"); + $("#gengxinnum").html("("+doc.count['版本更新']+")"); + $("#xiufunum").html("("+doc.count['修复外网']+")"); + $("#jeidiannum").html("("+doc.count['节点']+")"); + $("#shangxainnum").html("("+ doc.count['上线'] +")"); + + } + }); } }