fix: API路由补齐+后台全面中文化
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
|
||||
@extends('agent.layadmin')
|
||||
|
||||
@section('title', '充币列表')
|
||||
|
||||
@section('page-head')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('page-content')
|
||||
|
||||
<div class="layui-fluid">
|
||||
<div class="layui-card">
|
||||
<div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="layadmin-userfront-formlist">
|
||||
<div class="layui-form-item">
|
||||
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">币种</label>
|
||||
<div class="layui-input-block" style="width:130px;">
|
||||
<select name="currency_id" >
|
||||
<option value="-1" class="ww">全部</option>
|
||||
@foreach ($legal_currencies as $currency)
|
||||
<option value="{{$currency->id}}" class="ww">{{$currency->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">用户名</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="account_number" placeholder="请输入" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">所属代理</label>
|
||||
<div class="layui-input-block" style="width:130px;">
|
||||
<select name="belong_agent" >
|
||||
<option value="" >全部</option>
|
||||
@foreach ($son_agents as $son)
|
||||
<option value="{{$son->username}}">{{$son->username}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
<button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-user-front-search">
|
||||
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card-body">
|
||||
<table id="LAY-user-manage" lay-filter="LAY-user-manage"></table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
|
||||
<script>
|
||||
layui.use(['index','table' , 'layer'], function() {
|
||||
var $ = layui.$
|
||||
,admin = layui.admin
|
||||
,view = layui.view
|
||||
,table = layui.table
|
||||
,form = layui.form
|
||||
|
||||
|
||||
|
||||
|
||||
//充币管理
|
||||
table.render({
|
||||
elem: '#LAY-user-manage'
|
||||
,method : 'get'
|
||||
,url: '/agent/capital/recharge'
|
||||
,toolbar: true
|
||||
,totalRow: true
|
||||
,cols: [[
|
||||
{type: 'checkbox', fixed: 'left'}
|
||||
,{field: 'id', width: 60, title: 'ID', sort: true }
|
||||
,{field: 'currency_name', title: '币种', width: 90}
|
||||
,{field: 'account_number', title: '用户名', width: 120, totalRowText: '小计'}
|
||||
,{field: 'belong_agent_name', title: '所属代理', width: 120}
|
||||
,{field: 'value', title: '充币数量', width: 150, totalRow: true}
|
||||
,{field: 'info', title: '说明', width: 200}
|
||||
,{field: 'created_time', title: '到账时间', width: 170}
|
||||
]]
|
||||
,page: true
|
||||
,limit: 30
|
||||
,height: 'full-240'
|
||||
,text: '对不起,加载出现异常!'
|
||||
|
||||
,done: function(res) { //这里要说明一下:done 是只有 response 的 code 正常才会执行。而 succese 则是只要 http 为 200 就会执行
|
||||
if (res !== 0 ){
|
||||
if (res.code === 1001) {
|
||||
//清空本地记录的 token,并跳转到登入页
|
||||
admin.exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
form.render(null, 'layadmin-userfront-formlist');
|
||||
|
||||
//监听搜索
|
||||
form.on('submit(LAY-user-front-search)', function(data){
|
||||
var field = data.field;
|
||||
|
||||
//执行重载
|
||||
table.reload('LAY-user-manage', {
|
||||
where: field
|
||||
,page: {
|
||||
curr: 1 //重新从第 1 页开始
|
||||
}
|
||||
,done: function(res){ //这里要说明一下:done 是只有 response 的 code 正常才会执行。而 succese 则是只要 http 为 200 就会执行
|
||||
|
||||
if (res.code === 1001) {
|
||||
//清空本地记录的 token,并跳转到登入页
|
||||
admin.exit();
|
||||
}
|
||||
|
||||
if (res.code === 1){
|
||||
layer.msg(res.msg ,{icon : 5});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,58 @@
|
||||
@extends('agent.layadmin')
|
||||
|
||||
@section('page-head')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('page-content')
|
||||
<!-- <div class="layui-form"> -->
|
||||
<table id="userlist" lay-filter="userlist">
|
||||
<input type="hidden" name="user_id" value="{{$user_id}}">
|
||||
</table>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
<script>
|
||||
window.onload = function() {
|
||||
|
||||
layui.use(['element', 'form', 'layer', 'table'], function () {
|
||||
var element = layui.element;
|
||||
var layer = layui.layer;
|
||||
var table = layui.table;
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
|
||||
function tbRend(url) {
|
||||
table.render({
|
||||
elem: '#userlist'
|
||||
,url: url
|
||||
,page: true
|
||||
,limit: 20
|
||||
,toolbar: true
|
||||
,totalRow: true
|
||||
,height: 'full-100'
|
||||
,cols: [[
|
||||
{field: 'id', title: '币种id', width: 70}
|
||||
,{field: 'name', title: '币种', width: 100, totalRowText: '小计'}
|
||||
|
||||
,{field: '_ru', title: '入金', width: 150, totalRow: true}
|
||||
,{field: '_chu', title: '出金', width: 150, totalRow: true}
|
||||
,{field: '_caution_money', title: '杠杆可用保证金', width: 150, totalRow: true}
|
||||
,{field: '_zongyue', title: '总余额', width: 150, totalRow: true}
|
||||
// ,{field: '_zongyue', title: '总余额', width: 150,templet:function(d){
|
||||
// return d._zongyue.change_balance*1+d._zongyue.lock_change_balance*1+d._zongyue.legal_balance*1+d._zongyue.lock_legal_balance*1+d._zongyue.lever_balance+d._zongyue.lock_lever_balance+d._zongyue.lock_micro_balance*1+d._zongyue.micro_balance*1;
|
||||
// }}
|
||||
|
||||
]]
|
||||
});
|
||||
}
|
||||
var user_id = $("input[name='user_id']").val();
|
||||
tbRend("{{url('/agent/users_wallet_total')}}?user_id=" + user_id);
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,133 @@
|
||||
@extends('agent.layadmin')
|
||||
|
||||
@section('title', '提币列表')
|
||||
|
||||
@section('page-head')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('page-content')
|
||||
|
||||
<div class="layui-fluid">
|
||||
<div class="layui-card">
|
||||
<div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="layadmin-userfront-formlist">
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">币种</label>
|
||||
<div class="layui-input-block" style="width:130px;">
|
||||
<select name="currency_id" >
|
||||
<option value="-1" class="ww">全部</option>
|
||||
@foreach ($legal_currencies as $currency)
|
||||
<option value="{{$currency->id}}" class="ww">{{$currency->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">用户名</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="account_number" placeholder="请输入" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">所属代理</label>
|
||||
<div class="layui-input-block" style="width:130px;">
|
||||
<select name="belong_agent" >
|
||||
<option value="" >全部</option>
|
||||
@foreach ($son_agents as $son)
|
||||
<option value="{{$son->username}}">{{$son->username}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-user-front-search">
|
||||
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card-body">
|
||||
<table id="LAY-user-manage" lay-filter="LAY-user-manage"></table>
|
||||
<script type="text/html" id="table-useradmin-webuser">
|
||||
<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="info">查看关联订单</a>
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
|
||||
<script>
|
||||
layui.use(['index', 'table' , 'layer'], function() {
|
||||
var $ = layui.$
|
||||
,admin = layui.admin
|
||||
,view = layui.view
|
||||
,table = layui.table
|
||||
,form = layui.form
|
||||
|
||||
//提币管理
|
||||
table.render({
|
||||
elem: '#LAY-user-manage'
|
||||
,method : 'get'
|
||||
,url: '/agent/capital/withdraw'
|
||||
,toolbar: true
|
||||
,totalRow: true
|
||||
,cols: [[
|
||||
{type: 'checkbox', fixed: 'left'}
|
||||
,{field: 'id', width: 60, title: 'ID', sort: true }
|
||||
,{field: 'currency_name', title: '币种', width: 90}
|
||||
,{field: 'account_number', title: '用户名', width: 120, totalRowText: '小计'}
|
||||
,{field: 'belong_agent_name', title: '所属代理', width: 120}
|
||||
,{field: 'number', title: '提币数量', width: 150, totalRow: true}
|
||||
,{field: 'real_number', title: '到账数量', width: 150, totalRow: true}
|
||||
,{field: 'notes', title: '说明', width: 200}
|
||||
,{field: 'create_time', title: '申请时间', width: 170}
|
||||
,{field: 'update_time', title: '通过时间', width: 170}
|
||||
]]
|
||||
,page: true
|
||||
,limit: 30
|
||||
,height: 'full-240'
|
||||
,text: '对不起,加载出现异常!'
|
||||
|
||||
,done: function(res) { //这里要说明一下:done 是只有 response 的 code 正常才会执行。而 succese 则是只要 http 为 200 就会执行
|
||||
if (res !== 0 ){
|
||||
if (res.code === 1001) {
|
||||
//清空本地记录的 token,并跳转到登入页
|
||||
admin.exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
form.render(null, 'layadmin-userfront-formlist');
|
||||
|
||||
//监听搜索
|
||||
form.on('submit(LAY-user-front-search)', function(data){
|
||||
var field = data.field;
|
||||
|
||||
//执行重载
|
||||
table.reload('LAY-user-manage', {
|
||||
where: field
|
||||
,page: {
|
||||
curr: 1 //重新从第 1 页开始
|
||||
}
|
||||
,done: function(res){ //这里要说明一下:done 是只有 response 的 code 正常才会执行。而 succese 则是只要 http 为 200 就会执行
|
||||
|
||||
if (res.code === 1001) {
|
||||
//清空本地记录的 token,并跳转到登入页
|
||||
admin.exit();
|
||||
}
|
||||
|
||||
if (res.code === 1){
|
||||
layer.msg(res.msg ,{icon : 5});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user