|
|
|
|
<extend name="Public/promote_base"/>
|
|
|
|
|
<block name="css">
|
|
|
|
|
<link href="__CSS__/20180207/data.css" rel="stylesheet">
|
|
|
|
|
<link href="__CSS__/20180207/finance.css" rel="stylesheet">
|
|
|
|
|
<link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet">
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.selected-color {
|
|
|
|
|
color: #2bd8ed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pointer-hand {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-spend {
|
|
|
|
|
position: relative;
|
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
top: 3px;
|
|
|
|
|
float: right;
|
|
|
|
|
right: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
|
<div class="page-search normal_list query-register-search jssearch">
|
|
|
|
|
<div class="trunk-title">
|
|
|
|
|
<div class="location">
|
|
|
|
|
<div class="location-container">当前位置:<span>数据管理></span><span>注册明细</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<img src="__IMG__/20180207/icon_zhuce.png">
|
|
|
|
|
<span class="title_main">注册明细</span>
|
|
|
|
|
<span class="details">对所有渠道用户玩家产生的注册信息,进行记录的功能</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="trunk-content article">
|
|
|
|
|
<div class="trunk-search clearfix">
|
|
|
|
|
<!-- <form action="{:U('Query/register',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data">-->
|
|
|
|
|
<if condition="$thisParentPromoteId eq 0">
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<select id="team_leader_id" name="team_leader_id" class="reselect select_gallery" style="min-width:130px;">
|
|
|
|
|
<option value="0">组长账号</option>
|
|
|
|
|
<volist name=":getAllPromoteListByType(2)" id="vo">
|
|
|
|
|
<option value="{$vo.id}">{$vo['account']}({$vo['real_name']})</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<eq name="pID|isMinPromote" value="0">
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<select id="promote_id" name="promote_id" class="reselect select_gallery" style="min-width:130px;">
|
|
|
|
|
<option value="0">推广员账号</option>
|
|
|
|
|
<notempty name="teamLeaderData">
|
|
|
|
|
<volist name="teamLeaderData" id="vo">
|
|
|
|
|
<option value="{$vo.id}">{$vo['account']}({$vo['real_name']})</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</notempty>
|
|
|
|
|
<volist name=":getAllPromoteListByType(3,false,empty(I('team_leader_id'))?PID:I('team_leader_id'))" id="vo">
|
|
|
|
|
<option value="{$vo.id}">{$vo['account']}({$vo['real_name']})</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</eq>
|
|
|
|
|
|
|
|
|
|
<div class="form-group fl">
|
|
|
|
|
<input type="text" name="account" class="txt normal_txt" placeholder="请输入玩家账号"
|
|
|
|
|
value="{:I('account')}">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group fl">
|
|
|
|
|
<input type="text" name="id" class="txt normal_txt" placeholder="请输入玩家ID"
|
|
|
|
|
value="{:I('id')}">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<label class="form-title select-title" style="position: relative;">起止时间:</label>
|
|
|
|
|
<div class="select-time">
|
|
|
|
|
<input type="text" id="sdate" class="txt" name="begtime" placeholder="开始时间" value="{:I('begtime')}">
|
|
|
|
|
</div>
|
|
|
|
|
<label class="form-title select-title zhi_color"> — </label>
|
|
|
|
|
<div class="select-time">
|
|
|
|
|
<input type="text" id="edate" class="txt" name="endtime" placeholder="结束时间" value="{:I('endtime')}">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fl">
|
|
|
|
|
<input type="submit" class="submit" id='submit' url="{:U('Query/register','model='.$model['name'],false)}"
|
|
|
|
|
value="查询">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fl" style="margin-left: 60px;">
|
|
|
|
|
<label style="line-height: 34px;cursor: pointer;" id="own">
|
|
|
|
|
<i class="iconfont {:empty(I('own_id'))?'iconfangxingweixuanzhong':'iconfangxingxuanzhongfill selected-color'}" style="font-size: 1.5rem;position: relative;top: 3px;margin-right: 2px;"></i>本账号
|
|
|
|
|
<input type="hidden" name="own_id" id="own_id" value="{:empty(I('own_id'))?0:I('own_id')}" />
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- </form>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="page-list query-register-list">
|
|
|
|
|
<div class="trunk-content article">
|
|
|
|
|
<div class="trunk-list list_normal" style="">
|
|
|
|
|
<table class="table normal_table">
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
<th>玩家账号</th>
|
|
|
|
|
<th>推广账号</th>
|
|
|
|
|
<th>设备IMIE/IDFA</th>
|
|
|
|
|
<th>注册时间</th>
|
|
|
|
|
<th>注册IP</th>
|
|
|
|
|
<th>最近登录时间</th>
|
|
|
|
|
<th>最近登陆IP</th>
|
|
|
|
|
<th>操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<empty name="listData">
|
|
|
|
|
<tr class="num2">
|
|
|
|
|
<td colspan="8" style="text-align: center;height: 45vh;">
|
|
|
|
|
<img src="__IMG__/20180207/icon_wushujv2.png"/>
|
|
|
|
|
<p style="line-height: 40px;color: #A5A5A5;">暂无数据</p>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<else/>
|
|
|
|
|
<volist name="listData" id="vo">
|
|
|
|
|
<tr class="num2">
|
|
|
|
|
<td>{$vo.account}</td>
|
|
|
|
|
<td>{$vo.promote_account}({$vo.pro_real_name})</td>
|
|
|
|
|
<td>{$vo.device_number}</td>
|
|
|
|
|
<td>{$vo.register_time|date='Y-m-d H:i:s',###}</td>
|
|
|
|
|
<td>{$vo.register_ip}</td>
|
|
|
|
|
<td>{$vo.new_login_time}</td>
|
|
|
|
|
<td>{$vo.new_login_ip}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a href="{:U('Query/viewRole',array('id'=>$vo['id']))}" style="cursor: pointer"
|
|
|
|
|
class="chakan">查看角色</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</volist>
|
|
|
|
|
</empty>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagenation clearfix">
|
|
|
|
|
{$_page}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
<block name="script">
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
|
|
|
|
|
charset="UTF-8"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$().ready(function () {
|
|
|
|
|
setValue('team_leader_id', {$Think.request.team_leader_id |default = '""'});
|
|
|
|
|
setValue('promote_id', {$Think.request.promote_id |default = 0});
|
|
|
|
|
setValue('row', '{:I("get.row",10)}');
|
|
|
|
|
|
|
|
|
|
var date = "{$setdate}";
|
|
|
|
|
$('#sdate').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
autoclose: true,
|
|
|
|
|
scrollMonth: false,
|
|
|
|
|
scrollTime: false,
|
|
|
|
|
scrollInput: false,
|
|
|
|
|
endDate: date
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#edate').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language: "zh-CN",
|
|
|
|
|
minView: 2,
|
|
|
|
|
autoclose: true,
|
|
|
|
|
pickerPosition: 'bottom-left',
|
|
|
|
|
scrollMonth: false,
|
|
|
|
|
scrollTime: false,
|
|
|
|
|
scrollInput: false,
|
|
|
|
|
endDate: date
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#team_leader_id').change(function () {
|
|
|
|
|
var promoteId = parseInt($(this).val());
|
|
|
|
|
var promoteValue = $(this).find("option:selected").text();
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('getChildPromoteList')}",
|
|
|
|
|
type: "post",
|
|
|
|
|
data: {promote_id:promoteId},
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function (data) {
|
|
|
|
|
var html = "<option value='' selected>推广员账号</option>";
|
|
|
|
|
|
|
|
|
|
if (promoteId > 0) {
|
|
|
|
|
html += "<option value='" + promoteId + "'>" + promoteValue + "</option>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (data.status == 1) {
|
|
|
|
|
var promoteData = data.data;
|
|
|
|
|
|
|
|
|
|
if (promoteData.length > 0) {
|
|
|
|
|
for (var i in promoteData) {
|
|
|
|
|
html += "<option value='" + promoteData[i]['id'] + "'>" + promoteData[i]['account'] + "(" + promoteData[i]['real_name'] + ")</option>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#promote_id").empty();
|
|
|
|
|
$('#promote_id').html(html);
|
|
|
|
|
$("#promote_id").select2();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#own').on('click',function () {
|
|
|
|
|
var ownId = $('#own_id').val();
|
|
|
|
|
var checkBox = $(this).children('i');
|
|
|
|
|
|
|
|
|
|
if (ownId > 0) {
|
|
|
|
|
checkBox.removeClass('iconfangxingxuanzhongfill');
|
|
|
|
|
checkBox.removeClass('selected-color');
|
|
|
|
|
checkBox.addClass('iconfangxingweixuanzhong');
|
|
|
|
|
|
|
|
|
|
$('#own_id').val(0);
|
|
|
|
|
} else {
|
|
|
|
|
checkBox.removeClass('iconfangxingweixuanzhong');
|
|
|
|
|
checkBox.addClass('iconfangxingxuanzhongfill');
|
|
|
|
|
checkBox.addClass('selected-color');
|
|
|
|
|
|
|
|
|
|
$('#own_id').val({$pID});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#pagehtml a").on("click", function (event) {
|
|
|
|
|
event.preventDefault();//使a自带的方法失效,即无法调整到href中的URL(http://www.baidu.com)
|
|
|
|
|
var geturl = $(this).attr('href');
|
|
|
|
|
$('#data_form').attr('action', geturl);
|
|
|
|
|
$('#data_form').submit();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
$('#submit').click(function () {
|
|
|
|
|
var sdate = $('#sdate').val();
|
|
|
|
|
var edate = $('#edate').val();
|
|
|
|
|
if (Date.parse(sdate) > Date.parse(edate)) {
|
|
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
console.log(url);
|
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
|
query += "&" + $('.jssearch').find('select').serialize();
|
|
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
|
|
|
|
|
query = query.replace(/^&/g, '');
|
|
|
|
|
if (url.indexOf('?') > 0) {
|
|
|
|
|
url += '&' + query;
|
|
|
|
|
} else {
|
|
|
|
|
url += '?' + query;
|
|
|
|
|
}
|
|
|
|
|
window.location.href = url;
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|