101 lines
4.4 KiB
PHP
101 lines
4.4 KiB
PHP
@extends('layouts.base')
|
|
@section('content')
|
|
|
|
<div class="right-titpos">
|
|
<ul class="add-snav">
|
|
<a style="margin-bottom:5px;">红包额度管理</a>
|
|
</ul>
|
|
</div>
|
|
<div class='panel panel-default'>
|
|
<form action="" method="post" class="form-horizontal" id="form1">
|
|
<div class="panel panel-info">
|
|
<div class="panel-body">
|
|
<div class="form-group col-xs-12 col-sm-2">
|
|
<input class="form-control" name="search[member_id]" type="text"
|
|
value="{{$search['member_id']}}" placeholder="会员ID">
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
|
|
<div class="">
|
|
<input type="text" class="form-control"name="search[member]"value="{{$search['member']?$search['member']:''}}" placeholder="昵称/姓名/手机号"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-6">
|
|
<input type="hidden" name="id" value="{{$activity_id}}">
|
|
<input type="submit" class="btn btn-success" id="search" value="搜索">
|
|
<input type="button" class="btn btn-success " id="export" value="导出">
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class='panel panel-default'>
|
|
<div class="panel-heading">
|
|
|
|
</div>
|
|
|
|
<div class='panel-body' >
|
|
<table id="table">
|
|
|
|
</table>
|
|
<table id="basis-data" class="table table-hover" style="overflow:visible;">
|
|
<thead>
|
|
<tr>
|
|
<th style='width:5%;'>会员ID</th>
|
|
<th style='width:5%;'>会员</th>
|
|
<th style='width:5%;'>总额度</th>
|
|
<th style='width:5%;'>已领取金额</th>
|
|
<th style='width:5%;'>剩余额度</th>
|
|
<th style='width:10%;'>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
@foreach($list['data'] as $row)
|
|
<tr>
|
|
<td>{{$row['belongs_to_member']['uid']}}</td>
|
|
<td>
|
|
<img src='{{yz_tomedia($row['belongs_to_member']['avatar_image'])}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' />
|
|
<br/>{{$row['belongs_to_member']['username']}}
|
|
</td>
|
|
<td>{{$row['amount']}}</td>
|
|
<td>{{$row['receive_amount']}}</td>
|
|
<td>{{$row['amount']-$row['receive_amount']}}</td>
|
|
<td>
|
|
<a href="{{yzWebUrl('plugin.red-packet.admin.receive-logs.index',['member_id' => $row['belongs_to_member']['uid']])}}"
|
|
class="btn btn-sm btn-default" title="查看领取记录" style="font-size: 13px;"><i
|
|
class="fa fa-article"></i>查看领取记录</a>
|
|
<a href="{{yzWebUrl('plugin.red-packet.admin.quota-logs.index',['member_id' => $row['belongs_to_member']['uid']])}}"
|
|
class="btn btn-sm btn-default" title="查看领取记录" style="font-size: 13px;"><i
|
|
class="fa fa-article"></i>额度记录</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
{!! $pager !!}
|
|
</div>
|
|
</div>
|
|
<script language='javascript'>
|
|
function getUrlParams(name) {
|
|
let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
let param = window.location.search.substr(1).match(reg);
|
|
return param && param[2];
|
|
}
|
|
|
|
$(function () {
|
|
$('#export').click(function () {
|
|
$('#form1').attr('action', '{!! yzWebUrl('plugin.red-packet.admin.quota-management.export') !!}&page='+getUrlParams('page'));
|
|
$('#form1').submit();
|
|
});
|
|
$('#search').click(function () {
|
|
$('#form1').attr('action', '{!! yzWebUrl('plugin.red-packet.admin.quota-management.index') !!}');
|
|
$('#form1').submit();
|
|
});
|
|
});
|
|
</script>
|
|
|
|
@endsection
|