diff --git a/protected/views/reportsGooglePlayReferrer/index.php b/protected/views/reportsGooglePlayReferrer/index.php index 4b85a11..56d94ec 100644 --- a/protected/views/reportsGooglePlayReferrer/index.php +++ b/protected/views/reportsGooglePlayReferrer/index.php @@ -2,6 +2,11 @@ $yesterday = date('Y-m-d', time() - 86400); $today = date('Y-m-d'); +if($_GET['date']){ + $today = $_GET['date']; + $yesterday = date('Y-m-d', strtotime($today) - 86400); +} + function loadSubchannelCounts($table_name, $field_name, $date) { $counts = array(); @@ -29,14 +34,14 @@ function loadSubchannelCounts($table_name, $field_name, $date) { ?> -

Google Play 子渠道分布

+

Google Play 子渠道分布

medium (Google) / site (AppsFlyer)

- + @@ -57,7 +62,7 @@ function loadSubchannelCounts($table_name, $field_name, $date) { - + @@ -96,7 +101,7 @@ function loadSubchannelCounts($table_name, $field_name, $date) { - + @@ -117,7 +122,7 @@ function loadSubchannelCounts($table_name, $field_name, $date) { - + @@ -148,4 +153,15 @@ function loadSubchannelCounts($table_name, $field_name, $date) { else this.href += "?external_site_id=" + external_site_id; }); } + + $("input[type=date]").change(function(){ + var date = $(this).val(); + var url = window.location.href; + if(url.indexOf('?') != -1){ + window.location.href = url + "&date=" + date; + }else{ + window.location.href = url + "?date=" + date; + } + }); + }); \ No newline at end of file
渠道子渠道子渠道 总设备数 昨日新增 昨日活跃
渠道CampaignCampaign 总设备数 昨日新增 昨日活跃