| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- @extends('layouts.base')
- @section('title', INTEGRAL_NAME . '记录')
- @section('content')
- <link href="{{config('app.webPath')."/static/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="get" class="form-horizontal" role="form" id="form1">
- <input type="hidden" name="c" value="site" />
- <input type="hidden" name="a" value="entry" />
- <input type="hidden" name="m" value="yun_shop" />
- <input type="hidden" name="do" value="5201" />
- <input type="hidden" name="route" value="plugin.integral.Backend.Modules.Integral.Controllers.records" id="route" />
- <div style="display: flex;flex-direction: row;flex-wrap: wrap">
- <div style="width: 15%;margin-left: 2%">
- <input class="form-control" name="search[member]" type="text" value="{{ $search['member'] ?? ''}}" placeholder="会员ID/会员姓名/昵称/手机号">
- </div>
- <div style="width: 15%;margin-left: 2%">
- <select name="search[level_id]" class="form-control">
- <option value="" selected>会员等级</option>
- @foreach($memberLevel as $level)
- <option value="{{ $level['id'] }}" @if($search['level_id'] == $level['id']) selected @endif>{{ $level['level_name'] }}</option>
- @endforeach
- </select>
- </div>
- <div style="width: 15%;margin-left: 2%">
- <select name="search[group_id]" class="form-control">
- <option value="" selected >会员分组</option>
- @foreach($memberGroup as $group)
- <option value="{{ $group['id'] }}" @if($search['group_id'] == $group['id']) selected @endif>{{ $group['group_name'] }}</option>
- @endforeach
- </select>
- </div>
- <div style="width: 15%;margin-left: 2%">
- <select name="search[source]" class="form-control">
- <option value="" selected >业务类型</option>
- @foreach($source as $key => $value)
- <option value="{{ $key }}" @if($search['source'] == $key) selected @endif>{{ $value}}</option>
- @endforeach
- </select>
- </div>
- <div style="width: 15%;margin-left: 2%">
- <select name="search[income_type]" class="form-control">
- <option value="" selected >收入/支出</option>
- <option value="1" @if($search['income_type'] == 1) selected @endif>收入</option>
- <option value="-1" @if($search['income_type'] == -1) selected @endif>支出</option>
- </select>
- </div>
- <div style="width: 50%;margin-left: 2%;display: flex;flex-direction: row;margin-top: 1%">
- <div style="width: 20%;">
- <select name='search[search_time]' class='form-control'>
- <option value='' @if(empty($search['search_time'])) selected @endif>不搜索</option>
- <option value='1' @if($search['search_time']==1) selected @endif >搜索</option>
- </select>
- </div>
- <div style="margin-left: 2%">
- {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
- 'starttime'=>date('Y-m-d H:i', strtotime($search['time']['start']) ?: strtotime('-1 month')),
- 'endtime'=>date('Y-m-d H:i',strtotime($search['time']['end']) ?: time()),
- 'start'=>0,
- 'end'=>0
- ], true) !!}
- </div>
- <div class="form-group col-xs-12 col-sm-7 col-lg-4">
- <div class="">
- <input type="hidden" name="token" value="{{$var['token']}}" />
- <button class="btn btn-success ">
- <i class="fa fa-search"></i>
- 搜索
- </button>
- <button type="button" name="export" value="1" id="export" class="btn btn-default">导出
- Excel
- </button>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="clearfix">
- <div class="panel panel-default">
- <div class="panel-body">
- <table class="table table-hover" style="overflow:visible;">
- <thead class="navbar-inner">
- <tr>
- <th style="width:8%;text-align: center;">时间</th>
- <th style="width:10%;text-align: center;">粉丝</th>
- <th style="width:10%;text-align: center;">会员</th>
- <th style="width:12%;text-align: center;">单号</th>
- <th style="width:10%;text-align: center;">业务类型</th>
- <th style="width:15%;text-align: center;">收入/支出</th>
- <th style="width:15%;text-align: center;">{{ INTEGRAL_NAME }}</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($pageList as $item)
- <tr style="text-align: center;">
- <td>{{ $item['created_at'] }}</td>
- <td>
- <a href="{{ yzWebUrl('member.member.detail',['id' => $item->uid]) }}">
- <img src="{{ yz_tomedia($item->member->avatar) }}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc">
- <br>
- {{ $item->member->nickname }}
- </a>
- </td>
- <td>
- {{ $item->member->realname }}
- <br />
- {{ $item->member->mobile }}
- </td>
- <td>{{ $item->order_sn }}</td>
- <td>{{ $item->source_name }}</td>
- <td>{{ $item->change }}</td>
- <td>
- <label class="label label-danger">
- 可用:{{ $item->present ?? '0.00' }}
- </label>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!! $page !!}
- </div>
- </div>
- </div>
- </div>
- <script>
- $(function (){
- $('#export').click(function () {
- $('#route').val("plugin.integral.Backend.Modules.Integral.Controllers.records.export");
- $('#form1').submit();
- $('#route').val("plugin.integral.Backend.Modules.Integral.Controllers.records.index");
- });
- });
- </script>
- @endsection
|