From 691f23590c92606b9215530e9db1d379242b93e7 Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Tue, 15 Dec 2020 18:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmcalendar.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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['上线'] +")"); + + } + }); } }