123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- @extends('layouts.admin.app')
- @section('plug-css')
- <link href="{{ asset('js/bootstrap-table/dist/bootstrap-table.css') }}" rel="stylesheet">
- @endsection
- @section('crumbs')
- <ol class="breadcrumb crumbs">
- <li><a href="{{ route('admin.index') }}#">后台导航</a></li>
- <li class="active">匠人列表</li>
- </ol>
- @endsection
- @section('content')
- <form id="searchForm" class="form-inline">
- <div class="">
- <div class="form-group">
- <label for="mobile" class="label-css"> 匠人账户:</label>
- <input class="form-control" type="text" name="mobile">
- </div>
- <div class="form-group">
- <label for="recom_mobile" class="label-css"> 推荐人账户:</label>
- <input class="form-control" type="text" name="recom_mobile">
- </div>
- <input type="hidden" name="level_id" value="1">
-   
- <button type="button" class="btn btn-primary">查询</button>
- </div>
- </form>
- <hr class="hr-css">
- <div>
- <div id="toolbar">
- <div class="columns columns-left btn-group pull-left">
- <a href="javascript:;">
- <button class="btn btn-default" type="button" id="excel-jys">
- <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span> 匠人导出
- </button>
- </a>
- </div>
- </div>
- <table id="ContentTable"></table>
- </div>
- @endsection
- @section('plug-js')
- <script src="{{ asset('js/bootstrap-table/dist/bootstrap-table.js') }}"></script>
- <script src="{{ asset('js/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js') }}"></script>
- <script src="{{ asset('js/jquery-validation1.16/dist/jquery.validate.min.js') }}"></script>
- <script src="{{ asset('js/jquery-validation1.16/dist/additional-methods.min.js') }}"></script>
- <script src="{{ asset('js/jquery-validation1.16/src/localization/messages_zh.js') }}"></script>
- @endsection
- @section('scripts')
- <script>
- $(function(){
- BootStrapInit.init('tableMember','ContentTable',{
- searchForm: 'searchForm', // 表单搜索id 省略默认 'searchForm'
- url: "{{ route('admin.member.ajax.list',['level_id'=>$level_id]) }}",
- method: 'post',
- toolbar: '#toolbar',
- idField: '', // 指定主键列
- uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
- columns: [
- {
- checkbox: true,
- align: 'center',
- valign: 'middle'
- },
- {
- field: 'nickname',
- title: '匠人昵称',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'mobile',
- title: '匠人账户',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'recom_mobile',
- title: '推荐人账户',
- align: 'center',
- valign: 'middle',
- },
-
-
-
-
- {
- field: 'order_num',
- title: '商品使用总数',
- align: 'center',
- valign: 'middle'
- },
- {
- field: 'money',
- title: '余额',
- align: 'center',
- valign: 'middle'
- },
- {
- field: 'w_money',
- title: '使用收益',
- align: 'center',
- valign: 'middle'
- },
- {
- field: 't_money',
- title: '推荐收益',
- align: 'center',
- valign: 'middle'
- },
- {
- field: 'total_money',
- title: '总收益',
- align: 'center',
- valign: 'middle'
- },
- {
- field: 'created_at',
- title: '创建时间',
- align: 'center',
- valign: 'middle',
- sortable: true
- },
- ]
- });
- $(document).on('click', '#excel-jys', function () {
- $('#searchForm').prop('action', "{{ route('admin.member.excel') }}");
- $('#searchForm').prop('method', 'get');
- $('#searchForm').submit();
- return false;
- });
- });
- </script>
- @endsection
|