From f06a592dd1a7e995bf313ccb5efe7dff73ccfc4e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 12 四月 2023 18:25:52 +0800 Subject: [PATCH] 增加本地获取IP归属地/广告优化 --- src/main/webapp/admin/new/shuju.html | 86 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 86 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/admin/new/shuju.html b/src/main/webapp/admin/new/shuju.html index 8e0c729..18e6b61 100644 --- a/src/main/webapp/admin/new/shuju.html +++ b/src/main/webapp/admin/new/shuju.html @@ -60,6 +60,29 @@ </div> </div> </div> + + <div class="row"> + <div class="col-md-12"> + <div class="card1"> + <div class="content"> + + <div class="footer"> + <div class="legend" style="display: flex;justify-content: space-between"> + <h4>浠婃棩瑙嗛鎼滅储鏁版嵁TOP50</h4> + <button type="button" id="refresh_search" class="btn btn-default">鍒锋柊</button> + </div> + <hr> + </div> + + <div> + <div id="container_search" style="min-width:400px;height: 1800px;"></div> + </div> + + </div> + </div> + </div> + </div> + <div class="row"> <div class="col-md-12"> <div class="card1"> @@ -138,6 +161,52 @@ }); } + function fillSearchData(names, datas) { + $('#container_search').highcharts({ + chart: { + type: 'bar' + }, + title: { + text: '鎼滅储鐢ㄦ埛鏁�' + }, + xAxis: { + categories: names, + }, + yAxis: { + min: 0, + labels: { + overflow: 'justify' + } + }, + + plotOptions: { + bar: { + dataLabels: { + enabled: true + } + } + }, + legend: { + layout: 'vertical', + align: 'right', + verticalAlign: 'top', + x: -40, + y: 100, + floating: true, + borderWidth: 1, + backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'), + shadow: true + }, + credits: { + enabled: false + }, + series: [{ + name: '鎼滅储鐢ㄦ埛鏁�', + data: datas + }] + }); + } + function fillYData(data) { $("#rcount").html(data.data.rcount); $("#trcount").html(data.data.trcount); @@ -170,6 +239,23 @@ doResponse(data, fillYData(data)); }, 'json'); + $.post('api/statistics/gettopsearch', { + 'detailsystem': 0 + }, function(data) { + doResponse(data,fillSearchData(data.data.name, data.data.count)); + }, 'json'); + + //鍒锋柊鎼滅储鍏抽敭瀛� + $("#refresh_search").click(function () { + $.post('api/statistics/refreshtopsearch', { + 'detailsystem': 0 + }, function(data) { + doResponse(data,function(){ + + }); + }, 'json'); + }); + }); </script> </body> -- Gitblit v1.8.0