zym.blade.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>短信列表</title>
  6. <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
  7. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  8. <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
  9. </head>
  10. <body>
  11. <table class="table table-striped">
  12. <caption>短信列表</caption>
  13. <p id="text_not">定时状态</p>
  14. <thead>
  15. <tr>
  16. <th> id </th>
  17. <th> 来源</th>
  18. <th> 手机号</th>
  19. <th> 短信</th>
  20. <th> 时间</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. @foreach ($CodeList as $Code)
  25. <tr id="list_tr" class="table-danger">
  26. <td> {{$Code->id}} </td>
  27. <td> {{$Code->fromNumber}} </td>
  28. <td> {{$Code->toPhone}} </td>
  29. <td> {{$Code->codetext}} </td>
  30. <td> {{$Code->created_at}} </td>
  31. </tr>
  32. @endforeach
  33. </tbody>
  34. </table>
  35. <script type="text/javascript">
  36. // function Push() {
  37. // $.ajax({
  38. // type: "get",
  39. // url: "https://api.ruanjian.buzz/api/client/code/getcode",
  40. // dataType : 'json',
  41. // beforeSend: function () {
  42. // },
  43. // success: function (data) {
  44. //
  45. // if(data.ret !== 1){
  46. // return
  47. // }
  48. // console.log(data.code)
  49. //
  50. // if(!isUndefined(data.code)){
  51. //
  52. // data.code.forEach((elem, index) => {
  53. // console.log(elem.codetext, index);
  54. // // $("#list_tr").append("<td>elem.id</td><td>elem.fromNumber</td><td>elem.codetext</td><td>elem.codetime</td>");
  55. // // $('#list_tr').each(function(i){ // 遍历 tr
  56. // // console.log("第"+(i+1)+"行,第"+(j+1)+"个td的值:"+$(this).text()+"。");
  57. // // });
  58. //
  59. // });
  60. // // obj.code.each(function (i){
  61. // //
  62. // //
  63. // //
  64. // // //$("#list_tr").append("<td>(i+1)</td><td>(i+1))</td></tr>");
  65. // // })
  66. //
  67. // }
  68. //
  69. //
  70. //
  71. // // const obj = eval("(" + data + ")");
  72. // // alert(obj.codetext);
  73. // }
  74. //
  75. // })
  76. // }
  77. //判断数值是否为空
  78. function isUndefined(value){
  79. return value===undefined || $.trim(value).length===0;
  80. }
  81. $(document).ready(function() {
  82. /*第一次读取最新通知*/
  83. // setTimeout(function () {Push();}, 200);
  84. /*30轮询读取函数*/
  85. setInterval(function () {
  86. //通知
  87. //Push();
  88. $('#text_not').text("正在定时刷新...")
  89. location.reload();
  90. },30000);//30000
  91. })
  92. </script>
  93. </body>
  94. </html>
  95. {{--@extends('down.layoutsb')--}}
  96. {{--@section('css')--}}
  97. {{-- <link href="/assets/global/fonts/themify/themify.min.css" rel="stylesheet">--}}
  98. {{-- <link href="/assets/custom/range.min.css" rel="stylesheet"--}}
  99. {{--@endsection--}}
  100. {{--@section('content')--}}
  101. {{-- <div class="page-content container-fluid">--}}
  102. {{-- <div class="panel">--}}
  103. {{-- <div class="panel-body">--}}
  104. {{-- <table class="text-md-center" data-toggle="table" data-mobile-responsive="true">--}}
  105. {{-- <thead class="thead-default">--}}
  106. {{-- <tr>--}}
  107. {{-- </tr>--}}
  108. {{-- </thead>--}}
  109. {{-- <tbody>--}}
  110. {{-- </tbody>--}}
  111. {{-- </table>--}}
  112. {{-- </div>--}}
  113. {{-- </div>--}}
  114. {{-- </div>--}}
  115. {{--@endsection--}}
  116. {{--@section('javascript')--}}
  117. {{-- <script src="/assets/custom/clipboardjs/clipboard.min.js"></script>--}}
  118. {{-- <script src="/assets/global/js/Plugin/responsive-tabs.js"></script>--}}
  119. {{-- <script src="/assets/global/js/Plugin/tabs.js"></script>--}}
  120. {{-- <script src="/assets/custom/jump-tab.js"></script>--}}
  121. {{-- <script src="/assets/global/vendor/aspieprogress/jquery-asPieProgress.min.js"></script>--}}
  122. {{-- <script src="/assets/global/vendor/matchheight/jquery.matchHeight-min.js"></script>--}}
  123. {{-- <script src="/assets/global/vendor/chart-js/Chart.min.js"></script>--}}
  124. {{-- <script src="/assets/global/vendor/bootstrap-select/bootstrap-select.min.js"></script>--}}
  125. {{-- <script src="/assets/global/js/Plugin/aspieprogress.js"></script>--}}
  126. {{-- <script src="/assets/global/js/Plugin/matchheight.js"></script>--}}
  127. {{-- <script src="/assets/global/js/Plugin/bootstrap-select.js"></script>--}}
  128. {{--@endsection--}}