init: 从宝塔同步到 Gitea

This commit is contained in:
root
2026-02-25 01:50:31 +08:00
commit e633c8e27d
2444 changed files with 399341 additions and 0 deletions
+272
View File
@@ -0,0 +1,272 @@
{include file="public/header"}
<style>
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
.x-body .layui-row .xblock button{ margin-top:-20px; }
.x-body .layui-form{ margin-top:15px; margin-bottom:10px; }
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
.layui-input-block dl{ text-align:left; }
.x-so{ margin:0; }
.x-so input.layui-input{ width:150px; }
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
.change_box .actived{border-right:1px solid #e5e5e5;border-left:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative; color: #3daae9; }
.change_box .actived:after{content: ""; bottom: -2px; background: #fff; width: 100%; height: 5px; position: absolute; left: 0; }
.change_box a{font-size: 14px;padding: 10.5px 10px;}
.alert{position:fixed; top:15%; left:30%; width:600px; min-height:320px; background:#fff; border:1px solid #e2e2e2; border-radius:5px; display:none;}
.alert-title{background:#009688; height:40px; text-align: center; line-height:40px; font-size:14px; border-bootom:1px solid #F2F2F2;color:#fff;}
.alert-main th{width:40%; border-left:none; text-align:right;}
.alert-main td{border-right:none; }
.alert-footer{padding:20px; text-align:center;}
.alert-footer span{padding:10px 30px; display:inline-block; border-radius:5px; cursor:pointer;}
</style>
<body>
<div class="x-nav" style="padding: 0px;">
<span class="change_box">
<a href="javascript:;" class="list-one actived" data-id="1">代理列表</a>
<?php if($user_info['role'] == 0) : ?>
<a href="javascript:;" class="list-two" data-id="2">代理添加</a>
<?php endif; ?>
</span>
<a class="layui-btn layui-btn-small refresh" style="line-height:1.6em;margin-top:3px;float:right"
href="javascript:location.replace(location.href);" title="刷新">
<i class="layui-icon" style="line-height:30px"></i></a>
</div>
<br>
<div class="x-body">
<div class="layui-row">
<form class="layui-form layui-col-md12 x-so float-left" action="/agent/index" method="get">
<?php if(isset($get['id']) && $get['id'] > 0) : ?>
<?php else : ?>
<input type="text" name="username" id="username" placeholder="请输入总代理的用户名" autocomplete="off" class="layui-input" value="<?php if(isset($get['username'])) {echo $get['username'];} ?>">
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
<?php endif; ?>
<!--<span class="layui-btn" id="export">导出 excel</span>-->
</form>
</div>
<table class="layui-table">
<thead>
<tr>
<th>用户名</th>
<th>联系人</th>
<th>上级代理</th>
<th>投注方式</th>
<th>最近上分</th>
<th>商户余额</th>
<th>百/龙/牛/三卡 码率(%)</th>
<th>占成(%)</th>
<th>日赢上限</th>
<th>赔率</th>
<th>创建日期</th>
<th>操作</th>
<th>查看</th>
</tr>
</thead>
<tbody>
{foreach name="agent_list" item="vo"}
<tr>
<td><a href="javascript:;" class="relation" onclick="x_admin_show('关系结构','/index/relation?id={$vo.id}',400,500)">{$vo.username}</a></td>
<td>{$vo.nickname}</td>
{if condition="$vo.agent_parent_id > 0"}
<td>{$vo.agent_parent_username}</td>
{else}
<td>-</td>
{/if}
<td>{$vo.bet_type}</td>
<td>{$vo.last_recharge}</td>
<td>{$vo.money}</td>
<td>{$vo.ximalv}</td>
<td>{$vo.agent_cs}</td>
<td>{$vo.win_limit}</td>
<th>
<a href="javascript:;" onclick="showPrice(this)" price-username="{$vo.username}" price-banker="{$vo.price_banker}" price-player="{$vo.price_player}" price-tie-baccarat="{$vo.price_tie_baccarat}" price-pair="{$vo.price_pair}" price-dragon="{$vo.price_dragon}" price-tiger="{$vo.price_tiger}" price-tie-dt="{$vo.price_tie_dt}" price-n0-n6="{$vo.price_n0_n6}" price-n7-n9="{$vo.price_n7_n9}" price-nn="{$vo.price_nn}" price-5n="{$vo.price_5n}" price-bomb="{$vo.price_bomb}" price-tc-n1="{$vo.price_tc_n1}" price-tc-n2="{$vo.price_tc_n2}" price-tc-n3="{$vo.price_tc_n3}" price-tc-n4="{$vo.price_tc_n4}" price-tc-n5="{$vo.price_tc_n5}" price-tc-n6="{$vo.price_tc_n6}" price-tc-n7="{$vo.price_tc_n7}" price-tc-n8="{$vo.price_tc_n8}" price-tc-n9="{$vo.price_tc_n9}" price-tc-nn="{$vo.price_tc_nn}" price-tc-bz="{$vo.price_tc_bz}" price-tc-ths="{$vo.price_tc_ths}" price-tc-hjths="{$vo.price_tc_hjths}">
<span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#009688;" >查看</span>
</a>
</th>
<td>{$vo.reg_time}</td>
<td class="td-manage">
<a href="/agent/agent_edit?agent_id={$vo.id}"><span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#009688;">修改</span></a>
<a onclick="member_del(this,'{$vo.id}')" href="javascript:;"><span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#ff5050;">删除</span></a>
</td>
<td style="color: red;">
<?php if($vo['agent'] == 1) : ?>
<span ><a href="/agent/index?id={$vo.id}" style="color: #1E9FFF;">查看下级</a></span>
<?php endif; ?>
</td>
</tr>
{/foreach}
</tbody>
</table>
{$agent_list->render()}
</div>
<div class="alert" id="alert_price">
<div class="alert-title" id="show_price_username"></div>
<div class="alert-main">
<table class="layui-table" style="margin:0;">
<tr><th>押庄赔率:</th><td id="show_price_banker"></td></tr>
<tr><th>押闲赔率:</th><td id="show_price_player"></td></tr>
<tr><th>押和赔率(百家乐):</th><td id="show_price_tie_baccarat"></td></tr>
<tr><th>押对子赔率:</th><td id="show_price_pair"></td></tr>
<tr><th>押龙赔率:</th><td id="show_price_dragon"></td></tr>
<tr><th>押虎赔率:</th><td id="show_price_tiger"></td></tr>
<tr><th>押和赔率(龙虎斗):</th><td id="show_price_tie_dt"></td></tr>
<tr><th>押无牛-牛6赔率:</th><td id="show_price_n0_n6"></td></tr>
<tr><th>押牛7-牛9赔率:</th><td id="show_price_n7_n9"></td></tr>
<tr><th>押牛牛赔率:</th><td id="show_price_nn"></td></tr>
<tr><th>押五公赔率:</th><td id="show_price_5n"></td></tr>
<tr><th>押四条赔率:</th><td id="show_price_bomb"></td></tr>
<tr><th>押牛一赔率(三卡)</th><td id="show_price_tc_n1"></td></tr>
<tr><th>押牛二赔率(三卡)</th><td id="show_price_tc_n2"></td></tr>
<tr><th>押牛三赔率(三卡)</th><td id="show_price_tc_n3"></td></tr>
<tr><th>押牛四赔率(三卡)</th><td id="show_price_tc_n4"></td></tr>
<tr><th>押牛五赔率(三卡)</th><td id="show_price_tc_n5"></td></tr>
<tr><th>押牛六赔率(三卡)</th><td id="show_price_tc_n6"></td></tr>
<tr><th>押牛七赔率(三卡)</th><td id="show_price_tc_n7"></td></tr>
<tr><th>押牛八赔率(三卡)</th><td id="show_price_tc_n8"></td></tr>
<tr><th>押牛九赔率(三卡)</th><td id="show_price_tc_n9"></td></tr>
<tr><th>押牛牛赔率(三卡)</th><td id="show_price_tc_nn"></td></tr>
<tr><th>押豹子赔率(三卡)</th><td id="show_price_tc_bz"></td></tr>
<tr><th>押同花顺赔率(三卡)</th><td id="show_price_tc_ths"></td></tr>
</table>
</div>
<div class="alert-footer">
<span onclick="hiddenForm('alert_price')" class="input_button" style="background:#009688; border:1px solid #e2e2e2;color:#fff;">关闭</span>
</div>
</div>
<script>
// 代理列表和添加代理切换
$('.x-nav .change_box a').click(function(){
// 样式切换
$('.x-nav .change_box a').removeClass('actived');
$(this).addClass('actived');
// 页面切换
var id = $(this).attr('data-id');
if(id == "1") location.href = '/agent/index';
if(id == "2") location.href = '/agent/agent_add';
});
/*用户-删除*/
function member_del(obj, id) {
layer.confirm('确认要删除吗?',function () {
// 数据验证
if(id <= 0){
layer.msg('删除用户出错!');
return false;
}
// 拼装数据
var query = new Object;
query.user_id = id;
// 发送数据到后台删除会员
var result = ajax('/agent/agent_del',query);
if(result.code == 1){
layer.msg(result.msg, {icon: 1, time: 1000},function(){
location.reload();
});
}else if(result.code == 0){
layer.msg(result.msg, {icon: 2, time: 1000});
}
});
}
/**
* 封装 AJAX 函数
* @param url 目标地址
* @param query 参数
* @returns {string}
*/
function ajax(url, query) {
var returnData = "";
$.ajax({
url: url,
data: query,
type: 'POST',
dataType: 'JSON',
async: false,
success: function (data) {
returnData = data;
}
});
return returnData;
}
// 导出excel
$('#export').click(function(){
layer.confirm('确定导出 excel 吗?',function(index){
location.href = "/agent/index?export=1&{$query}";
layer.close(index);
});
});
// 显示用户的赔率
function showPrice(obj){
// 获取赔率数据
var price_username = $(obj).attr('price-username');
var price_banker = $(obj).attr('price-banker');
var price_player = $(obj).attr('price-player');
var price_tie_baccarat = $(obj).attr('price-tie-baccarat');
var price_pair = $(obj).attr('price-pair');
var price_dragon = $(obj).attr('price-dragon');
var price_tiger = $(obj).attr('price-tiger');
var price_tie_dt = $(obj).attr('price-tie-dt');
var price_n0_n6 = $(obj).attr('price-n0-n6');
var price_n7_n9 = $(obj).attr('price-n7-n9');
var price_nn = $(obj).attr('price-nn');
var price_5n = $(obj).attr('price-5n');
var price_bomb = $(obj).attr('price-bomb');
var price_tc_n1 = $(obj).attr('price-tc-n1');
var price_tc_n2 = $(obj).attr('price-tc-n2');
var price_tc_n3 = $(obj).attr('price-tc-n3');
var price_tc_n4 = $(obj).attr('price-tc-n4');
var price_tc_n5 = $(obj).attr('price-tc-n5');
var price_tc_n6 = $(obj).attr('price-tc-n6');
var price_tc_n7 = $(obj).attr('price-tc-n7');
var price_tc_n8 = $(obj).attr('price-tc-n8');
var price_tc_n9 = $(obj).attr('price-tc-n9');
var price_tc_nn = $(obj).attr('price-tc-nn');
var price_tc_bz = $(obj).attr('price-tc-bz');
var price_tc_ths = $(obj).attr('price-tc-ths');
var price_tc_hjths = $(obj).attr('price-tc-hjths');
// 显示赔率数据
$('#show_price_username').html(price_username+" 的赔率");
$('#show_price_banker').html(price_banker);
$('#show_price_player').html(price_player);
$('#show_price_tie_baccarat').html(price_tie_baccarat);
$('#show_price_pair').html(price_pair);
$('#show_price_dragon').html(price_dragon);
$('#show_price_tiger').html(price_tiger);
$('#show_price_tie_dt').html(price_tie_dt);
$('#show_price_n0_n6').html(price_n0_n6);
$('#show_price_n7_n9').html(price_n7_n9);
$('#show_price_nn').html(price_nn);
$('#show_price_5n').html(price_5n);
$('#show_price_bomb').html(price_bomb);
$('#show_price_tc_n1').html(price_tc_n1);
$('#show_price_tc_n2').html(price_tc_n2);
$('#show_price_tc_n3').html(price_tc_n3);
$('#show_price_tc_n4').html(price_tc_n4);
$('#show_price_tc_n5').html(price_tc_n5);
$('#show_price_tc_n6').html(price_tc_n6);
$('#show_price_tc_n7').html(price_tc_n7);
$('#show_price_tc_n8').html(price_tc_n8);
$('#show_price_tc_n9').html(price_tc_n9);
$('#show_price_tc_nn').html(price_tc_nn);
$('#show_price_tc_bz').html(price_tc_bz);
$('#show_price_tc_ths').html(price_tc_ths);
$('#show_price_tc_hjths').html(price_tc_hjths);
$('#alert_price').show();
}
//点击隐藏表单弹窗
function hiddenForm(id) {
$('#' + id).hide();
}
</script>
</body>
</html>