init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,195 @@
|
||||
{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:300px; 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 {text-align: center;padding-top: 20px;}
|
||||
.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" data-id="1">充值记录</a>
|
||||
<a href="javascript:;" class="list-one actived" data-id="2">提现记录</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="/recharge/recharge_record" method="get">
|
||||
<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>
|
||||
<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>
|
||||
</tr>
|
||||
<tbody>
|
||||
{foreach name="withdrawal_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.recharge_bank}</td>
|
||||
<td>{$vo.recharge_bank_branch}</td>
|
||||
<td>{$vo.recharge_cardnumber}</td>
|
||||
<td>{$vo.recharge_name}</td>
|
||||
<td>{$vo.recharge_money}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
{if condition="$vo.status == 0"}
|
||||
<td>
|
||||
<a href="javascript:;" onclick="deal_recharge({$vo.id})">
|
||||
<span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#009688;" >提现</span>
|
||||
</a>
|
||||
<a href="javascript:;" onclick="show_remark({$vo.id})">
|
||||
<span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#f44336;" >拒绝</span>
|
||||
</a>
|
||||
</td>
|
||||
{elseif condition="$vo.status == 1"}
|
||||
<td>已提现</td>
|
||||
{elseif condition="$vo.status == 2"}
|
||||
<td>已拒绝</td>
|
||||
{/if}
|
||||
<td>{$vo.controller_admin}</td>
|
||||
<td>{$vo.remarks}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{$withdrawal_list->render()}
|
||||
</div>
|
||||
<div class="alert" id="alert_add">
|
||||
<div class="alert-title">拒绝原因</div>
|
||||
<div class="alert-main">
|
||||
<input type="hidden" id="withdrawal_id">
|
||||
<div class="add_input"><textarea id="remarks" rows="3" cols="20" style="width: 280px;height: 150px;"></textarea></div>
|
||||
</div>
|
||||
<div class="alert-footer">
|
||||
<span onclick="do_add_remarks()" class="input_button" style="background:#009688; border:1px solid #e2e2e2;color:#fff;">提交</span>
|
||||
<span onclick="hiddenForm('alert_add')" 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 = '/recharge/recharge_record';
|
||||
if(id == "2") location.href = '/recharge/withdrawal_record';
|
||||
});
|
||||
|
||||
function deal_recharge(id) {
|
||||
layer.confirm('确认要提现吗?',function () {
|
||||
// 数据验证
|
||||
if(id <= 0){
|
||||
layer.msg('提现操作出错!');
|
||||
return false;
|
||||
}
|
||||
// 拼装数据
|
||||
var query = new Object;
|
||||
query.recharge_id = id;
|
||||
// 发送数据到后台删除会员
|
||||
var result = ajax('/recharge/deal_withdrawal',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 = "/recharge/withdrawal_record?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
});
|
||||
function show_remark(id){
|
||||
$('#withdrawal_id').val(id);
|
||||
$('#alert_add').show();
|
||||
}
|
||||
//点击隐藏表单弹窗
|
||||
function hiddenForm(id) {
|
||||
$('#remarks').val('');
|
||||
$('#' + id).hide();
|
||||
}
|
||||
function do_add_remarks(){
|
||||
var query = new Object();
|
||||
query.record_id = $('#withdrawal_id').val();
|
||||
query.remarks = $('#remarks').val();
|
||||
if(query.remarks.length == 0){
|
||||
layer.alert("请填写拒绝原因!");
|
||||
return false;
|
||||
}
|
||||
var result = ajax('/recharge/do_add_remarks',query);
|
||||
if(result.code == 1){
|
||||
layer.alert(result.msg, {icon: 6}, function () {
|
||||
location.href = "/recharge/withdrawal_record";
|
||||
});
|
||||
}else{
|
||||
layer.alert(result.msg,{icon:2});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user