ajax_health.blade.php 4.3 KB

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