init: 从宝塔同步到 Gitea
This commit is contained in:
Executable
+419
@@ -0,0 +1,419 @@
|
||||
<!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 type="text/css">
|
||||
.layui-form-radio{margin-right:-20px;margin-left:10px;}
|
||||
.layui-form-label {
|
||||
width: 140px;
|
||||
}
|
||||
/* 下拉多选样式 需要引用*/
|
||||
select[multiple]+.layui-form-select dd{ padding:0;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary]{ margin:0 !important; display:block; line-height:36px !important; position:relative; padding-left:26px;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary] span{line-height:36px !important; float:none;}
|
||||
select[multiple]+.layui-form-select .layui-form-checkbox[lay-skin=primary] i{ position:absolute; left:10px; top:0; margin-top:9px;}
|
||||
.multiSelect{ line-height:normal; height:auto; padding:4px 10px; overflow:hidden;min-height:38px; margin-top:-38px; left:0; z-index:99;position:relative;background:none;}
|
||||
.multiSelect a{ padding:2px 5px; background:#908e8e; border-radius:2px; color:#fff; display:block; line-height:20px; height:20px; margin:2px 5px 2px 0; float:left;}
|
||||
.multiSelect a span{ float:left;}
|
||||
.multiSelect a i{ float:left; display:block; margin:2px 0 0 2px; border-radius:2px; width:8px; height:8px; background:url('/static/agent/lib/layui/close.png') no-repeat center; background-size:65%; padding:4px;}
|
||||
.multiSelect a i:hover{ background-color:#545556;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_parent" class="layui-form-label">{$lang['directly_under']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_parent" value="{$agentParent.username}({$agentParent.nickname})"
|
||||
autocomplete="off" class="layui-input layui-username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">{$lang['username']}</label>
|
||||
<?php if(!empty($newLetter)): ?>
|
||||
<div class="layui-input-inline" style="width: 240px;">
|
||||
<div style="width: 70px;float: left;">
|
||||
<select id="letter">
|
||||
<?php foreach($newLetter as $key=>$letter): ?>
|
||||
<option value="<?=$letter?>"><?=$letter?></option>
|
||||
<?php endForeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input" style="width:150px; float: left">
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="layui-input-inline">
|
||||
<input type="hidden" id="letter" value="">
|
||||
<input type="text" id="username" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php endIf; ?>
|
||||
<button class="layui-btn" type="button" id="createUsername">{$lang['automatically']}</button>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="password" class="layui-form-label">{$lang['password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="password" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="repassword" class="layui-form-label">{$lang['confirm_password']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="repassword" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label for="username" class="layui-form-label">手机</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="username" class="layui-form-label">投注方式</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="bet_type" autocomplete="off" class="layui-select">
|
||||
<option value="3">全部</option>
|
||||
<option value="2">电话投注</option>
|
||||
<option value="1">网络投注</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low" class="layui-form-label">{$lang['min_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low" autocomplete="off" class="layui-input" value="{$agentParent.limit_low}">
|
||||
</div>
|
||||
<label for="limit_high" class="layui-form-label">{$lang['max_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high" autocomplete="off" class="layui-input" value="{$agentParent.limit_high}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_tie" class="layui-form-label">{$lang['min_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_tie" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_tie}">
|
||||
</div>
|
||||
<label for="limit_high_tie" class="layui-form-label">{$lang['max_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_tie" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_tie}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_pair" class="layui-form-label">{$lang['min_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_pair}">
|
||||
</div>
|
||||
<label for="limit_high_pair" class="layui-form-label">{$lang['max_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_pair}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_nn}">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_nn}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 信用线展示码率 -->
|
||||
<?php if($user_info['agent_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv" class="layui-form-label">{$lang['baccarat']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" value="{$agentParent.agent_ximalv}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_baccacat_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_dt" class="layui-form-label">{$lang['dt']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_dt" value="{$agentParent.agent_ximalv_dt}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_dt_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_dt}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_nn" class="layui-form-label">{$lang['cow']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_nn" value="{$agentParent.agent_ximalv_nn}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_cow_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_nn}%</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="display: none;">
|
||||
<label for="agent_ximalv_tc" class="layui-form-label">{$lang['three_card']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_tc" value="{$agentParent.agent_ximalv_tc}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_tc_word']}(%)。{$lang['default']} {$agentParent.agent_ximalv_tc}%</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_cs" class="layui-form-label">{$lang['share_ratio']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_cs" value="0" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_rate_word']}(%)。{$lang['default']} {$agentParent.agent_cs}%</div>
|
||||
</div>
|
||||
|
||||
<!-- 现金线展示返水 -->
|
||||
<?php if($user_info['agent_type'] == 1) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="rebate_rate" class="layui-form-label">{$lang['rebate_rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="rebate_rate" value="0" autocomplete="off"
|
||||
class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">{$lang['limit_rate_word']}(%)。{$lang['default']} {$agentParent.rebate_rate}%</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($user_info['bet_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="manager_list" class="layui-form-label">{$lang['manager']}</label>
|
||||
<div class="layui-input-inline" style="width: 550px;">
|
||||
<select name="manager_list" id="manager_list" autocomplete="off" class="layui-select" multiple>
|
||||
<option value="">{$lang['select_manager']}</option>
|
||||
{foreach name="manager_list" item="vo"}
|
||||
<option value={$vo.id} >{$vo.nickname}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
<input type="hidden" id="parent_id" value="{$agentParent.id}">
|
||||
<input type="hidden" id="parent_bet_type" value="{$agentParent.bet_type}">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var lang = {$jsonlang};
|
||||
// 系统随机生成用户名
|
||||
$('#createUsername').click(function(){
|
||||
var rand = '';
|
||||
var num = '';
|
||||
for(var i = 0; i < 6; i++){
|
||||
num = Math.floor(Math.random() * 10);
|
||||
rand += num;
|
||||
}
|
||||
$('#username').val(rand);
|
||||
});
|
||||
|
||||
// 提交添加会员
|
||||
$('#submit').click(function(){
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.parent_id = $('#parent_id').val();
|
||||
query.letter = $('#letter').val();
|
||||
query.username = $('#username').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.password = $('#password').val();
|
||||
query.repassword = $('#repassword').val();
|
||||
query.mobile = $('#mobile').val();
|
||||
query.bet_type = $('#bet_type').val();
|
||||
query.limit_low = $('#limit_low').val();
|
||||
query.limit_high = $('#limit_high').val();
|
||||
query.limit_low_tie = $('#limit_low_tie').val();
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.type_xima = $('#xima_type').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
query.agent_ximalv_tc = $('#agent_ximalv_tc').val() || 0;
|
||||
query.agent_cs = $('#agent_cs').val();
|
||||
query.rebate_rate = $('#rebate_rate').val() || 0;
|
||||
query.manager_list = $('#manager_list').val() || [];
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if(query.username.length == 0 || query.username == undefined){
|
||||
layer.alert(lang.empty_username,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
query.username = query.letter+query.username;//重新定义username
|
||||
if(query.nickname.length == 0 || query.nickname == undefined){
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length == 0 || query.password == undefined){
|
||||
layer.alert(lang.empty_password,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password.length < 6){
|
||||
layer.alert(lang.new_pass_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.password != query.repassword){
|
||||
layer.alert(lang.pass_diff,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low.length == 0 || query.limit_low == undefined){
|
||||
layer.alert(lang.empty_min_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high.length == 0 || query.limit_high == undefined){
|
||||
layer.alert(lang.empty_max_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_tie.length == 0 || query.limit_low_tie == undefined){
|
||||
layer.alert(lang.empty_min_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_tie.length == 0 || query.limit_high_tie == undefined){
|
||||
layer.alert(lang.empty_max_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_pair.length == 0 || query.limit_low_pair == undefined){
|
||||
layer.alert(lang.empty_min_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_pair.length == 0 || query.limit_high_pair == undefined){
|
||||
layer.alert(lang.empty_max_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.type_xima == ''){
|
||||
layer.alert(lang.empty_wash_type,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
layer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_dt.length == 0 || query.agent_ximalv_dt == undefined){
|
||||
layer.alert(lang.empty_dt_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_nn.length == 0 || query.agent_ximalv_nn == undefined){
|
||||
layer.alert(lang.empty_cow_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_tc.length == 0 || query.agent_ximalv_tc == undefined){
|
||||
layer.alert(lang.empty_tc_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_cs.length == 0 || query.agent_cs == undefined){
|
||||
layer.alert(lang.empty_proportion,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
var parent_bet_type = $('#parent_bet_type').val();
|
||||
if(parent_bet_type == 2){
|
||||
if(query.manager_list.length == 0){
|
||||
layer.alert(lang.select_manager,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
query.manager_list = query.manager_list.join(",");
|
||||
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url:'/agent/do_add',
|
||||
data:query,
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else if(data.code == 1){
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
},function(index){
|
||||
layer.close(index);
|
||||
x_admin_show(lang.agent_list,'/agent/index?username='+query.username);
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,72 @@
|
||||
<!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]-->
|
||||
</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="/agent/delete" method="get">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
<input type="hidden" name="agent_parent_id" value="{$user_info.id}">
|
||||
<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">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th style="width:15%;">{$lang['recent_recharge']}</th>
|
||||
<th style="width:15%;">{$lang['account_balance']}</th>
|
||||
<th style="width:20%;">{$lang['baccarat']}/{$lang['dt']}/{$lang['cow']}/{$lang['three_card']} {$lang['washing_rate']}</th>
|
||||
<th>{$lang['proportion']}</th>
|
||||
<th>{$lang['create_time']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$agent_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.agent_ximalv}/{$vo.agent_ximalv_dt}/{$vo.agent_ximalv_nn}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.reg_time}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($agent_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$agent_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+288
@@ -0,0 +1,288 @@
|
||||
<!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 type="text/css">
|
||||
.layui-form-radio{margin-right:-20px;margin-left:10px;}
|
||||
.layui-form-label {
|
||||
width: 140px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label for="nickname" class="layui-form-label">{$lang['nickname']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="nickname" autocomplete="off" class="layui-input" value="{$user.nickname}">
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">手机</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobile" autocomplete="off" class="layui-input" value="{$user.mobile}">
|
||||
</div>
|
||||
<label class="layui-form-label">投注方式</label>
|
||||
<div class="layui-input-inline">
|
||||
<select type="text" id="bet_type" autocomplete="off" class="layui-select">
|
||||
<option value="3" <?php if($user['bet_type'] == 3) echo 'selected="selected"'; ?>>全部</option>
|
||||
<option value="2" <?php if($user['bet_type'] == 2) echo 'selected="selected"'; ?>>电话投注</option>
|
||||
<option value="1" <?php if($user['bet_type'] == 1) echo 'selected="selected"'; ?>>网络投注</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low" class="layui-form-label">{$lang['min_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low" autocomplete="off" value="{$user.limit_low}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high" class="layui-form-label">{$lang['max_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high" autocomplete="off" value="{$user.limit_high}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_tie" class="layui-form-label">{$lang['min_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_tie" autocomplete="off" value="{$user.limit_low_tie}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high_tie" class="layui-form-label">{$lang['max_tie_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_tie" autocomplete="off" value="{$user.limit_high_tie}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_pair" class="layui-form-label">{$lang['min_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_pair" autocomplete="off" value="{$user.limit_low_pair}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high_pair" class="layui-form-label">{$lang['max_pair_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" value="{$user.limit_high_pair}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" value="{$user.limit_low_nn}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" value="{$user.limit_high_nn}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 信用线展示码率 -->
|
||||
<?php if($user['agent_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv" class="layui-form-label">{$lang['baccarat']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv" value="{$user.agent_ximalv}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<label for="agent_ximalv_dt" class="layui-form-label">{$lang['dt']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_dt" value="{$user.agent_ximalv_dt}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_ximalv_nn" class="layui-form-label">{$lang['cow']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_nn" value="{$user.agent_ximalv_nn}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="display: none;">
|
||||
<label for="agent_ximalv_tc" class="layui-form-label">{$lang['three_card']} {$lang['rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_ximalv_tc" value="{$user.agent_ximalv_tc}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="layui-form-item">
|
||||
<label for="agent_cs" class="layui-form-label">{$lang['share_ratio']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="agent_cs" value="{$user.agent_cs}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php if($user['agent_type'] == 1) : ?>
|
||||
<label for="rebate_rate" class="layui-form-label" >{$lang['rebate_rate']}(%)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="rebate_rate" value="{$user.rebate_rate}" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="remark" class="layui-form-label">{$lang['remark']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea type="text" id="remark" autocomplete="off" class="layui-textarea">{$user.remarks}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<button class="layui-btn" type="button" id="submit">立即提交</button>-->
|
||||
<span style="display:block;margin:10px auto;height: 38px;line-height: 38px;padding: 0 18px;background-color: #AA947D;width:100px;color: #fff;white-space: nowrap;text-align: center;font-size: 14px;border: none;border-radius: 2px;cursor: pointer;" id="submit" >{$lang['submit_now']}</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="parent_id" value="{$user.agent_parent_id}">
|
||||
<input type="hidden" id="user_id" value="{$user.id}">
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
var lang = {$jsonlang};
|
||||
// 提交编辑代理
|
||||
$('#submit').click(function () {
|
||||
// 获取数据
|
||||
var query = new Object();
|
||||
query.parent_id = $('#parent_id').val();
|
||||
query.user_id = $('#user_id').val();
|
||||
query.nickname = $('#nickname').val();
|
||||
query.mobile = $('#mobile').val();
|
||||
//query.bet_type = $('#bet_type').val();
|
||||
query.limit_low = $('#limit_low').val();
|
||||
query.limit_high = $('#limit_high').val();
|
||||
query.limit_low_tie = $('#limit_low_tie').val();
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
query.agent_ximalv_tc = $('#agent_ximalv_tc').val() || 0;
|
||||
query.agent_cs = $('#agent_cs').val();
|
||||
query.rebate_rate = $('#rebate_rate').val() || 0;
|
||||
query.remark = $('#remark').val();
|
||||
|
||||
// 验证数据
|
||||
if (query.nickname.length == 0 || query.nickname == undefined) {
|
||||
layer.alert(lang.empty_nickname,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
/*
|
||||
if (query.bet_type.length == 0 || query.bet_type == undefined) {
|
||||
layer.alert('请选择投注方式');
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
if(query.limit_low.length == 0 || query.limit_low == undefined){
|
||||
layer.alert(lang.empty_min_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high.length == 0 || query.limit_high == undefined){
|
||||
layer.alert(lang.empty_max_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_tie.length == 0 || query.limit_low_tie == undefined){
|
||||
layer.alert(lang.empty_min_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_tie.length == 0 || query.limit_high_tie == undefined){
|
||||
layer.alert(lang.empty_max_tie_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_pair.length == 0 || query.limit_low_pair == undefined){
|
||||
layer.alert(lang.empty_min_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_pair.length == 0 || query.limit_high_pair == undefined){
|
||||
layer.alert(lang.empty_max_pair_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
ayer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_dt.length == 0 || query.agent_ximalv_dt == undefined){
|
||||
layer.alert(lang.empty_dt_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_nn.length == 0 || query.agent_ximalv_nn == undefined){
|
||||
layer.alert(lang.empty_cow_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv_tc.length == 0 || query.agent_ximalv_tc == undefined){
|
||||
layer.alert(lang.empty_tc_rate,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// 发送数据给后台创建代理
|
||||
$.ajax({
|
||||
url: '/agent/do_edit',
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
success: function (data) {
|
||||
if (data.code == 0) {
|
||||
layer.msg(data.msg);
|
||||
} else if (data.code == 1) {
|
||||
layer.alert(data.msg,{
|
||||
title:lang.message,
|
||||
}, function () {
|
||||
x_admin_close();
|
||||
parent.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,270 @@
|
||||
<!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"/> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<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;}
|
||||
.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="/agent/index" method="get">
|
||||
<input type="hidden" name="agent_id" value="{$user_info.id}">
|
||||
<div class="search-box margin-bottom">
|
||||
<div class="gap">
|
||||
<span>{$lang['username']}:</span>
|
||||
<input type="text" name="username" placeholder="{$lang['username']}" autocomplete="off" class="layui-input search-input" value="<?php if(isset($get['username'])) echo $get['username']; ?>">
|
||||
</div>
|
||||
<div class="gap">
|
||||
<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'; ?>>
|
||||
</div>
|
||||
<div class="gap">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="layui-form" style="overflow: auto;">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{$lang['username']}</th>
|
||||
<th>{$lang['nickname']}</th>
|
||||
<th>{$lang['recent_up_score']}</th>
|
||||
<th>{$lang['account_balance']}</th>
|
||||
<th>{$lang['under_all_balance']}</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>{$lang['proportion']}%</th>
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<th>{$lang['rebate_rate']}%</th>
|
||||
<?php endif; ?>
|
||||
<th>{$lang['create_time']}</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 style="width:45%;">{$lang['operate']}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="$agent_list" item="vo"}
|
||||
<tr class="<?php if($vo['id'] == $user_info['id']) echo 'self'; ?>">
|
||||
<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.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.all_money}</td>
|
||||
<td>{$vo.ximalv}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<?php if($user_info['top_agent_type'] == 1) : ?>
|
||||
<td>{$vo.rebate_rate}</td>
|
||||
<?php endif; ?>
|
||||
<td>{$vo.reg_time}</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">
|
||||
<?php if($vo['id'] == $user_info['id']): ?>
|
||||
<div class="layui-form">
|
||||
<input type="checkbox" lay-skin="switch" lay-text="{$lang['enable']}|{$lang['ban']}" disabled <?php if($vo['status'] == 1) echo 'checked="checked"'; ?> >
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<td class="td-manage">
|
||||
<?php if($user_info['bet_type'] == 2): ?>
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$vo.nickname}({$vo.username}) > {$lang.manager}','/manager/manager_list?agent_id={$vo.id}')">{$lang['manager']}</a>
|
||||
<?php endif; ?>
|
||||
{if condition="$vo.childMember == true"}
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$vo.nickname}({$vo.username}) > {$lang.subordinate_members}','/player/index?agent_id={$vo.id}')">{$lang['subordinate_members']}</a>
|
||||
{else}
|
||||
<a class="layui-btn layui-operation child-false" href="javascript:;">{$lang['subordinate_members']}</a>
|
||||
{/if}
|
||||
{if condition="$vo.childAgent == true && $vo.id != $user_info.id"}
|
||||
<a class="layui-btn layui-operation child-true" href="javascript:;" onclick="x_admin_show('{$vo.nickname}({$vo.username}) > {$lang.subordinate_members}','/agent/index?agent_id={$vo.id}')">{$lang['subordinate_agents']}</a>
|
||||
{else}
|
||||
<a class="layui-btn layui-operation child-false" href="javascript:;">{$lang['subordinate_agents']}</a>
|
||||
{/if}
|
||||
{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(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})','/agent/edit?user_id={$vo.id}')">{$lang['account_editing']}</a>
|
||||
<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}
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('{$lang.add_agent} > {$vo.username}({$vo.nickname})','/agent/add?parent_id={$vo.id}')">{$lang['add_agent']}</a>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('{$lang.add_member} > {$vo.username}({$vo.nickname})','/player/add?parent_id={$vo.id}')">{$lang['add_member']}</a>
|
||||
<?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; ?>
|
||||
<a class="layui-btn layui-operation child-add" href="javascript:;" style="background:#5291bf;" onclick="x_admin_show('占股结算 > {$vo.username}({$vo.nickname})','/settle/cs?user_id={$vo.id}')">占股结算</a>
|
||||
<?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($agent_list) == 0): ?>
|
||||
<div style="text-align:center;width:100%;">{$lang['no_data']}</div>
|
||||
<?php else: ?>
|
||||
<div class="page">{$agent_list->render()}</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
var lang = {$jsonlang};
|
||||
// 归属类型切换
|
||||
$(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,{icon:1,title:lang.message,});
|
||||
}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(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
/*禁止ios缩放,双击和双指*/
|
||||
window.onload=function () {
|
||||
document.addEventListener('touchstart',function (event) {
|
||||
if(event.touches.length>1){
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
var lastTouchEnd=0;
|
||||
document.addEventListener('touchend',function (event) {
|
||||
var now=(new Date()).getTime();
|
||||
if(now-lastTouchEnd<=300){
|
||||
event.preventDefault();
|
||||
}
|
||||
lastTouchEnd=now;
|
||||
},false);
|
||||
document.addEventListener('gesturestart', function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user