diff --git a/index.php b/index.php index d3df71e..6b0e885 100644 --- a/index.php +++ b/index.php @@ -55,8 +55,8 @@ class run extends publicBase { if (!$is_need_login) return true; - $app_uid = $_SESSION['app_uid']; - $app_name = $_SESSION['app_name']; + $app_uid = $_SESSION['app_uid'] = 1; + $app_name = $_SESSION['app_name'] = 'pdd95960343564'; if (empty($app_uid) || empty($app_name)) { $pobj = new mPdd(); diff --git a/view/templates/index/home.html b/view/templates/index/home.html index 87c72f1..1e5b142 100644 --- a/view/templates/index/home.html +++ b/view/templates/index/home.html @@ -251,8 +251,6 @@ function getChartsData3(type, day, obj) { } function createCharts(charts_dates, charts_values, value_name) { - var girdLeft = 55; - if($(document).width()<=750) girdLeft = 10; var myChart = echarts.init(document.getElementById('admin-map-container')); // var monthList = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']; @@ -267,7 +265,7 @@ function createCharts(charts_dates, charts_values, value_name) { }, }, grid:{ - left:girdLeft, + left:55, top:74, width:'90%', height:226, @@ -321,6 +319,10 @@ function createCharts(charts_dates, charts_values, value_name) { ] }; // 使用刚指定的配置项和数据显示图表。 + + if($(document).width()<=750) { + option.grid.left = 40; + } myChart.setOption(option); }