ajax_health.blade.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <link rel="stylesheet" href="{{theme_asset('statistics/js/layer/skin/default/layer.css')}}?t=1">
  2. <style>
  3. .table_form, .table_form tr th, .table_form tr td {
  4. border: 1px solid #ccc;
  5. padding: 0 7px
  6. }
  7. .table_form {
  8. width: 100%;
  9. min-height: 25px;
  10. line-height: 25px;
  11. text-align: center;
  12. border-collapse: collapse;
  13. padding: 2px;
  14. max-width: 1200px
  15. }
  16. </style>
  17. <script src="{{ theme_asset('statistics/js/layer/layer.js') }}"></script>
  18. <!--审核报名-->
  19. <div id="OpAuditLayer">
  20. @if(!$switch)
  21. <div class="notice">
  22. 无记录
  23. </div>
  24. @else
  25. <form id="J_interviewWrap">
  26. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  27. <input name="ids" type="hidden" value="{{$ids}}"/>
  28. <input name="type" type="hidden" value="{{$type}}"/>
  29. <h1 style="text-align: center;line-height: 60px;">
  30. 健康信息审核
  31. </h1>
  32. <table cellspacing="0" width="100%" class="table_form">
  33. <tr style="height:52px;page-break-inside:avoid">
  34. <td valign="center">
  35. 健康码
  36. </td>
  37. <td valign="center" colspan="11">
  38. <div style="padding: 10px 0">
  39. @if(is_array($info->health_code))
  40. @foreach($info->health_code as $k => $v)
  41. @if(!empty($v))
  42. <img class="attchment" data-key="{{$k}}" data-name="health_code"
  43. src="{{ $v->response->path }}" width="200"/>
  44. @endif
  45. @endforeach
  46. @else
  47. 无合法文件
  48. @endif
  49. </div>
  50. </td>
  51. </tr>
  52. <tr style="height:52px;page-break-inside:avoid">
  53. <td valign="center">
  54. 行程码
  55. </td>
  56. <td valign="center" colspan="11">
  57. <div style="padding: 10px 0">
  58. @if(is_array($info->trip_code))
  59. @foreach($info->trip_code as $k => $v)
  60. @if(!empty($v))
  61. <img class="attchment" data-key="{{$k}}" data-name="trip_code"
  62. src="{{ $v->response->path }}" width="200"/>
  63. @endif
  64. @endforeach
  65. @else
  66. 无合法文件
  67. @endif
  68. </div>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td height="25">审核状态:</td>
  73. <td>
  74. <label> <input type="radio" name="h_status" checked="checked" value="1"/> 通过 </label>&nbsp;&nbsp;
  75. <label> <input type="radio" name="h_status" value="-1"/> 不通过 </label>
  76. </td>
  77. </tr>
  78. <tr id="reason">
  79. <td height="25">备注:</td>
  80. <td>
  81. <textarea maxlength="300" name="reason" cols="50" style="font-size:12px"></textarea>
  82. </td>
  83. </tr>
  84. </table>
  85. </form>
  86. @endif
  87. </div>
  88. <style>
  89. p{
  90. text-indent: 20px;
  91. }
  92. </style>
  93. <script>
  94. let photos = {!!json_encode($photos)!!};
  95. $('.attchment').click(function () {
  96. let key = $(this).data('key');
  97. let name = $(this).data('name');
  98. let photo = photos[name];
  99. console.log(photo);
  100. photo.start = key;
  101. layer.photos({
  102. photos: photo,
  103. tab: function () {
  104. num = 0;
  105. $(".layui-layer-photos").append('<div class="icon" style="position:relative;width:100%;text-align:center;top:-133px;cursor:pointer;">\n' +
  106. '\t\t<img src="{{ theme_asset('statistics/js/layer/skin/default/turn_left.png') }}" style="width:30px;height30px;">\n' +
  107. '\t</div>');
  108. }
  109. });
  110. });
  111. </script>