buy_house_detail.blade.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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="2">
  82. {{$info['marry_text']}}
  83. </td>
  84. <td valign="center">未成年子女数</td>
  85. <td valign="center" colspan="2" style="width:200px;">
  86. {{$info['child_num']}}
  87. </td>
  88. </tr>
  89. @if($info['marry'] > 1)
  90. <tr style="height:52px;page-break-inside:avoid">
  91. <td valign="center">
  92. 婚姻证明<br/>
  93. (结婚证,离婚证,离婚生效文书、丧偶证明等)
  94. </td>
  95. <td valign="center" colspan="5">
  96. @foreach($info['marry_prove'] as $k => $v)
  97. <img class="attchment" data-key="{{$k}}" data-name="marry_prove" src="{{ $v->response->path }}" />
  98. @endforeach
  99. </td>
  100. </tr>
  101. @endif
  102. <tr style="height:52px;page-break-inside:avoid">
  103. <td valign="center">
  104. 户口本
  105. </td>
  106. <td valign="center" colspan="5" style="padding:10px;">
  107. @foreach($info['household_register'] as $k => $v)
  108. <img class="attchment" data-key="{{$k}}" data-name="household_register" src="{{ $v->response->path }}" />
  109. @endforeach
  110. </td>
  111. </tr>
  112. <tr style="height:47px;page-break-inside:avoid">
  113. <td valign="center" rowspan="{{ count($info['family'])+1 }}">
  114. 家庭成员及其主要社会关系
  115. </td>
  116. <td valign="center" style="width:200px;">
  117. <p style=";text-align:center">
  118. <span style=";font-family:宋体;font-size:14px">称谓</span>
  119. </p>
  120. </td>
  121. <td width="200" valign="center" style="width:200px;">
  122. <p style=";text-align:center">
  123. <span style=";font-family:宋体;font-size:14px">姓名</span>
  124. </p>
  125. </td>
  126. <td width="87" valign="center" colspan="3" style="width:600px;">
  127. <p style=";text-align:center">
  128. <span style=";font-family:宋体;font-size:14px">证件信息</span>
  129. </p>
  130. </td>
  131. </tr>
  132. @foreach($info['family'] as $k => $v)
  133. <tr style="height:52px;page-break-inside:avoid" >
  134. <td valign="center">
  135. {{$v->relation}}
  136. </td>
  137. <td valign="center">
  138. {{$v->realname}}
  139. </td>
  140. <td valign="center" colspan="3">
  141. {{$v->idcard}}
  142. </td>
  143. </tr>
  144. @endforeach
  145. </table>
  146. <table cellspacing="0" width="100%" class="table_form">
  147. <tr style="height:60px;page-break-inside:avoid">
  148. <td colspan="12">
  149. <h1>工作情况</h1>
  150. </td>
  151. </tr>
  152. <tr style="height:52px;page-break-inside:avoid">
  153. <td valign="center" style="width:200px;">
  154. 工作证明
  155. </td>
  156. <td valign="center" style="width:1000px;padding:10px;">
  157. @foreach($info['work_prove'] as $k => $v)
  158. <img class="attchment" data-key="{{$k}}" data-name="work_prove" src="{{ $v->response->path }}" />
  159. @endforeach
  160. </td>
  161. </tr>
  162. <tr style="height:52px;page-break-inside:avoid">
  163. <td valign="center">工作单位</td>
  164. <td valign="center">
  165. {{$info['company']}}
  166. </td>
  167. </tr>
  168. <tr style="height:52px;page-break-inside:avoid">
  169. <td valign="center">所属街道</td>
  170. <td valign="center">
  171. {{$info['street']}}
  172. </td>
  173. </tr>
  174. </table>
  175. <table cellspacing="0" width="100%" class="table_form">
  176. <tr style="height:60px;page-break-inside:avoid">
  177. <td colspan='4'>
  178. <h1>住房情况</h1>
  179. </td>
  180. </tr>
  181. <tr style="height:52px;page-break-inside:avoid">
  182. <td valign="center">
  183. <span class="require">*</span>家庭成员在晋江市行政区域内住房情况
  184. </td>
  185. <td valign="center">
  186. {{$info['house_condition']}}
  187. </td>
  188. <td valign="center">
  189. <span class="require">*</span>在晋享受政策性住房或相关优惠情况
  190. </td>
  191. <td valign="center">
  192. {{$info['house_policy']}}
  193. </td>
  194. </tr>
  195. </table>
  196. <script>
  197. let photos = {!!json_encode($photos)!!};
  198. $('.attchment').click(function(){
  199. let key = $(this).data('key');
  200. let name = $(this).data('name');
  201. let photo = photos[name];
  202. photo.start = key;
  203. layer.photos({
  204. photos: photo,
  205. tab: function () {
  206. num = 0;
  207. $(".layui-layer-photos").append('<div class="icon" style="position:relative;width:100%;text-align:center;top:-133px;cursor:pointer;">\n' +
  208. '\t\t<img src="{{ theme_asset('statistics/js/layer/skin/default/turn_left.png') }}" style="width:30px;height30px;">\n' +
  209. '\t</div>');
  210. }
  211. });
  212. });
  213. $(document).on("click", ".icon img", function(e) {
  214. num = (num + 90) % 360;
  215. $("#layui-layer-photos").css('transform', 'rotate(' + num + 'deg)');
  216. //$(".layui-layer-phimg img").css('transform','rotate('+num+'deg)');此处只能旋转图片
  217. });
  218. $(document).on("mousewheel DOMMouseScroll", ".layui-layer-phimg img", function(e) {
  219. var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie
  220. (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1)); // firefox
  221. var imagep = $(".layui-layer-phimg").parent().parent();
  222. var image = $(".layui-layer-phimg").parent();
  223. var h = image.height();
  224. var w = image.width();
  225. if(delta > 0) {
  226. h = h * 1.05;
  227. w = w * 1.05;
  228. } else if(delta < 0) {
  229. if(h > 100) {
  230. h = h * 0.95;
  231. w = w * 0.95;
  232. }
  233. }
  234. imagep.css("top", (window.innerHeight - h) / 2);
  235. imagep.css("left", (window.innerWidth - w) / 2);
  236. image.height(h);
  237. image.width(w);
  238. imagep.height(h);
  239. imagep.width(w);
  240. });
  241. </script>