You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
167 lines
9.7 KiB
HTML
167 lines
9.7 KiB
HTML
2 years ago
|
<extend name="Public/manage" />
|
||
|
<block name="head">
|
||
|
<link href="__CSS__/user_zxy.css" rel="stylesheet">
|
||
|
<script src="__JS__/bootstrap-select.min.js"></script>
|
||
|
<script src="__JS__/zh-cn.js"></script>
|
||
|
<script src="__JS__/echarts-all.js"></script>
|
||
|
<script src="__JS__/chart.js"></script>
|
||
|
<script src="__JS__/jquery.tablesorter.js"></script>
|
||
|
<script src="__JS__/string.js"></script>
|
||
|
<script src="__JS__/datacommon.js"></script>
|
||
|
<script src="__JS__/retain.js"></script>
|
||
|
</block>
|
||
|
<block name="location">
|
||
|
<a class="z_nav" href="{:U('Stats/retention')}">数据统计</a>
|
||
|
<a class="z_nav curt_nav" href="{:U('Stats/loss')}">流失分析</a>
|
||
|
</block>
|
||
|
<block name="body" >
|
||
|
<div class="matter_right_content border_right">
|
||
|
<div class="title"><i class="liushi_icon"></i><span>流失数据</span></div>
|
||
|
<div class="matter_box matter_box2 clearfix">
|
||
|
<div class="input-inline">
|
||
|
<form class="form-inline form_left formwidth120 clearfix search-form">
|
||
|
<div class="form-group form-group-sm pull-left">
|
||
|
<select class="form-control fwsub selectpicker" name="game_id" id="youxi_name" data-live-search="true">
|
||
|
<option value="">游戏名称</option>
|
||
|
<volist name=":getDevelopGameList(UID)" id="vo">
|
||
|
<option value="{$vo.id}">{$vo.game_name}</option>
|
||
|
</volist>
|
||
|
</select>
|
||
|
<input type="hidden" class="url_l" value="{:U('Stats/loss')}">
|
||
|
</div>
|
||
|
<div class="form-group form-group-sm pull-left lose_type">
|
||
|
<select id="lose_type" name="channel_id" class="form-control fwsub fserver selectpicker" >
|
||
|
<option value="1">连续3天不登录</option>
|
||
|
<option value="2">连续7天不登录</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="form-group form-group-sm pull-left margl_23">
|
||
|
<div class="input-group">
|
||
|
<input id="startDate" class="form-control fwsub hasDatepicker" type="text" name="time_start" value="{:empty(I('time_start')) ? date('Y-m-d',strtotime('-6day')) : I('time_start')}" placeholder="{:date('Y-m-d',strtotime('-6day'))}">
|
||
|
<span class="arrow_icon"></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group form-group-sm pull-left">
|
||
|
<div class="input-group">
|
||
|
<input id="endDate" class="form-control fwsub hasDatepicker" type="text" name="time_end" value="{:empty(I('time_end')) ? date('Y-m-d') : I('time_end')}" placeholder="{:date('Y-m-d')}">
|
||
|
<span class="arrow_icon"></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group form-group-sm pull-left" style="margin-right: 0;">
|
||
|
<div class="input-group">
|
||
|
<a class="btn btn_primary user_btn user_btn3" href="javascript:void(0);" id="search">查询</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<ul class="nav nav-pills" role="tablist" id="generalTabs">
|
||
|
<li role="presentation" data-cate="1" class="<empty name='Think.get.cate'>active<else /><eq name='Think.get.cate' value='1'>active</eq></empty>" data-toggle="tooltip" data-placement="bottom" data-original-title="玩家流失分析">
|
||
|
<a href="#lossPlayer" aria-controls="lossPlayer" role="tab" data-toggle="tab" data="lossPlayer">玩家流失</a>
|
||
|
</li>
|
||
|
<li role="presentation" data-cate="2" class="<eq name='Think.get.cate' value='2'>active</eq>" data-toggle="tooltip" data-placement="bottom" data-original-title="流失金额分析">
|
||
|
<a href="#lossMoney" aria-controls="lossMoney" role="tab" data-toggle="tab" data="lossMoney">流失金额分析</a>
|
||
|
</li>
|
||
|
<li role="presentation" data-cate="3" class="<eq name='Think.get.cate' value='3'>active</eq>" data-toggle="tooltip" data-placement="bottom" data-original-title="流失次数分析">
|
||
|
<a href="#lossTimes" aria-controls="lossTimes" role="tab" data-toggle="tab" data="lossTimes">流失次数分析</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="matter_box matter_box2">
|
||
|
<div class="matter_mt-4">
|
||
|
<div class="tab-content matter_mt">
|
||
|
<div role="tabpanel" class="tab-pane <empty name='Think.get.cate'>active<else /><eq name='Think.get.cate' value='1'>active</eq></empty>" id="lossPlayer">
|
||
|
<div class="row f-mlr-0">
|
||
|
<div id="lossPlayerChart" style="height: 350px; padding-top: 10px; -webkit-tap-highlight-color: transparent; user-select: none; background-color: rgba(0, 0, 0, 0); cursor: default;" >
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div role="tabpanel" class="tab-pane <eq name='Think.get.cate' value='2'>active</eq>" id="lossMoney">
|
||
|
<div class="row f-mlr-0">
|
||
|
<div id="lossMoneyChart" style="height:350px;padding-top:10px;"></div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div role="tabpanel" class="tab-pane <eq name='Think.get.cate' value='3'>active</eq>" id="lossTimes">
|
||
|
<div class="row f-mlr-0">
|
||
|
<div id="lossTimesChart" style="height:350px;padding-top:10px;"></div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script src="__JS__/usersLost.js"></script>
|
||
|
<script>
|
||
|
Think.setValue('game_id',"{:I('game_id')}");
|
||
|
Think.setValue('channel_id',"{:I('channel_id')}");
|
||
|
$('.tabtitle .jbtn').on('click',function() {
|
||
|
var that = $(this),href = that.attr('href');
|
||
|
that.addClass('active').siblings().removeClass('active');
|
||
|
$(href).removeClass('hidden').siblings().addClass('hidden');
|
||
|
});
|
||
|
|
||
|
$.VMenu.show('#menu');
|
||
|
$.VMenu.open('m3.3');
|
||
|
|
||
|
$(function() {
|
||
|
$('input[name=time_start]').datetimepicker({
|
||
|
format: 'yyyy-mm-dd',
|
||
|
language:"zh-CN",
|
||
|
minView:2,
|
||
|
autoclose:true
|
||
|
});
|
||
|
|
||
|
$('input[name=time_end]').datetimepicker({
|
||
|
format: 'yyyy-mm-dd',
|
||
|
language:"zh-CN",
|
||
|
minView:2,
|
||
|
autoclose:true
|
||
|
});
|
||
|
|
||
|
$('#youxi_name').selectpicker({
|
||
|
size: 15
|
||
|
|
||
|
});
|
||
|
$('#lose_type').selectpicker({
|
||
|
size: 15
|
||
|
|
||
|
});
|
||
|
});
|
||
|
$('#search').click(function(){
|
||
|
var url= $('.url_l').val();
|
||
|
var query = $('.search-form').find('input').serialize();
|
||
|
query += "&"+$('.search-form').find('select').serialize();
|
||
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
||
|
query = query.replace(/&/g,'/');
|
||
|
query = query.replace(/=/g,'/');
|
||
|
url=url.replace('.html','/'+query);
|
||
|
url += '/cate/'+$.trim($('#generalTabs li.active').attr('data-cate'));
|
||
|
location.href = url;
|
||
|
})
|
||
|
|
||
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
var dataJson = {"lossplayer":{"loss":{"2016-12-13":9,"2016-12-14":24,"2016-12-15":32,"2016-12-16":28,"2016-12-17":42,"2016-12-18":18,"2016-12-19":18},"lossrate":{"2016-12-13":9,"2016-12-14":35,"2016-12-15":67,"2016-12-16":59,"2016-12-17":45,"2016-12-18":55,"2016-12-19":23}},"lossmoney":{"2016-12-13":13,"2016-12-14":32,"2016-12-15":40,"2016-12-16":37,"2016-12-23":24,"2016-12-24":23,"2016-12-25":23},"losstimes":{"2016-12-13":4,"2016-12-14":8,"2016-12-15":8,"2016-12-16":9,"2016-12-17":4,"2016-12-18":2,"2016-12-26":4}};
|
||
|
var dataJson = {$json_data};
|
||
|
</script>
|
||
|
<switch name="Think.get.cate">
|
||
|
<case value='2'><script>lossMoneyChart();</script></case>
|
||
|
<case value='3'><script>lossTimesChart();</script></case>
|
||
|
<default />
|
||
|
<script>
|
||
|
lossPlayerChart();
|
||
|
</script>
|
||
|
</switch>
|
||
|
</block>
|