123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- @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 class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="admin_add('新增', {{$phone}})" href="javascript:;"><i class="Hui-iconfont"></i> 新增充值记录</a> <a class="btn btn-primary radius" href="/admin/deposit/customerList"> 返回</a></span> </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['phone']}}</td>
- <td class="text-c">{{$a['pay_amount']}}</td>
- <td class="text-c">{{$a['note']}}</td>
- <td class="text-c">{{$a['deposit_amount']}}</td>
-
- <td class ="change_logistics_id">
- <p id="payment_type_1{{$a['id']}}">{{$a['payment_type']}}</p>
- <select id="payment_type_2{{$a['id']}}" style="display: none" name='payment_type' value="{{$a['payment_type']}}" onchange="change_payment_type({{$a['id']}})">
- <option value='0'>-请选择-</option>
- <option value='1'>微信支付</option>
- <option value='3'>个体户支付</option>
- </select>
- <span class="sort_icon" hidden onClick='change_payment_type_click("{{$a['id']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
- </td>
-
- <td class="text-c">{{$a['pay_time']}}</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, phone){
- location.href = '/admin/deposit/create?phone='+phone;
- }
- /*管理员-编辑*/
- function admin_edit(title,id){
- location.href = "/admin/admin/teamedit/"+id;
- }
- function depositlist(title,phone){
- location.href = '/admin/deposit/index?phone='+phone;
- }
- function change_payment_type_click(id){
- $("#payment_type_1"+id).hide();
- $("#payment_type_2"+id).show();
- $("#payment_type_2"+id).focus();
- }
- function change_payment_type(id){
- var payment_type = $("#payment_type_2"+id).val();
- $.ajax({
- url: '/admin/deposit/editPayType?id='+id+'&payment_type='+payment_type,
- type: 'get',
- dateType: 'json',
- success:function(msg){
- if(payment_type==1){
- payment_type = '微信支付';
- }
- if(payment_type==3){
- payment_type = '个体户支付';
- }
- if(payment_type==0){
- payment_type = '';
- }
- $("#payment_type_1"+id).html(payment_type);
- $("#payment_type_1"+id).show();
- $("#payment_type_2"+id).hide();
- }
- });
- }
- $(".change_logistics_id").mouseover(
- function(){
- $(this).children("span").show();
- $(this).children("span").addClass('f-18 c-success');
- $(this).mouseout(
- function(){
- $(this).children("span").hide();
- }
- );
- }
- );
- $("#page").paging({
- pageNo:{{$page}},
- totalPage: {{$pages}},
- totalSize: {{$count}},
- callback: function(num) {
- var phone = '{{$phone}}'
- location.href='index?page='+num+'&phone='+phone;
- }
- })
- </script>
- </body>
- @endsection
|