init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,183 @@
|
||||
{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:-5px;*/ padding: 10px 0; }
|
||||
.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:30%; left:30%; width:600px; min-height:320px; background:#fff; border:1px solid #e2e2e2; border-radius:5px; display:none;}
|
||||
.alert-title{background:#F2F2F2; height:40px; padding-left:30px; line-height:40px; font-size:14px; border-bootom:1px solid #F2F2F2;}
|
||||
.alert-main th{width:40%;}
|
||||
.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>
|
||||
</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="/xima/index" method="get">
|
||||
<input class="layui-input" placeholder="开始时间" name="startDate" id="start" value="<?php if(isset($get['startDate'])) {echo $get['startDate'];} ?>">
|
||||
<input class="layui-input" placeholder="结束时间" name="endDate" id="end" value="<?php if(isset($get['endDate'])) {echo $get['endDate'];} ?>">
|
||||
<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"></i></button>
|
||||
</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>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
{if condition="$vo.agent_parent_id > 0"}
|
||||
<td>{$vo.agent_parent_username}({$vo.agent_parent_nickname})</td>
|
||||
{else}
|
||||
<td>无</td>
|
||||
{/if}
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.agent_ximalv}</td>
|
||||
<td>{$vo.agent_ximalv_dt}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.totalXimaliang}</td>
|
||||
<td>{$vo.maliang}</td>
|
||||
<td>{$vo.noCheckoutMaliang}</td>
|
||||
<td>{$vo.checkoutMaliang}</td>
|
||||
<td>{$vo.last_xima_time}</td>
|
||||
<td class="td-manage">
|
||||
<a href="javascript:void(0);">
|
||||
<span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#ff5050;" href="javascript:void(0)" data-userid="{$vo.id}"
|
||||
data-username="{$vo.username}" data-nickname="{$vo.nickname}" data-maliang="{$vo.maliang}"
|
||||
data-agent_ximalv="{$vo.agent_ximalv}%" data-agent_ximalv_dt="{$vo.agent_ximalv_dt}%" data-checkoutMaliang="{$vo.checkoutMaliang}"
|
||||
data-noCheckoutMaliang="{$vo.noCheckoutMaliang}"
|
||||
data-lastCheckOutTime="{$vo.last_xima_time}"
|
||||
onclick="showXima(this,'alert_xima')">洗码</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{$agent_list->render()}
|
||||
</div>
|
||||
<div class="alert" id="alert_xima">
|
||||
<div class="alert-title">洗码</div>
|
||||
<div class="alert-main">
|
||||
<table class="layui-table" style="margin:0;">
|
||||
<tr><th style="border-left:none; text-align:right;">账号:</th><td style="border-right:none;" id="xima_username"></td></tr>
|
||||
<tr><th style="border-left:none; text-align:right;">用户名:</th><td style="border-right:none;" id="xima_nickname"></td></tr>
|
||||
<tr><th style="border-left:none; text-align:right;">未结码量:</th><td style="border-right:none;" id="xima_nocheckout_maliang"></td></tr>
|
||||
<tr><th style="border-left:none; text-align:right;">上一次洗码时间:</th><td style="border-right:none;" id="xima_last_checkout_time"></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="alert-footer">
|
||||
<input type="hidden" id="xm_user_id" value="" />
|
||||
<span class="input_button" onclick="postXima()" style="background:#009688; color:#fff;">确定洗码</span>
|
||||
<span class="input_button" style="margin-left: 20%; background:#f2f2f2; border:1px solid #e2e2e2;" onclick="hiddenForm('alert_xima')">取消洗码</span>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// 时间选择器
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 开始时间
|
||||
laydate.render({
|
||||
elem: '#start',
|
||||
type: 'datetime'
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
//弹出洗码窗口
|
||||
function showXima(obj, id) {
|
||||
$('#' + id).show();
|
||||
$('#xm_user_id').val($(obj).attr("data-userid"));
|
||||
$('#xima_username').html($(obj).attr("data-username"));
|
||||
$('#xima_nickname').html($(obj).attr("data-nickname"));
|
||||
$('#xima_nocheckout_maliang').html($(obj).attr("data-noCheckoutMaliang"));
|
||||
$('#xima_last_checkout_time').html($(obj).attr("data-lastCheckOutTime"));
|
||||
}
|
||||
//点击隐藏表单弹窗
|
||||
function hiddenForm(id) {
|
||||
$('#' + id).hide();
|
||||
}
|
||||
//处理洗码
|
||||
function postXima() {
|
||||
layer.confirm('是否对该账号洗码?', {
|
||||
btn: ['是','否'] //按钮
|
||||
}, function(){
|
||||
var query = new Object();
|
||||
if ($('#xm_user_id').val() > 0) {
|
||||
query.user_id = $('#xm_user_id').val();
|
||||
} else {
|
||||
layer.alert('洗码出错');
|
||||
return false;
|
||||
}
|
||||
if (parseInt($('#xima_nocheckout_maliang').html()) > 0) {
|
||||
query.total = parseInt($('#xima_nocheckout_maliang').html());
|
||||
} else {
|
||||
layer.alert('洗码数目必须大于0');
|
||||
return false;
|
||||
}
|
||||
var url = '/xima/do_xima';
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
dataType: "json",
|
||||
type: "POST",
|
||||
success: function (data) {
|
||||
if (data.errorCode === 0) {
|
||||
layer.alert('洗码成功',function(){
|
||||
window.location.reload();
|
||||
});
|
||||
} else {
|
||||
layer.alert(data.errorMessage);
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user