buy_house_detail.blade.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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 { border:1px solid #ccc; padding: 0 7px}
  4. .table_form { width: 100%; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse; padding:2px; max-width: 1200px}
  5. .avatar {
  6. width: 178px;
  7. height: 178px;
  8. display: block;
  9. }
  10. .attchment{
  11. width: 200px;
  12. height: 200px;
  13. }
  14. </style>
  15. <script src="{{ theme_asset('statistics/js/layer/layer.js') }}"></script>
  16. <table cellspacing="0" width="100%" class="table_form">
  17. <tr style="height:60px;page-break-inside:avoid">
  18. <td colspan="12">
  19. <h1>个人信息</h1>
  20. </td>
  21. </tr>
  22. <tr style="height:52px;page-break-inside:avoid">
  23. <td valign="center" style="width:100px;">姓名</td>
  24. <td valign="center" colspan="3" style="width:300px;">
  25. {{$info->name}}
  26. </td>
  27. <td valign="center" style="width:100px;">联系电话</td>
  28. <td valign="center" colspan="3" style="width:300px;">
  29. {{$info->mobile}}
  30. </td>
  31. <td valign="center" style="width:100px;">籍贯</td>
  32. <td valign="center" colspan="3" style="width:300px;">
  33. {{$info->native}}
  34. </td>
  35. </tr>
  36. <tr style="height:52px;page-break-inside:avoid">
  37. <td valign="center">电子邮箱</td>
  38. <td valign="center" colspan="3">
  39. {{$info->email}}
  40. </td>
  41. <td valign="center">人才层次</td>
  42. <td valign="center" colspan="3">
  43. {{$info->talent_level}}
  44. </td>
  45. <td valign="center">人才证有效期</td>
  46. <td valign="center" colspan="3">
  47. {{$info->talent_card_validity}}
  48. </td>
  49. </tr>
  50. <tr style="height:52px;page-break-inside:avoid">
  51. <td valign="center">人才标签</td>
  52. <td valign="center" colspan="3">
  53. {{$info->talent_tags}}
  54. </td>
  55. <td valign="center">人才认定条件</td>
  56. <td valign="center" colspan="6">
  57. {{$info->talent_condition}}
  58. </td>
  59. </tr>
  60. <tr style="height:52px;page-break-inside:avoid">
  61. <td valign="center" >
  62. 证件信息
  63. </td>
  64. <td valign="center" colspan="11">
  65. <div style="padding: 10px 0">
  66. @foreach($info->certificates as $k => $v)
  67. <img class="attchment" data-key="{{$k}}" data-name="certificates" src="{{ $v->response->path }}" />
  68. @endforeach
  69. </div>
  70. </td>
  71. </tr>
  72. </table>
  73. <table cellspacing="0" width="100%" class="table_form">
  74. <tr style="height:60px;page-break-inside:avoid">
  75. <td colspan="12">
  76. <h1>家庭资料</h1>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td valign="center">婚姻状况</td>
  81. <td valign="center" colspan="5">
  82. {{$info->marry_text}}
  83. </td>
  84. </tr>
  85. @if($info->marray > 1)
  86. <tr style="height:52px;page-break-inside:avoid">
  87. <td valign="center">
  88. 婚姻证明<br/>
  89. (结婚证,离婚证,离婚生效文书、丧偶证明等)
  90. </td>
  91. <td valign="center" colspan="3">
  92. @foreach($info->marry_prove as $k => $v)
  93. <img class="attchment" data-key="{{$k}}" data-name="marry_prove" src="{{ $v->response->path }}" />
  94. @endforeach
  95. </td>
  96. </tr>
  97. @endif
  98. <tr style="height:52px;page-break-inside:avoid">
  99. <td valign="center">
  100. 户口本
  101. </td>
  102. <td valign="center" colspan="3">
  103. @foreach($info->household_register as $k => $v)
  104. <img class="attchment" data-key="{{$k}}" data-name="household_register" src="{{ $v->response->path }}" />
  105. @endforeach
  106. </td>
  107. </tr>
  108. <tr style="height:47px;page-break-inside:avoid">
  109. <td valign="center" rowspan="{{ count($info->family)+1 }}">
  110. 家庭成员及其主要社会关系
  111. </td>
  112. <td valign="center" style="width:200px;">
  113. <p style=";text-align:center">
  114. <span style=";font-family:宋体;font-size:14px">称谓</span>
  115. </p>
  116. </td>
  117. <td width="200" valign="center" style="width:200px;">
  118. <p style=";text-align:center">
  119. <span style=";font-family:宋体;font-size:14px">姓名</span>
  120. </p>
  121. </td>
  122. <td width="87" valign="center" style="width:600px;">
  123. <p style=";text-align:center">
  124. <span style=";font-family:宋体;font-size:14px">证件信息</span>
  125. </p>
  126. </td>
  127. </tr>
  128. @foreach($info->family as $k => $v)
  129. <tr style="height:52px;page-break-inside:avoid" >
  130. <td valign="center">
  131. {{$v->relation}}
  132. </td>
  133. <td valign="center">
  134. {{$v->realname}}
  135. </td>
  136. <td valign="center">
  137. {{$v->idcard}}
  138. </td>
  139. </tr>
  140. @endforeach
  141. </table>
  142. <table cellspacing="0" width="100%" class="table_form">
  143. <tr style="height:60px;page-break-inside:avoid">
  144. <td colspan="12">
  145. <h1>工作情况</h1>
  146. </td>
  147. </tr>
  148. <tr style="height:52px;page-break-inside:avoid">
  149. <td valign="center" style="width:200px;">
  150. 人才工作单位
  151. </td>
  152. <td valign="center" style="width:1000px;">
  153. @foreach($info->work_prove as $k => $v)
  154. <img class="attchment" data-key="{{$k}}" data-name="work_prove" src="{{ $v->response->path }}" />
  155. @endforeach
  156. </td>
  157. </tr>
  158. <tr style="height:52px;page-break-inside:avoid">
  159. <td valign="center">所属街道</td>
  160. <td valign="center">
  161. {{$info->street}}
  162. </td>
  163. </tr>
  164. </table>
  165. <table cellspacing="0" width="100%" class="table_form">
  166. <tr style="height:60px;page-break-inside:avoid">
  167. <td colspan='4'>
  168. <h1>住房情况</h1>
  169. </td>
  170. </tr>
  171. <tr style="height:52px;page-break-inside:avoid">
  172. <td valign="center">
  173. <span class="require">*</span>家庭成员在晋江市行政区域内住房情况
  174. </td>
  175. <td valign="center">
  176. {{$info->house_condition}}
  177. </td>
  178. <td valign="center">
  179. <span class="require">*</span>在晋享受政策性住房或相关优惠情况
  180. </td>
  181. <td valign="center">
  182. {{$info->house_policy}}
  183. </td>
  184. </tr>
  185. </table>
  186. <script>
  187. let photos = {!!json_encode($photos)!!};
  188. $('.attchment').click(function(){
  189. let key = $(this).data('key');
  190. let name = $(this).data('name');
  191. let photo = photos[name];
  192. console.log(photo);
  193. photo.start = key;
  194. layer.photos({
  195. photos: photo,
  196. tab: function () {
  197. num = 0;
  198. $(".layui-layer-photos").append('<div class="icon" style="position:relative;width:100%;text-align:center;top:-133px;cursor:pointer;">\n' +
  199. '\t\t<img src="{{ theme_asset('statistics/js/layer/skin/default/turn_left.png') }}" style="width:30px;height30px;">\n' +
  200. '\t</div>');
  201. }
  202. });
  203. });
  204. $(document).on("click", ".icon img", function(e) {
  205. num = (num + 90) % 360;
  206. $("#layui-layer-photos").css('transform', 'rotate(' + num + 'deg)');
  207. //$(".layui-layer-phimg img").css('transform','rotate('+num+'deg)');此处只能旋转图片
  208. });
  209. $(document).on("mousewheel DOMMouseScroll", ".layui-layer-phimg img", function(e) {
  210. var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie
  211. (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1)); // firefox
  212. var imagep = $(".layui-layer-phimg").parent().parent();
  213. var image = $(".layui-layer-phimg").parent();
  214. var h = image.height();
  215. var w = image.width();
  216. if(delta > 0) {
  217. h = h * 1.05;
  218. w = w * 1.05;
  219. } else if(delta < 0) {
  220. if(h > 100) {
  221. h = h * 0.95;
  222. w = w * 0.95;
  223. }
  224. }
  225. imagep.css("top", (window.innerHeight - h) / 2);
  226. imagep.css("left", (window.innerWidth - w) / 2);
  227. image.height(h);
  228. image.width(w);
  229. imagep.height(h);
  230. imagep.width(w);
  231. });
  232. </script>