patrol_details.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <script type="text/javascript" src="/static/jquery-2.2.4.min.js"></script>
  9. <script type="text/javascript" src="/static/layer/layer.js"></script>
  10. <script type="text/javascript" src="/admin/js/common.js"></script>
  11. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.css">
  12. <title>详情</title>
  13. <style>
  14. body{
  15. background-color: #F1F1F1;
  16. }
  17. .container{
  18. max-width: 750px;
  19. height: auto;
  20. margin: 0 auto;
  21. padding: 0px 6px;
  22. }
  23. .patrol-details-all{
  24. width: 100%;
  25. height: auto;
  26. background-color: #ffffff;
  27. border-radius: 10px;
  28. padding: 0px 13px;
  29. margin-top: 5px;
  30. }
  31. .patrol-over{
  32. width: 100%;
  33. height: 40px;
  34. line-height: 40px;
  35. color: #148d8f;
  36. border-bottom: 1.2px solid #B3C9C4;
  37. font-weight: 600;
  38. font-size: 15px;
  39. letter-spacing: 1px;
  40. }
  41. .patrol-over-content{
  42. width: 100%;
  43. height: 90px;
  44. }
  45. .patrol-over-info{
  46. width: 100%;
  47. height: 30px;
  48. line-height: 30px;
  49. border-bottom:1px solid #F1F1F1;
  50. }
  51. .left{
  52. width: 30%;
  53. height: 30px;
  54. display: inline-block;
  55. font-size: 14px;
  56. color: #0f0f0f;
  57. float: left;
  58. letter-spacing: 1px;
  59. }
  60. .right{
  61. width: 68%;
  62. height: 30px;
  63. display: inline-block;
  64. font-size: 13px;
  65. color: #A9A9A9;
  66. float: right;
  67. overflow: hidden;
  68. text-align: right;
  69. }
  70. .break-cause{
  71. width: 100%;
  72. height: auto;
  73. background-color: #ffffff;
  74. border-radius: 10px;
  75. padding: 0px 13px;
  76. margin-top: 5px;
  77. }
  78. .break-cause-title{
  79. width: 100%;
  80. height: 40px;
  81. line-height: 40px;
  82. color: #148d8f;
  83. border-bottom: 1.2px solid #B3C9C4;
  84. font-weight: 600;
  85. font-size: 15px;
  86. letter-spacing: 1px;
  87. }
  88. .break-cause-content{
  89. width: 100%;
  90. height: auto;
  91. padding:8px 0px 8px 2px;
  92. font-size: 13px;
  93. }
  94. .break-img{
  95. width: 100%;
  96. height: 115px;
  97. background-color: #ffffff;
  98. border-radius: 10px;
  99. margin-top: 5px;
  100. padding: 12px 60px 5px 60px;
  101. }
  102. .images{
  103. display: inline-block;
  104. width: 50px;
  105. height: 60px;
  106. margin-left: 5px;
  107. }
  108. .images img{
  109. width: 50px;
  110. height: 60px;
  111. }
  112. .break-text-hint{
  113. width: 100%;
  114. height: 20px;
  115. line-height: 20px;
  116. text-align: center;
  117. margin-top: 20px;
  118. font-size: 13px;
  119. color: #A9A9A9;
  120. }
  121. .patrol-address{
  122. width: 100%;
  123. height: auto;
  124. padding: 0px 8px;
  125. border-radius: 10px;
  126. background-color: #ffffff;
  127. margin-top: 5px;
  128. }
  129. .patrol-address-title{
  130. width: 100%;
  131. height: 40px;
  132. line-height: 40px;
  133. color: #148d8f;
  134. font-weight: 600;
  135. font-size: 15px;
  136. letter-spacing: 1px;
  137. }
  138. .patrol-address-content{
  139. width: 100%;
  140. height: 40px;
  141. line-height: 40px;
  142. border-bottom:1px solid #F1F1F1;
  143. padding-bottom: 2px;
  144. overflow: hidden;
  145. }
  146. .address-left-nums{
  147. display: inline-block;
  148. width: 30px;
  149. height: 30px;
  150. border-right:1px solid #F1F1F1;
  151. margin-left: 5px;
  152. }
  153. .address-center-title{
  154. font-size: 14px;
  155. margin-left: 5px;
  156. color: #0f0f0f;
  157. }
  158. .address-right{
  159. display: inline-block;
  160. width: 40px;
  161. height: auto;
  162. float: right;
  163. border-left: 1px solid #f1f1f1;
  164. }
  165. .address-right img{
  166. width: 20px;
  167. height: 20px;
  168. margin-left: 7px;
  169. margin-bottom: 5px;
  170. }
  171. .footer-back{
  172. position: fixed;
  173. z-index: 1000;
  174. width: 100%;
  175. height: 45px;
  176. line-height: 45px;
  177. background-color: #ffffff;
  178. bottom: 0;
  179. left: 0;
  180. box-shadow: 0px 0px 10px 0px rgba(26, 25, 26, 0.05);
  181. display: table-cell;
  182. vertical-align: middle;
  183. text-align: center;
  184. }
  185. .footer-back a img{
  186. width: 43px;
  187. height: 43px;
  188. }
  189. </style>
  190. </head>
  191. <body>
  192. <div class="container">
  193. <!-- 完成情况-->
  194. <div class="patrol-details-all">
  195. <div class="patrol-over">完成情况</div>
  196. <div class="patrol-over-content">
  197. <div class="patrol-over-info">
  198. <text class="left">{$info['patrol_type']}人员:</text>
  199. <text class="right">{$info['patrol_user']}</text>
  200. </div>
  201. <div class="patrol-over-info">
  202. <text class="left">开始时间:</text>
  203. <text class="right">{$info['start_time']}</text>
  204. </div>
  205. <div class="patrol-over-info">
  206. <text class="left">结束时间:</text>
  207. <text class="right">{$info['end_time']}</text>
  208. </div>
  209. </div>
  210. </div>
  211. {if $info['status'] == 5}
  212. <!-- 中断原因-->
  213. <div class="break-cause">
  214. <div class="break-cause-title">中断原因</div>
  215. <div class="break-cause-content">{$info['interrupt_reson']}</div>
  216. </div>
  217. <!-- 中断图片-->
  218. {if !empty($info['interrupt_img'])}
  219. <div class="break-img">
  220. {foreach $info['interrupt_img'] as $k=>$v}
  221. <div class="images">
  222. <img onclick="open_img(this)" src="{$v}">
  223. </div>
  224. {/foreach}
  225. <div class="break-text-hint">
  226. <text>(点击可查看图片详细信息)</text>
  227. </div>
  228. </div>
  229. {/if}
  230. {/if}
  231. <!-- 巡更地点-->
  232. <div class="patrol-address">
  233. <div class="patrol-address-title">{$info['patrol_type']}地点</div>
  234. {if $info['patrol_address']}
  235. {foreach $info['patrol_address'] as $k=>$v}
  236. {if $v['status'] == 1}
  237. <div class="patrol-address-content" onclick="sonDetails(this)" data-orgId="{$info['org_id']}" data-id="{$info['id']}" data-form-id="{$v['patrol_form_id']}">
  238. <div class="address-left-nums">{$k+1}</div>
  239. <text class="address-center-title">{$v['title']}</text>
  240. <div class="address-right">
  241. <img src="/img/h5/over2x.png">
  242. </div>
  243. </div>
  244. {else /}
  245. <div class="patrol-address-content">
  246. <div class="address-left-nums">{$k+1}</div>
  247. <text class="address-center-title">{$v['title']}</text>
  248. <div class="address-right">
  249. <img src="/img/h5/noover2x.png" >
  250. </div>
  251. </div>
  252. {/if}
  253. {/foreach}
  254. {/if}
  255. </div>
  256. <div class="footer-back">
  257. <a href="javascript:;" onclick="javascript:history.back(-1);"><img src="/img/back.png"></a>
  258. </div>
  259. </div>
  260. </body>
  261. </html>
  262. <script>
  263. function sonDetails(obj) {
  264. var id = $(obj).attr('data-id');
  265. var orgId = $(obj).attr('data-orgId');
  266. var addrFormId = $(obj).attr('data-form-id');
  267. var url = "{:url('Statistics/patrolSonDetails')}?id="+id+'&orgId='+orgId+'&addrFormId='+addrFormId;
  268. window.location.href=url;
  269. }
  270. </script>