258 lines
13 KiB
HTML
258 lines
13 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>{$lang['system_name']}</title>
|
||
<meta name="renderer" content="webkit">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
<meta name="viewport"
|
||
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
|
||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
||
<link rel="stylesheet" href="/static/agent/css/font.css">
|
||
<link rel="stylesheet" href="/static/agent/css/xadmin.css">
|
||
<script type="text/javascript" src="/static/agent/js/jquery.min.js"></script>
|
||
<script type="text/javascript" src="/static/agent/lib/layui/layui.js" charset="utf-8"></script>
|
||
<script type="text/javascript" src="/static/agent/js/xadmin.js"></script>
|
||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||
<!--[if lt IE 9]>
|
||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||
<![endif]-->
|
||
<style>
|
||
.relation{ text-decoration: underline;}
|
||
.relation:hover{ color:#807362}
|
||
.self{ background:rgb(199, 182, 151)}
|
||
.self:hover{ background:rgb(199, 182, 151) !important;}
|
||
.layui-form-radio{margin:0;}
|
||
.layui-table th{min-width:50px;}
|
||
.search-box .gap{display:inline-block;margin-right:20px;}
|
||
.search-box.margin-bottom{ margin-bottom:2px; }
|
||
.layui-form-switch em {
|
||
width: 45px;
|
||
}
|
||
.layui-form-onswitch i {
|
||
left: 48px;
|
||
}
|
||
.layui-form-switch {
|
||
width: 55px;
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<body class="iframeClass scroll-wrapper">
|
||
<!-- 遮罩loading -->
|
||
<div class="shadow"></div>
|
||
<img class="loading" src="/static/agent/images/loading.gif">
|
||
<div class="x-body">
|
||
<div class="layui-row">
|
||
<form class="layui-form layui-col-md12 x-so" action="/player/index" method="get">
|
||
<input type="hidden" name="agent_id" value="{$user_info.id}">
|
||
<span>{$lang['username']}:</span>
|
||
<input type="text" name="username" placeholder="{$lang['system_name']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||
<span class="margin-left">{$lang['attribution_type']}:</span>
|
||
<input class="is_under" type="radio" name="is_under" value="1" title="{$lang['all']}" <?php if(isset($get['is_under']) && $get['is_under'] == 1) echo 'checked'; ?>>
|
||
<input class="is_under" type="radio" name="is_under" value="2" title="{$lang['directly_under']}" <?php if(isset($get['is_under']) && $get['is_under'] == 2) echo 'checked'; ?>>
|
||
<button class="layui-btn search-btn" id="search" onclick="showShadow()">{$lang['search']}</button>
|
||
<a class="layui-btn search-btn" onclick="showShadow()" href="javascript:location.replace(location.href);">{$lang['refresh']}</a>
|
||
</form>
|
||
</div>
|
||
<div class="layui-form">
|
||
<table class="layui-table" style="min-width:1500px;">
|
||
<thead>
|
||
<tr>
|
||
<th>{$lang['username']}</th>
|
||
<th>{$lang['nickname']}</th>
|
||
<th>{$lang['superior_account']}</th>
|
||
<?php if($user_info['bet_type'] == 2) : ?>
|
||
<th>{$lang['manager']}</th>
|
||
<?php endif; ?>
|
||
<!--
|
||
<th>代理抽水</th>
|
||
-->
|
||
<th>{$lang['recent_up_score']}</th>
|
||
<th>{$lang['account_balance']}</th>
|
||
<th>{$lang['wash_type']}</th>
|
||
<!--
|
||
<th style="width:10%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}/{$lang['three_card']} {$lang['washing_rate']}%</th>-->
|
||
<th style="width:10%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']} {$lang['washing_rate']}%</th>
|
||
<!--
|
||
<th style="width:10%;">百/龙/牛牛/三宝上级代理抽水(%)</th>
|
||
<th style="width:10%;">三宝上级代理抽佣(%)</th>
|
||
-->
|
||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||
<th>{$lang['rebate_rate']}%</th>
|
||
<?php endif; ?>
|
||
<th style="width:13%;">{$lang['create_time']}</th>
|
||
<th style="width:8%;">{$lang['login_ip']}</th>
|
||
<th>{$lang['is_online']}</th>
|
||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||
<th>{$lang['online_recharge']}</th>
|
||
<!--<th>{$lang['title']}</th>-->
|
||
<?php if($user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||
<th style="width:10%">{$lang['wallet_address']}</th>
|
||
<?php endif; ?>
|
||
<th>{$lang['status']}</th>
|
||
<?php endif; ?>
|
||
<th>{$lang['operate']}</th>
|
||
</thead>
|
||
<tbody>
|
||
{foreach name="$player_list" item="vo"}
|
||
<tr>
|
||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('{$lang.relationship_structure}','/index/relation?id={$vo.id}',400,500)">{$vo.username}</a></td>
|
||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('{$lang.relationship_structure}','/index/relation?id={$vo.id}',400,500)">{$vo.nickname}</a></td>
|
||
<!--
|
||
<td><a href="javascript:;" class="relation">{$vo.username}</a></td>
|
||
<td><a href="javascript:;" class="relation">{$vo.nickname}</a></td>
|
||
-->
|
||
<td>{$vo.agentParent}</td>
|
||
<?php if($user_info['bet_type'] == 2) : ?>
|
||
<th>{$vo.manager_id}</th>
|
||
<?php endif; ?>
|
||
<!--
|
||
<td>{$vo.agent_commission}</td>
|
||
-->
|
||
<td>{$vo.last_recharge}</td>
|
||
<td>{$vo.money}</td>
|
||
<td>{$vo.type_xima_msg}</td>
|
||
<td>{$vo.ximalv}</td>
|
||
<!--
|
||
<td>{$vo.commission}</td>
|
||
<td>{$vo.commission_tc_banker}</td>
|
||
-->
|
||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||
<td>{$vo.rebate_rate}</td>
|
||
<?php endif; ?>
|
||
<td>{$vo.reg_time}</td>
|
||
<td>{$vo.last_login_ip}</td>
|
||
<td>
|
||
<?php if($vo['online'] == 1): ?>
|
||
<a class="layui-btn layui-operation child-true" href="javascript:;" >{$vo.onlineMsg}</a>
|
||
<?php else: ?>
|
||
<a class="layui-btn layui-operation child-false" href="javascript:;" >{$vo.onlineMsg}</a>
|
||
<?php endif; ?>
|
||
</td>
|
||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||
<td style="text-align:center;">{$vo.onlineRecharge}</td>
|
||
<!--<td style="text-align:center;">{$vo.onlineRechargeTitle}</td>-->
|
||
<?php if($user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||
<td style="text-align:center;">{$vo.wallet_address}</td>
|
||
<?php endif; ?>
|
||
<td class="td-status">
|
||
<div class="layui-form" onclick="changeStatus(this)">
|
||
<input type="checkbox" id="status_{$vo.id}" lay-skin="switch" lay-text="{$lang['enable']}|{$lang['ban']}" data-username="{$vo.username}" data-user-id="{$vo.id}" value="{$vo.status}" <?php if($vo['status'] == 1) echo 'checked="checked"'; ?>>
|
||
</div>
|
||
</td>
|
||
<?php endif; ?>
|
||
<td class="td-manage">
|
||
{if condition="$vo.id != $user_info.id"}
|
||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 2 || $user_info['account_type'] == 3) : ?>
|
||
|
||
<!--总代类型为 信用线-->
|
||
<?php if($user_info['top_agent_type'] == 2 || $user_info['top_agent_type'] == 0) : ?>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.recharge_withdrawal} > {$vo.username}({$vo.nickname})','/settle/recharge?id={$vo.id}')">{$lang['recharge_withdrawal']}</a>
|
||
<?php endif; ?>
|
||
|
||
<!--总代类型为 现金线 并且当前用户是总代-->
|
||
<?php if($user_info['top_agent_type'] == 1 && $user_info['agent_level'] == 1) : ?>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.recharge_withdrawal_2} > {$vo.username}({$vo.nickname})','/settle/recharge?id={$vo.id}')">{$lang['recharge_withdrawal_2']}</a>
|
||
<?php endif; ?>
|
||
|
||
<!--总代类型为 现金线-->
|
||
<?php if(empty($vo['wallet_address']) && $user_info['top_agent_type'] == 1 && $user_info['top_agent_pay_channel'] == "USDT") : ?>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="createWallet('{$vo.id}')">生成钱包地址</a>
|
||
<?php endif; ?>
|
||
|
||
<?php endif; ?>
|
||
<?php if($user_info['account_type'] == 0 || $user_info['account_type'] == 1 ): ?>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.account_editing} > {$vo.username}({$vo.nickname})','/player/edit?user_id={$vo.id}')">{$lang['account_editing']}</a>
|
||
<?php if($user_info['username'] == $wt_agent): ?>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.change_agent} > {$vo.username}({$vo.nickname})','/player/edit_agent?user_id={$vo.id}',500,500)">{$lang['change_agent']}</a>
|
||
<?php endif; ?>
|
||
<a class="layui-btn layui-operation" href="javascript:;" onclick="x_admin_show('{$lang.change_password} > {$vo.username}({$vo.nickname})','/index/password_child?id={$vo.id}')">{$lang['change_password']}</a>
|
||
<?php endif; ?>
|
||
{/if}
|
||
<?php if($user_info['top_agent_type'] == 2) : ?>
|
||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('洗码结算 > {$vo.username}({$vo.nickname})','/settle/xima?user_id={$vo.id}')">洗码结算</a>
|
||
<?php endif; ?>
|
||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('返水结算 > {$vo.username}({$vo.nickname})','/settle/rebate?user_id={$vo.id}&game_type=1')">真人返水</a>
|
||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('棋牌返水 > {$vo.username}({$vo.nickname})','/settle/rebate?user_id={$vo.id}&game_type=2')">棋牌返水</a>
|
||
<?php endif; ?>
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
<?php if(count($player_list) == 0): ?>
|
||
<div style="text-align:center;width:100%;"></div>
|
||
<?php else: ?>
|
||
<div class="page">{$player_list->render()}</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
<script>
|
||
// 归属类型切换
|
||
$(document).on('click','.layui-form-radio',function(){
|
||
$('.search-btn').trigger('click');
|
||
});
|
||
// 用户启用/禁用
|
||
function changeStatus(obj){
|
||
obj = $(obj).find('input').eq(0);
|
||
// 拼装参数
|
||
var query = new Object();
|
||
query.username = $(obj).attr('data-username');
|
||
query.user_id = $(obj).attr('data-user-id');
|
||
query.status = $(obj).val();
|
||
|
||
// 发送后台
|
||
$.ajax({
|
||
url:'/index/change_status_child',
|
||
data:query,
|
||
type:'POST',
|
||
dataType:'JSON',
|
||
success:function(data){
|
||
if(data.code == 1){
|
||
var agentChilds = data.agentChilds;
|
||
var updateStatus = data.updateStatus;
|
||
for(var i=0; i< agentChilds.length; i++){
|
||
var v = agentChilds[i];
|
||
$('#status_'+ v.id).val(updateStatus);
|
||
if(updateStatus == 1){
|
||
$('#status_'+ v.id).attr('checked','checked').next().addClass('layui-form-onswitch').find('em').html(lang.enable);
|
||
}else{
|
||
$('#status_'+ v.id).removeAttr('checked').next().removeClass('layui-form-onswitch').find('em').html(lang.ban);
|
||
}
|
||
}
|
||
layer.msg(data.msg,{title:lang.message,icon:1});
|
||
}else{
|
||
layer.msg(data.msg,{
|
||
title:lang.message,
|
||
},function(){});
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
// 生成钱包
|
||
function createWallet(userId){
|
||
layer.confirm('确定为该用户生成钱包地址?',function(){
|
||
$.ajax({
|
||
url:'/agent/createWallet',
|
||
data:{user_id:userId},
|
||
type:'POST',
|
||
dataType:'JSON',
|
||
success:function(data){
|
||
if(data.code == 1){
|
||
layer.msg(data.msg,{icon:1});
|
||
}else{
|
||
layer.msg(data.msg,function(){});
|
||
}
|
||
}
|
||
});
|
||
})
|
||
}
|
||
</script>
|
||
</body>
|
||
|
||
</html> |