patrol_details.html 8.5 KB

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