| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | @extends('admin/layout')@section('content')    <body class="gray-bg">    <div class="wrapper wrapper-content animated fadeInRight">        <div class="row">            <div class="col-sm-12">                <div class="ibox float-e-margins">                    <div class="ibox-title"></div>                    <div class="ibox-content">                        <form class="row" id="searchForm" onsubmit="units.search();return false;">                            <div class="input-group">                                <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"                                       name="keyword"                                       id="keyword" style="width: 260px;float: right">                                <span class="input-group-btn">                                    <button type="button" class="btn btn-md btn-primary"                                            onclick="units.search()"> 搜索</button>                                    <button type="button" class="btn btn-md" style="margin-left: 10px"                                            name="btnReset"> 重置</button>                                    </span>                            </div>                        </form>                        <div class="table-responsive">                            <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>                        </div>                    </div>                </div>            </div>        </div>    </div>    <input type="hidden" id="messageId" value="{{$messageId??0}}">    </body>@endsection@section('footer')    <script>        var units = {            search: function () {                tips.selectPage();            },        };        var messageId = $('#messageId').val();        var config = {};        config.url = '/admin/message/details/' + messageId;        config.columns = [ //字段            {                title: '序号', align: 'center', formatter: function (value, item, index) {                    return index + 1;                },                width: '20px'            },            {title: '公司', field: 'site', align: 'center', width: '200px'},            {title: '标题', field: 'title', align: 'center', width: '200px'},            {title: '内容', field: 'message', align: 'center', width: '300px'},            {title: '链接', field: 'url', align: 'center', width: '100px'},            {                title: 'banner', field: 'img', align: 'center', formatter: function (value, item) {                    return '<img src="' + value + '" style="width:80px">';                }            },            {title: '消息类型', field: 'messageType', align: 'center', width: '100px'},            {title: '推送状态', field: 'messageStatus', align: 'center', width: '100px'},            {title: '创建时间', field: 'push_time', align: 'center', width: '100px'},        ];        tips.bootstrapTable(config);    </script>@endsection
 |