156 lines
6.0 KiB
PHP
156 lines
6.0 KiB
PHP
@extends('admin._layoutNew')
|
|
|
|
@section('page-head')
|
|
|
|
@endsection
|
|
|
|
@section('page-content')
|
|
<style>
|
|
.status_bg_1{
|
|
background: #1E9FFF;
|
|
}
|
|
.status_bg_2{
|
|
background: #5fb878;
|
|
}
|
|
.status_bg_3{
|
|
background: #ff5722;
|
|
}
|
|
</style>
|
|
<div style="margin-top: 10px;width: 100%;">
|
|
|
|
|
|
<form class="layui-form layui-form-pane layui-inline" action="">
|
|
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">用户名</label>
|
|
<div class="layui-input-inline" style="margin-left: 10px">
|
|
<input type="text" name="user_name" autocomplete="off" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">用户ID</label>
|
|
<div class="layui-input-inline" style="margin-left: 10px">
|
|
<input type="text" name="user_id" autocomplete="off" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline" style="margin-left: 10px">
|
|
<div class="layui-input-inline">
|
|
<button class="layui-btn" lay-submit="" lay-filter="mobile_search"><i class="layui-icon"></i></button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
<button class="layui-btn layui-btn-normal" style="margin-left: 10px" onclick="javascrtpt:window.location.href='{{url('/admin/cashb/csv')}}'">导出提币记录</button>
|
|
</div>
|
|
|
|
<script type="text/html" id="switchTpl">
|
|
<input type="checkbox" name="is_recommend" value="@{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="sexDemo" @{{ d.is_recommend == 1 ? 'checked' : '' }}>
|
|
</script>
|
|
|
|
<table id="demo" lay-filter="test"></table>
|
|
<script type="text/html" id="barDemo">
|
|
|
|
<a class="layui-btn layui-btn-xs" lay-event="show">查看</a>
|
|
|
|
</script>
|
|
<script type="text/html" id="statustml">
|
|
@{{d.status==1 ? '<span class="layui-badge status_bg_1">'+'申请提币'+'</span>' : '' }}
|
|
@{{d.status==2 ? '<span class="layui-badge status_bg_2">'+'提币完成'+'</span>' : '' }}
|
|
@{{d.status==3 ? '<span class="layui-badge status_bg_3">'+'申请失败'+'</span>' : '' }}
|
|
|
|
</script>
|
|
@endsection
|
|
|
|
@section('scripts')
|
|
<script>
|
|
|
|
layui.use(['table','form'], function(){
|
|
var table = layui.table;
|
|
var $ = layui.jquery;
|
|
var form = layui.form;
|
|
//第一个实例
|
|
table.render({
|
|
elem: '#demo'
|
|
,url: "{{url('admin/cashb_list')}}" //数据接口
|
|
,page: true //开启分页
|
|
,id:'mobileSearch'
|
|
,cols: [[ //表头
|
|
{field: 'id', title: 'ID', width:80, sort: true}
|
|
,{field: 'user_name', title: '用户名', width:220}
|
|
,{field: 'user_id', title: '用户ID', width:220}
|
|
,{field: 'currency_name', title: '虚拟币', width:80}
|
|
,{field: 'number', title: '提币数量', minWidth:110}
|
|
,{field: 'rate', title: '手续费', minWidth:80}
|
|
,{field: 'real_number', title: '实际提币', minWidth:110}
|
|
// ,{field: 'address', title: '提币地址', minWidth:100}
|
|
,{field: 'status', title: '状态', minWidth:80, templet: '#statustml'}
|
|
// ,{field: 'hes_account', title: '承兑商交易账号', minWidth:180}
|
|
// ,{field: 'money', title: '交易额度', minWidth:100}
|
|
// ,{field: 'sure_name', title: '交易状态', minWidth:100}
|
|
,{field: 'create_time', title: '提币时间', minWidth:180}
|
|
,{title:'操作',minWidth:90,toolbar: '#barDemo'}
|
|
|
|
]]
|
|
});
|
|
//监听热卖操作
|
|
// form.on('switch(sexDemo)', function(obj){
|
|
// var id = this.value;
|
|
// $.ajax({
|
|
// url:'{{url('admin/product_hot')}}',
|
|
// type:'post',
|
|
// dataType:'json',
|
|
// data:{id:id},
|
|
// success:function (res) {
|
|
// if(res.error != 0){
|
|
// layer.msg(res.msg);
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
|
|
table.on('tool(test)', function(obj){
|
|
var data = obj.data;
|
|
if(obj.event === 'del'){
|
|
layer.confirm('真的删除行么', function(index){
|
|
$.ajax({
|
|
url:'{{url('admin/cashb_show')}}',
|
|
type:'post',
|
|
dataType:'json',
|
|
data:{id:data.id},
|
|
success:function (res) {
|
|
if(res.type == 'error'){
|
|
layer.msg(res.message);
|
|
}else{
|
|
obj.del();
|
|
layer.close(index);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
} else if(obj.event === 'show'){
|
|
layer_show('确认提币','{{url('admin/cashb_show')}}?id='+data.id,800,600);
|
|
} else if(obj.event === 'back'){
|
|
layer_show('退回申请','{{url('admin/adjust_account')}}?id='+data.id,800,600);
|
|
}
|
|
});
|
|
|
|
//监听提交
|
|
form.on('submit(mobile_search)', function(data){
|
|
var account_number = data.field.user_name;
|
|
var user_id = data.field.user_id;
|
|
table.reload('mobileSearch',{
|
|
where:{account_number:account_number,user_id:user_id},
|
|
page: {curr: 1} //重新从第一页开始
|
|
});
|
|
return false;
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
@endsection |