123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- @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="name" class="label-css"> ID:</label>
- <input class="form-control" type="text" name="id">
- </div>
- <div class="form-group">
- <label for="name" class="label-css"> 用户地址:</label>
- <input class="form-control" type="text" name="address">
- </div>
- <div class="form-group">
- <label for="name" class="label-css"> 推荐人地址:</label>
- <input class="form-control" type="text" name="recom_address">
- </div>
- <div class="form-group">
- <label for="is_sys_add" class="label-css"> 级别:</label>
- <select class="form-control" name="level_id" style="margin-top: -8px;">
- <option value="">全部</option>
- <option value="0">L0</option>
- <option value="1">L1</option>
- <option value="2">L2</option>
- <option value="3">L3</option>
- <option value="4">L4</option>
- <option value="5">L5</option>
- </select>
- </div>
- <div class="form-group">
- <label for="is_sys_add" class="label-css"> 自动升级:</label>
- <select class="form-control" name="is_auto" style="margin-top: -8px;">
- <option value="">全部</option>
- <option value="0">否</option>
- <option value="1">是</option>
- </select>
- </div>
- <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">
- </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.index') }}",
- method: 'post',
- toolbar: '#toolbar',
- idField: '', // 指定主键列
- uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
- columns: [
- {
- checkbox: true,
- align: 'center',
- valign: 'middle'
- },
- {
- field: 'id',
- title: 'ID',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'address',
- title: 'BNB地址',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'level_name',
- title: '等级',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'is_auto',
- title: '自动升级',
- align: 'center',
- valign: 'middle',
- formatter:yesOrNoTwo,
- bool_data:{
- 'class' : 'cursor',
- 'table' : 'members'
- }
- },
- {
- field: 'is_boss',
- title: 'BOSS',
- align: 'center',
- valign: 'middle',
- formatter:yesOrNoTwo,
- bool_data:{
- 'class' : 'cursor',
- 'table' : 'members'
- }
- },
- {
- field: 'money',
- title: '代币余额',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'recom_address',
- title: '推荐人地址',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'invite_code',
- title: '推荐码',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'created_at',
- title: '创建时间',
- align: 'center',
- valign: 'middle',
- },
- {
- field: 'updated_at',
- title: '更新时间',
- align: 'center',
- valign: 'middle',
- },
- {
- pkId: 'id', // 当前主键id 兼容排序 field='id' 默认值id
- title: '操作',
- align: 'center',
- valign: 'middle',
- width: '185px',
- formatter:operateFormatter,
- btn_group:[
- {
- 'name' : '编辑',
- 'class' : 'btn-primary createForm',
- 'url' : 'javascript:;',
- 'confirm_url': '{{ route('admin.member.edit', ['id'=>'-val-'])}}'
- }
- ]
- }
- ]
- });
- });
- </script>
- @endsection
|