mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-13 16:03:04 +00:00
1. 框架更新至5.8,并且其涉及代码进行修改; 2. 对支付的alipay组件针对php7.2/3进行修改; 3. 重构了节点信息获取逻辑;现在为实时请求; 4. 代码小细节和命名规范
139 lines
5.3 KiB
PHP
139 lines
5.3 KiB
PHP
@extends('admin.layouts')
|
|
@section('css')
|
|
<link href="/assets/global/vendor/bootstrap-table/bootstrap-table.min.css" type="text/css" rel="stylesheet">
|
|
@endsection
|
|
@section('content')
|
|
<div class="page-content container-fluid">
|
|
<div class="panel">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">提现申请列表</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="form-row">
|
|
<div class="form-group col-lg-2 col-sm-4">
|
|
<input type="text" class="form-control" name="username" value="{{Request::get('username')}}" id="username" placeholder="申请账号"/>
|
|
</div>
|
|
<div class="form-group col-lg-2 col-sm-4">
|
|
<select class="form-control" name="status" id="status" onChange="Search()">
|
|
<option value="" @if(Request::get('status') == '') selected hidden @endif>状态</option>
|
|
<option value="-1" @if(Request::get('status') == '-1') selected hidden @endif>驳回</option>
|
|
<option value="0" @if(Request::get('status') == '0') selected hidden @endif>待审核</option>
|
|
<option value="1" @if(Request::get('status') == '1') selected hidden @endif>审核通过待打款</option>
|
|
<option value="2" @if(Request::get('status') == '2') selected hidden @endif>已打款</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-lg-1 col-sm-4 btn-group">
|
|
<button class="btn btn-primary" onclick="Search()">搜 索</button>
|
|
<a href="/admin/applyList" class="btn btn-danger">重 置</a>
|
|
</div>
|
|
</div>
|
|
<table class="text-md-center" data-toggle="table" data-mobile-responsive="true">
|
|
<thead class="thead-default">
|
|
<tr>
|
|
<th> #</th>
|
|
<th> 申请时间</th>
|
|
<th> 申请账号</th>
|
|
<th> 申请提现金额</th>
|
|
<th> 状态</th>
|
|
<th> 处理时间</th>
|
|
<th> 操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if($applyList->isEmpty())
|
|
<tr>
|
|
<td colspan="7">暂无数据</td>
|
|
</tr>
|
|
@else
|
|
@foreach($applyList as $apply)
|
|
<tr>
|
|
<td> {{$apply->id}} </td>
|
|
<td> {{$apply->created_at}} </td>
|
|
<td>
|
|
@if(empty($apply->user))
|
|
【账号已删除】
|
|
@else
|
|
<a href="/admin/userList?id={{$apply->user_id}}" target="_blank">{{$apply->user->username}}</a>
|
|
@endif
|
|
</td>
|
|
<td> ¥{{$apply->amount}} </td>
|
|
<td>
|
|
@if($apply->status == -1)
|
|
<span class="badge badge-lg badge-danger"> 驳 回 </span>
|
|
@elseif($apply->status == 0)
|
|
<span class="badge badge-lg badge-info"> 待审核 </span>
|
|
@elseif($apply->status == 2)
|
|
<span class="badge badge-lg badge-success"> 已打款 </span>
|
|
@else
|
|
<span class="badge badge-lg badge-default"> 待打款 </span>
|
|
@endif
|
|
</td>
|
|
<td> {{$apply->created_at == $apply->updated_at ? '' : $apply->updated_at}} </td>
|
|
<td>
|
|
<div class="btn-group">
|
|
@if($apply->status == 0)
|
|
<a href="javascript:setStatus('{{$apply->id}}','1')" class="btn btn-sm btn-success"><i class="icon wb-check" aria-hidden="true"></i>通过</a>
|
|
<a href="javascript:setStatus('{{$apply->id}}','-1')" class="btn btn-sm btn-danger"><i class="icon wb-close" aria-hidden="true"></i>驳回</a>
|
|
@elseif($apply->status == 1)
|
|
<a href="javascript:setStatus('{{$apply->id}}','2')" class="btn btn-sm btn-primary"><i class="icon wb-check-circle" aria-hidden="true"></i>已打款</a>
|
|
@endif
|
|
<a href="/admin/applyDetail?id={{$apply->id}}" class="btn btn-sm btn-default"><i class="icon wb-search"></i></a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="panel-footer">
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
共 <code>{{$applyList->total()}}</code> 个申请
|
|
</div>
|
|
<div class="col-sm-8">
|
|
<nav class="Page navigation float-right">
|
|
{{$applyList->links()}}
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|
|
@section('script')
|
|
<script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js" type="text/javascript"></script>
|
|
<script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
//回车检测
|
|
$(document).on("keypress", "input", function (e) {
|
|
if (e.which === 13) {
|
|
Search();
|
|
return false;
|
|
}
|
|
});
|
|
|
|
// 搜索
|
|
function Search() {
|
|
window.location.href = '/admin/applyList?username=' + $("#username").val() + '&status=' + $("#status option:selected").val();
|
|
}
|
|
|
|
// 更改状态
|
|
function setStatus(id, status) {
|
|
$.post("/admin/setApplyStatus", {
|
|
_token: '{{csrf_token()}}',
|
|
id: id,
|
|
status: status
|
|
}, function (ret) {
|
|
if (ret.status === 'success') {
|
|
swal.fire({title: ret.message, type: 'success', timer: 1000, showConfirmButton: false})
|
|
.then(() => window.location.reload())
|
|
} else {
|
|
swal.fire({title: ret.message, type: "error"}).then(() => window.location.reload())
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
@endsection
|