details.blade.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @extends('admin/layout')
  2. @section('content')
  3. <body class="gray-bg">
  4. <div class="wrapper wrapper-content animated fadeInRight">
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <div class="ibox float-e-margins">
  8. <div class="ibox-title"></div>
  9. <div class="ibox-content">
  10. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  11. <div class="input-group">
  12. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  13. name="keyword"
  14. id="keyword" style="width: 260px;float: right">
  15. <span class="input-group-btn">
  16. <button type="button" class="btn btn-md btn-primary"
  17. onclick="units.search()"> 搜索</button>
  18. <button type="button" class="btn btn-md" style="margin-left: 10px"
  19. name="btnReset"> 重置</button>
  20. </span>
  21. </div>
  22. </form>
  23. <div class="table-responsive">
  24. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <input type="hidden" id="messageId" value="{{$messageId??0}}">
  32. </body>
  33. @endsection
  34. @section('footer')
  35. <script>
  36. var units = {
  37. search: function () {
  38. tips.selectPage();
  39. },
  40. };
  41. var messageId = $('#messageId').val();
  42. var config = {};
  43. config.url = '/admin/message/details/' + messageId;
  44. config.columns = [ //字段
  45. {
  46. title: '序号', align: 'center', formatter: function (value, item, index) {
  47. return index + 1;
  48. },
  49. width: '20px'
  50. },
  51. {title: '公司', field: 'site', align: 'center', width: '200px'},
  52. {title: '标题', field: 'title', align: 'center', width: '200px'},
  53. {title: '内容', field: 'message', align: 'center', width: '300px'},
  54. {title: '链接', field: 'url', align: 'center', width: '100px'},
  55. {
  56. title: 'banner', field: 'img', align: 'center', formatter: function (value, item) {
  57. return '<img src="' + value + '" style="width:80px">';
  58. }
  59. },
  60. {title: '消息类型', field: 'messageType', align: 'center', width: '100px'},
  61. {title: '推送状态', field: 'messageStatus', align: 'center', width: '100px'},
  62. {title: '创建时间', field: 'push_time', align: 'center', width: '100px'},
  63. ];
  64. tips.bootstrapTable(config);
  65. </script>
  66. @endsection