ajax_health.blade.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. <h1 style="text-align: center;line-height: 60px;">
  29. 健康信息审核
  30. </h1>
  31. <table cellspacing="0" width="100%" class="table_form">
  32. <tr style="height:52px;page-break-inside:avoid">
  33. <td valign="center">
  34. 健康码
  35. </td>
  36. <td valign="center" colspan="11">
  37. <div style="padding: 10px 0">
  38. @foreach($info->health_code as $k => $v)
  39. @if(!empty($v))
  40. <img class="attchment" data-key="{{$k}}" data-name="health_code"
  41. src="{{ $v->response->path }}" width="200"/>
  42. @endif
  43. @endforeach
  44. </div>
  45. </td>
  46. </tr>
  47. <tr style="height:52px;page-break-inside:avoid">
  48. <td valign="center">
  49. 行程码
  50. </td>
  51. <td valign="center" colspan="11">
  52. <div style="padding: 10px 0">
  53. @foreach($info->trip_code as $k => $v)
  54. @if(!empty($v))
  55. <img class="attchment" data-key="{{$k}}" data-name="trip_code"
  56. src="{{ $v->response->path }}" width="200"/>
  57. @endif
  58. @endforeach
  59. </div>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td height="25">审核状态:</td>
  64. <td>
  65. <label> <input type="radio" name="h_status" checked="checked" value="1"/> 通过 </label>&nbsp;&nbsp;
  66. <label> <input type="radio" name="h_status" value="-1"/> 不通过 </label>
  67. </td>
  68. </tr>
  69. <tr id="reason">
  70. <td height="25">备注:</td>
  71. <td>
  72. <textarea maxlength="300" name="reason" cols="50" style="font-size:12px"></textarea>
  73. </td>
  74. </tr>
  75. </table>
  76. </form>
  77. @endif
  78. </div>
  79. <style>
  80. p{
  81. text-indent: 20px;
  82. }
  83. </style>
  84. <script>
  85. let photos = {!!json_encode($photos)!!};
  86. $('.attchment').click(function () {
  87. let key = $(this).data('key');
  88. let name = $(this).data('name');
  89. let photo = photos[name];
  90. console.log(photo);
  91. photo.start = key;
  92. layer.photos({
  93. photos: photo,
  94. tab: function () {
  95. num = 0;
  96. $(".layui-layer-photos").append('<div class="icon" style="position:relative;width:100%;text-align:center;top:-133px;cursor:pointer;">\n' +
  97. '\t\t<img src="{{ theme_asset('statistics/js/layer/skin/default/turn_left.png') }}" style="width:30px;height30px;">\n' +
  98. '\t</div>');
  99. }
  100. });
  101. });
  102. </script>