218 lines
4.9 KiB
HTML
218 lines
4.9 KiB
HTML
{extend name="common/base"/}
|
|
<!-- 主体 -->
|
|
{block name="body"}
|
|
|
|
<div class="p-3">
|
|
<form class="layui-form gg-form-bar border-t border-x">
|
|
<div class="layui-input-inline" style="width:300px;">
|
|
<input type="text" name="keywords" placeholder="请输入关键字" class="layui-input" autocomplete="off" />
|
|
</div>
|
|
<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="searchform">提交搜索</button>
|
|
</form>
|
|
<table class="layui-hide" id="user_extract" lay-filter="user_extract"></table>
|
|
</div>
|
|
|
|
<!--<script type="text/html" id="toolbarDemo">-->
|
|
<!-- <div class="layui-btn-container">-->
|
|
<!-- <span class="layui-btn layui-btn-sm" lay-event="add" data-title="添加用户提现表">+ 添加用户提现表</span>-->
|
|
<!-- </div>-->
|
|
<!--</script>-->
|
|
|
|
<script type="text/html" id="barDemo">
|
|
<div class="layui-btn-group"><a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a></div>
|
|
</script>
|
|
|
|
{/block}
|
|
<!-- /主体 -->
|
|
|
|
<!-- 脚本 -->
|
|
{block name="script"}
|
|
<script>
|
|
const moduleInit = ['tool'];
|
|
function gouguInit() {
|
|
var table = layui.table,tool = layui.tool, form = layui.form;
|
|
layui.pageTable = table.render({
|
|
elem: '#user_extract',
|
|
title: '用户提现表列表',
|
|
toolbar: '#toolbarDemo',
|
|
url: '/admin/user_extract/datalist',
|
|
page: true,
|
|
limit: 20,
|
|
cellMinWidth: 300,
|
|
cols: [
|
|
[
|
|
{
|
|
fixed: 'left',
|
|
field: 'extract_id',
|
|
title: '编号',
|
|
align: 'center',
|
|
width: 80
|
|
},{
|
|
field: 'uid',
|
|
title: '用户 id',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'extract_sn',
|
|
title: '单号',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'real_name',
|
|
title: '姓名',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'extract_type',
|
|
title: '提现方式',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'bank_code',
|
|
title: '银行卡',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'bank_address',
|
|
title: '开户地址',
|
|
align: 'center',
|
|
width: 100
|
|
},
|
|
// {
|
|
// field: 'alipay_code',
|
|
// title: '支付宝账号',
|
|
// align: 'center',
|
|
// width: 100
|
|
// },{
|
|
// field: 'wechat',
|
|
// title: '微信号',
|
|
// align: 'center',
|
|
// width: 100
|
|
// },{
|
|
// field: 'extract_pic',
|
|
// title: '收款码',
|
|
// align: 'center',
|
|
// width: 100
|
|
// },
|
|
{
|
|
field: 'extract_price',
|
|
title: '提现金额',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'balance',
|
|
title: '余额',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'mark',
|
|
title: '管理员备注',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'admin_id',
|
|
title: '审核管理员',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'fail_msg',
|
|
title: '无效原因',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'status_time',
|
|
title: '无效时间',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'create_time',
|
|
title: '添加时间',
|
|
align: 'center',
|
|
width: 100
|
|
},{
|
|
field: 'status',
|
|
title: '状态',
|
|
align: 'center',
|
|
width: 100,
|
|
templet: function (d)
|
|
{
|
|
if (d.status == '-1') {
|
|
html = '<span style="color:#FB3205">未通过</span>';
|
|
}
|
|
if (d.status =='0') {
|
|
html = '<span style="color:#12bb37">审核中</span>';
|
|
}
|
|
if (d.status == '1') {
|
|
html = '<span style="color:#1159F3">已提现</span>';
|
|
}
|
|
return html;
|
|
},
|
|
},{
|
|
field: 'bank_name',
|
|
title: '银行名称',
|
|
align: 'center',
|
|
width: 100
|
|
},
|
|
{
|
|
fixed: 'right',
|
|
field: 'right',
|
|
title: '操作',
|
|
toolbar: '#barDemo',
|
|
width: 136,
|
|
align: 'center'
|
|
}
|
|
]
|
|
]
|
|
});
|
|
|
|
//监听表头工具栏事件
|
|
table.on('toolbar(user_extract)', function(obj){
|
|
if (obj.event === 'add') {
|
|
tool.side("/admin/user_extract/add");
|
|
return false;
|
|
}
|
|
});
|
|
|
|
//监听表格行工具事件
|
|
table.on('tool(user_extract)', function(obj) {
|
|
var data = obj.data;
|
|
if (obj.event === 'read') {
|
|
tool.side('/admin/user_extract/read?extract_id='+obj.data.extract_id);
|
|
}
|
|
else if (obj.event === 'edit') {
|
|
tool.side('/admin/user_extract/edit?extract_id='+obj.data.extract_id);
|
|
}
|
|
else if (obj.event === 'del') {
|
|
layer.confirm('确定要删除该记录吗?', {
|
|
icon: 3,
|
|
title: '提示'
|
|
}, function(index) {
|
|
let callback = function (e) {
|
|
layer.msg(e.msg);
|
|
if (e.code == 0) {
|
|
obj.del();
|
|
}
|
|
}
|
|
tool.delete("/admin/user_extract/del", { extract_id: data.extract_id }, callback);
|
|
layer.close(index);
|
|
});
|
|
}
|
|
return false;
|
|
});
|
|
|
|
//监听搜索提交
|
|
form.on('submit(searchform)', function(data) {
|
|
layui.pageTable.reload({
|
|
where: {
|
|
keywords: data.field.keywords
|
|
},
|
|
page: {
|
|
curr: 1
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
}
|
|
</script>
|
|
{/block}
|
|
<!-- /脚本 --> |