123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- @extends('admin/master')
- @section('content')
- <body>
- @if(session('info'))
- <div class="Huialert Huialert-info" onclick="$(this).remove()" id="info">
- {{session('info')}}
- </div>
- @endif
- <div class="page-container">
- <div>
- <input class="input-text" style="width:6%;text-align:center" type="text" value="客户名"/>
- <input id="name" type="text" class="input-text" style="width:10%;text-align:center" name="name" value="{{$name?$name:''}}">
- <input class="input-text" style="width:6%;text-align:center" type="text" value="手机号"/>
- <input id="phone" type="text" class="input-text" style="width:10%;text-align:center" name="phone" value="{{$phone?$phone:''}}">
- <a class="btn btn-primary radius" onclick="user_search()" href="javascript:;">搜索</a>
- <a class="btn btn-primary radius" onclick="admin_add('新增')" href="javascript:;"><i class="Hui-iconfont"></i> 新增充值记录</a>
- </div>
- <div class="mt-20">
- <table class="table table-border table-bordered table-bg table-hover table-sort">
- <thead>
- <tr class="text-c">
- {{--<th width="25"><input type="checkbox" name="" value=""></th>--}}
- <th width="10%">姓名</th>
- <th width="10%">手机号</th>
- <th width="10%">充值次数</th>
- <th width="10%">累计充值金额</th>
- <th width="10%">账户余额</th>
- <th width="10%">操作</th>
- </tr>
- </thead>
- <tbody>
- @if($result)
- @foreach($result as $a)
- <tr class="text-c">
- {{--<td><input name="" type="checkbox" value=""></td>--}}
- <td class="text-c">{{$a['name']}}</td>
- <td class="text-c">{{$a['phonei']}}</td>
- <td class="text-c">{{$a['deposit_times']}}</td>
- <td class="text-c">{{$a['deposit_total']}}</td>
- <td class="text-c">{{$a['balance']}}</td>
- <td class="f-14 product-brand-manage"><!--a style="text-decoration:none" onClick='admin_edit("编辑团队","{{$a['id']}}")' href="javascript:;" title="编辑团队"><span class="btn btn-primary radius">编辑</span></a> <a style="text-decoration:none" class="ml-5" onClick="admin_del(this, '{{$a['id']}}')" href="javascript:;" title="删除"><span class="btn btn-danger radius">删除</span></a-->
- <a style="text-decoration:none" onClick='depositlist("查看充值记录","{{$a['phone']}}")' href="javascript:;" title="查看充值记录"><span class="btn btn-primary radius">查看充值记录</span></a>
- <a style="text-decoration:none" onClick='consumlist("查看充值记录","{{$a['phone']}}")' href="javascript:;" title="查看消费记录"><span class="btn btn-warning radius">查看消费记录</span></a>
- </td>
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- </div>
- <div id="page" class="page_div"></div>
- </div>
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--/_footer 作为公共模版分离出去-->
- <script type="text/javascript">
- $(function(){
- setTimeout("$('#info').hide()",3000);
- });
- /*管理员-添加*/
- function admin_add(title){
- location.href = '/admin/deposit/create';
- }
- /*管理员-编辑*/
- function admin_edit(title,id){
- location.href = "/admin/admin/teamedit/"+id;
- }
- function depositlist(title,phone){
- location.href = '/admin/deposit/index?phone='+phone;
- }
- function consumlist(title,phone){
- location.href = '/admin/deposit/consumList?phone='+phone;
- }
- function user_search(){
- var phone = $('#phone').val();
- var name = $('#name').val();
- location.href='customerList?page='+num + '&name='+name + '&phone='+phone;
- }
- $("#page").paging({
- pageNo:{{$page}},
- totalPage: {{$pages}},
- totalSize: {{$count}},
- callback: function(num) {
- var phone = $('#phone').val();
- var name = $('#name').val();
- location.href='customerList?page='+num + '&name='+name + '&phone='+phone;
- }
- })
-
- </script>
- </body>
- @endsection
|