| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- @extends('layouts.base')
- @section('title', '充值')
- @section('content')
- <link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
- <div id="member-blade" class="rightlist">
- <div class="panel panel-info">
- <div class="panel-heading">筛选</div>
- <div class="panel-body">
- <form action="" method="post" class="form-horizontal" role="form" id="form1">
- <div class="form-group col-sm-11 col-lg-11 col-xs-12">
- <div class="">
- <div class='input-group'>
- <input class="form-control" name="search[order_sn]" type="text" value="{{ $search['order_sn'] ?? ''}}" placeholder="充值单号">
- <input class="form-control" name="search[realname]" type="text" value="{{ $search['realname'] ?? ''}}" placeholder="会员ID/会员姓名/昵称/手机号">
- <div class='form-input'>
- <p class="input-group-addon price">充值区间</p>
- <input class="form-control price" name="search[min_value]" type="text" value="{{ $search['min_value'] ?? ''}}" placeholder="最小">
- <p class="line">—</p>
- <input class="form-control price" name="search[max_value]" type="text" value="{{ $search['max_value'] ?? ''}}" placeholder="最大">
- </div>
- </div>
- </div>
- </div>
- <div class="form-group col-sm-1 col-lg-1 col-xs-12">
- <div class="">
- <input type="submit" class="btn btn-block btn-success" value="搜索">
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="clearfix">
- <div class="panel panel-default">
- <div class="panel-heading">总数:{{ $pageList->total() }}</div>
- <div class="panel-body">
- <table class="table table-hover" style="overflow:visible;">
- <thead class="navbar-inner">
- <tr>
- <th style='width:15%; text-align: center;'>充值单号</th>
- <th style='width:10%; text-align: center;'>粉丝</th>
- <th style='width:10%; text-align: center;'>会员信息<br/>手机号</th>
- <th style='width:12%; text-align: center;'>充值时间</th>
- <th style='width:10%; text-align: center;'>充值方式</th>
- <th style='width:10%; text-align: center;'>充值金额<br/>状态</th>
- <th style='width:13%; text-align: center;'>备注信息</th>
- <th style='width:13%; text-align: center;'>操作</th>
- <th style='width:13%; text-align: center;'>查看详情</th>
- </tr>
- </thead>
- <tbody>
- @foreach($pageList as $list)
- <tr style="text-align: center;">
- <td>{{ $list->order_sn }}</td>
- <td>
- @if($list->member->avatar || $shopSet['headimg'])
- <img src='{{ $list->member->avatar ? tomedia($list->member->avatar) : tomedia($shopSet['headimg'])}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc'/>
- <br/>
- @endif
- {{ $list->member->nickname ? $list->member->nickname : '未更新' }}
- </td>
- <td>
- {{ $list->member->realname }}
- <br/>
- {{ $list->member->mobile }}
- </td>
- <td>{{ $list->created_at }}</td>
- <td>
- @if($list->pay_way == 0)
- <span class='label label-default'>后台充值</span>
- @elseif($list->pay_way == 1)
- <span class='label label-default'>前端充值</span>
- @endif
- </td>
- <td>
- {{ $list->change }}
- <br/>
- @if($list->status == 1)
- <span class='label label-success'>充值成功</span>
- @elseif($list->status == '-1')
- <span class='label label-warning'>充值失败</span>
- @else
- <span class='label label-default'>申请中</span>
- @endif
- </td>
- <td><a style="color: #0a0a0a" title="{{ $list->remark }}">{{ $list->remark }}</a></td>
- <td>
- @if($list->pay_way == 1 && $list->status == 0)
- <a class="label label-default label-info" onclick="audit({{ $list->id }},-1)">驳回审核</a>
- <a class="label label-success" onclick="audit({{ $list->id }},1)" >审核通过</a>
- @elseif($list->pay_way == 1 && $list->status == 1)
- <a class="label label-success" >已审核通过</a>
- @elseif($list->pay_way == 1 && $list->status == -1)
- <a class="label label-default" >已审核驳回</a>
- @elseif($list->pay_way == 0)
- <a class="label label-success" >后台充值</a>
- @endif
- </td>
- <td>
- <a class='label label-default label-info' href="{{ yzWebFullUrl('plugin.integral.Backend.Modules.Integral.Controllers.recharge-audit.recharge-details', array('id' => $list->id)) }}">查看详情</a>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!! $page !!}
- </div>
- </div>
- </div>
-
- <script>
-
- function audit(id,type) {
- $.ajax({
- url: "{!! yzWebUrl('plugin.integral.Backend.Modules.Integral.Controllers.recharge-audit.audit') !!}",
- type: "post",
- data: { id: id, type: type},
- cache: false,
- success: function (data) {
- console.log(data.result);
- alert(data.msg);
- location.reload();
- }
- });
- }
-
- </script>
- @endsection
|