| xqd
@@ -41,7 +41,7 @@
|
|
|
<table class="table table-striped table-bordered table-hover dataTables-example dataTable">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th><input type="checkbox"></th>
|
|
|
+ <th><input class="checkAll" type="checkbox"></th>
|
|
|
<th class="sorting" data-sort="id"> ID </th>
|
|
|
<th> 微信昵称 </th>
|
|
|
<th class="sorting" data-sort="name"> 名称 </th>
|
| xqd
@@ -55,13 +55,13 @@
|
|
|
<tbody>
|
|
|
@if(isset($list))
|
|
|
@foreach($list as $key => $item) <tr>
|
|
|
-
|
|
|
- <td>{{ $item->id }}</td>
|
|
|
- <td>{{ $item->nickname }}</td>
|
|
|
- <td>{{ $item->name }}</td>
|
|
|
- <td>{{ $item->phone }}</td>
|
|
|
- <td>{{ $item->address }}</td>
|
|
|
- <td>{{ $item->status }}</td>
|
|
|
+ <td><input id="{{ $item->id }}" class="checkItem" type="checkbox"></td>
|
|
|
+ <td>{{ $item->id }}</td>
|
|
|
+ <td>{{ $item->nickname }}</td>
|
|
|
+ <td>{{ $item->name }}</td>
|
|
|
+ <td>{{ $item->phone }}</td>
|
|
|
+ <td>{{ $item->address }}</td>
|
|
|
+ <td>{{ $item->status }}</td>
|
|
|
@if($item->is_boss != 1)
|
|
|
<td>不是</td>
|
|
|
@else
|
| xqd
@@ -120,4 +120,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+<script>
|
|
|
+ $(".checkItem").click(function () {
|
|
|
+ if ($(this).prop('checked')) {
|
|
|
+ alert('111');
|
|
|
+ } else {
|
|
|
+ alert('222')
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+</script>
|
|
|
@endsection
|