view.blade.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @extends('vip.layouts')
  2. @section('seo_title')
  3. {{ trans('menu.message') }}
  4. @endsection
  5. @section('content')
  6. <form class="layui-form" action="{{ url()->full() }}" id="submitForm" name="submitForm" method="post" eventType="eventForm">
  7. <div class="over">
  8. <table class="layui-table" lay-size="lg" style="margin-top: 0">
  9. <tbody>
  10. @foreach($data as $v)
  11. <tr data-id="{{$v['id']}}">
  12. <td>
  13. <h2>{{$v['title']}}</h2>
  14. <p> {{$v['add_time']}}</p>
  15. </td>
  16. </tr>
  17. <tr>
  18. <td>
  19. {{$v['content']}}
  20. </td>
  21. </tr>
  22. @endforeach
  23. </tbody>
  24. </table>
  25. </div>
  26. </form>
  27. <script>
  28. //Demo
  29. layui.use(['form'], function(){
  30. var form = layui.form;
  31. //监听提交
  32. form.on('submit(submitForm)', function(data){
  33. return true;
  34. });
  35. });
  36. </script>
  37. @endsection