profit_sharing.blade.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. @extends('layouts.base')
  2. @section('title', '分账')
  3. @section('content')
  4. <style>
  5. .time {
  6. width: 30%;
  7. float: left;
  8. }
  9. table a {
  10. color: #333;
  11. }
  12. </style>
  13. <div class="w1200 ">
  14. <div class=" rightlist ">
  15. <div class="right-titpos">
  16. <ul class="add-snav">
  17. <li class="active"><a href="#">分账</a></li>
  18. <a class="btn btn-primary" href="{!! yzWebUrl('plugin.face-payment.admin.profit-sharing.add') !!}"><i class="fa fa-plus"></i> 添加分账接收方</a>
  19. </ul>
  20. </div>
  21. <div class="right-addbox"><!-- 此处是右侧内容新包一层div -->
  22. <div class="panel panel-info">
  23. <div class="panel-body">
  24. <form action="{!! yzWebUrl('plugin.face-payment.admin.profit-sharing') !!}" method="post" class="form-horizontal" role="form" id="form1">
  25. <div class="form-group col-xs-12 col-sm-2">
  26. <!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">会员信息</label>-->
  27. <div class="">
  28. <input type="text" class="form-control" name="realname" value="{{$request['realname']}}" placeholder="可搜索昵称/姓名/手机号"/>
  29. </div>
  30. </div>
  31. <div class="form-group col-xs-12 col-sm-2">
  32. <div class="">
  33. <input type="text" class="form-control" name="member_id" value="{{$request['member_id']}}" placeholder="会员ID"/>
  34. </div>
  35. </div>
  36. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  37. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label"></label>-->
  38. <div class="">
  39. {{--<button type="button" name="export" value="1" id="export" class="btn btn-default excel back ">导出 Excel</button>--}}
  40. <input type="hidden" name="token" value="{{$var['token']}}" />
  41. <button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
  42. </div>
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="clearfix">
  49. <div class="panel panel-default">
  50. <div class="panel-body table-responsive">
  51. <table class="table table-hover">
  52. <thead class="navbar-inner">
  53. <tr>
  54. <th width="6%">ID</th>
  55. <th width="6%">会员ID</th>
  56. <th width="16%">会员</th>
  57. <th width="10%">与分账方的关系类型</th>
  58. <th width="10%">操作</th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. @foreach($list['data'] as $item)
  63. <tr>
  64. <td>{{$item['id']}}</td>
  65. <td>{{$item['uid']}}</td>
  66. @if ($item['has_one_member'])
  67. <td>
  68. <a href="{!! yzWebUrl('member.member.detail', ['id'=>$item['has_one_member']['uid']]) !!}"><img src="{{$item['has_one_member']['avatar']}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>{{$item['has_one_member']['nickname']}}</a>
  69. </td>
  70. @else
  71. <td style="height: 59px">
  72. 未更新
  73. </td>
  74. @endif
  75. <td style="position:relative; overflow:visible;" >
  76. <a href="{{yzWebUrl('plugin.face-payment.admin.profit-sharing.delete',['id'=>$item['id']])}}" onclick="return confirm('是否确认删除?');
  77. return false;" class="btn btn-default btn-sm" title="删除"><i
  78. class="fa fa-trash"></i></a>
  79. </td>
  80. </tr>
  81. @endforeach
  82. </tbody>
  83. </table>
  84. {!!$pager!!}
  85. <!--分页-->
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <script language='javascript'>
  92. $('.tdedit').mouseover(function () {
  93. $(this).find('.fa-pencil').show();
  94. }).mouseout(function () {
  95. $(this).find('.fa-pencil').hide();
  96. });
  97. $('.fa-edit-item').click(function () {
  98. $(this).closest('span').hide();
  99. $(this).next('.level').show();
  100. });
  101. $('.tpl-agent-level').change(function () {
  102. var agencyId = $(this).data('agencyid');
  103. var levelId = $(this).val();
  104. fastChange(agencyId, levelId);
  105. });
  106. function fastChange(id, value) {
  107. $.ajax({
  108. url: "{!! yzWebUrl('plugin.face-payment.admin.profit-sharing.change') !!}",
  109. type: "post",
  110. data: {id: id, value: value},
  111. cache: false,
  112. success: function ($data) {
  113. console.log($data);
  114. location.reload();
  115. }
  116. })
  117. }
  118. $(function () {
  119. $('#export').click(function(){
  120. $('#form1').get(0).action="{!! yzWebUrl('plugin.face-payment.admin.profit-sharing.export') !!}";
  121. $('#form1').submit();
  122. $('#form1').get(0).action="{!! yzWebUrl('plugin.face-payment.admin.profit-sharing.index') !!}";
  123. });
  124. });
  125. </script>
  126. <style>
  127. .table-hover tr th, .table-hover tr td{text-align: center;}
  128. .input-group{
  129. margin: 4px auto;height: 30px; line-height: 30px;
  130. }
  131. </style>
  132. @endsection