bzy_image.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
  7. <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
  8. <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}" />
  9. <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
  10. <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  12. <link href="{% static '/lib/css/magnific-popup.css' %}" rel="stylesheet" type="text/css" media="all" />
  13. <link rel="stylesheet" href="{% static '/css/loading.css' %}?versions=0.5.0" />
  14. <style>
  15. body {
  16. background: #fff;
  17. overflow: hidden;
  18. }
  19. /* 返回 */
  20. .headerPlace {
  21. font-size: 22px;
  22. color: #418fbb;
  23. cursor: pointer;
  24. }
  25. .headerPlace img {
  26. vertical-align: middle;
  27. margin-right: 10px;
  28. margin-top: -4px;
  29. }
  30. .clearfix:before,
  31. .clearfix:after {
  32. display: table;
  33. line-height: 0;
  34. content: ""
  35. }
  36. .clearfix:after {
  37. clear: both
  38. }
  39. .fl {
  40. float: left;
  41. }
  42. .fr {
  43. float: right;
  44. }
  45. .mfp-bottom-bar {
  46. color: #fff;
  47. }
  48. a {
  49. text-decoration: none !important;
  50. }
  51. .popup-gallery>div {
  52. float: left;
  53. width: 400px;
  54. overflow: hidden;
  55. text-align: center;
  56. position: relative;
  57. padding-bottom: 15px;
  58. }
  59. .imgParent:hover span {
  60. display: block;
  61. }
  62. .imgParent .delBtn {
  63. display: none;
  64. position: absolute;
  65. top: 10px;
  66. right: 58px;
  67. cursor: pointer;
  68. background: url(../static/img/delIcon.png);
  69. width: 25px;
  70. height: 25px;
  71. background-size: cover;
  72. }
  73. .content-body {
  74. margin-top: 20px;
  75. }
  76. .popupA img {
  77. width: 300px;
  78. height: 300px;
  79. }
  80. .imgParent a,
  81. .popupA p {
  82. color: #08c;
  83. padding: 10px;
  84. }
  85. /* 配置 */
  86. #lookDescribe {
  87. max-width: 700px;
  88. }
  89. .white-popup {
  90. position: relative;
  91. background: #FFF;
  92. padding: 20px;
  93. width: auto;
  94. max-width: 500px;
  95. margin: 20px auto;
  96. }
  97. .white-popup h1 {
  98. font-size: 20px;
  99. /* margin: 10px 0; */
  100. color: #006dcc;
  101. line-height: 15px;
  102. }
  103. .pupopTitle {
  104. width: 140px;
  105. text-align: right;
  106. vertical-align: middle;
  107. /* margin-top: 7px; */
  108. line-height: 30px;
  109. }
  110. .pupopBody input,
  111. .pupopBody select {
  112. height: 20px;
  113. padding: 4px 6px;
  114. margin-bottom: 10px;
  115. font-size: 14px;
  116. line-height: 20px;
  117. color: #4a4a4a;
  118. background: #fff;
  119. border: 1px solid #ccc;
  120. vertical-align: middle;
  121. width: 200px;
  122. }
  123. .pupopBody select {
  124. height: 30px;
  125. width: 215px;
  126. line-height: 30px;
  127. cursor: pointer;
  128. border: 1px solid #ccc;
  129. }
  130. .btnParent {
  131. text-align: center;
  132. }
  133. .btnParent input {
  134. color: #fff;
  135. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  136. background-color: #006dcc;
  137. width: 80px;
  138. height: 30px;
  139. border-radius: 3px;
  140. border: none;
  141. cursor: pointer;
  142. margin: 5px 17px;
  143. }
  144. .btnParent input:hover {
  145. color: #fff;
  146. background-color: #04c;
  147. }
  148. .nullData {
  149. width: 100%;
  150. height: 500px;
  151. background: #ddd;
  152. text-align: center;
  153. line-height: 500px;
  154. font-size: 20px;
  155. border: 1px solid #ddd;
  156. }
  157. #wormDetails {
  158. width: 100%;
  159. text-align: center;
  160. line-height: 30px;
  161. }
  162. table tr {
  163. border-bottom: 1px solid #e6e6e6;
  164. line-height: 40px;
  165. }
  166. table .option,
  167. table .optionName {
  168. width: 150px;
  169. }
  170. table input {
  171. width: 80%;
  172. text-align: center;
  173. }
  174. .saveBtn {
  175. display: none;
  176. }
  177. #addwormType,
  178. #delwormType {
  179. display: none;
  180. }
  181. #delwormType .pupopBody {
  182. width: 340px;
  183. font-size: 0;
  184. }
  185. #addwormType h2,
  186. #delwormType h2 {
  187. font-size: 16px;
  188. text-indent: 30px;
  189. color: #006dcc;
  190. }
  191. .my_protocol {
  192. line-height: 30px;
  193. display: inline-block;
  194. width: 169px;
  195. overflow: hidden;
  196. white-space: nowrap;
  197. text-overflow: ellipsis;
  198. }
  199. .my_protocol .input_agreement_protocol {
  200. appearance: none;
  201. -webkit-appearance: none;
  202. outline: none;
  203. display: none;
  204. }
  205. /*未选中时*/
  206. .my_protocol .input_agreement_protocol+span {
  207. cursor: pointer;
  208. width: 16px;
  209. height: 16px;
  210. background-color: red;
  211. display: inline-block;
  212. background: url(../static/img/checkboxBj.png) no-repeat;
  213. background-position-x: 0px;
  214. background-position-y: 0px;
  215. position: relative;
  216. top: 3px;
  217. margin-right: 3px;
  218. }
  219. /*选中checkbox时,修改背景图片的位置*/
  220. .my_protocol .input_agreement_protocol:checked+span {
  221. background-position: -19px 0px
  222. }
  223. /* 图片列表批量删除复选框样式 */
  224. .imgcheckbox input[type='checkbox']+span {
  225. cursor: pointer;
  226. width: 18px;
  227. height: 18px;
  228. background-color: red;
  229. display: inline-block;
  230. background: url(/static/img/tick.png) no-repeat center;
  231. background-position: -19px 0px;
  232. position: relative;
  233. top: 3px;
  234. border: 1px solid #bbb;
  235. }
  236. .imgcheckbox input[type='checkbox']:checked+span {
  237. background-position-x: 3px;
  238. background-position-y: 3px;
  239. }
  240. .imgcheckbox input {
  241. display: none;
  242. }
  243. .imgcheckbox {
  244. display: none;
  245. position: absolute;
  246. right: 19px;
  247. top: 0px;
  248. }
  249. .searchCover {
  250. margin: 20px 0;
  251. }
  252. .delbox {
  253. text-align: right;
  254. }
  255. .canceldelimgBtn {
  256. display: none;
  257. }
  258. /* 自动识别虫害 */
  259. /* .wormImg{
  260. width: 150px;
  261. float: left;
  262. margin-top: 20px;
  263. margin-right: 10px;
  264. }
  265. .wormIcon{
  266. float: left;
  267. margin-top: -5px;
  268. margin-right: 10px;
  269. font-size: 26px;
  270. color: #f1d300;
  271. /* color: #bd0606;
  272. }
  273. .wormName{
  274. text-align: center;
  275. line-height: 30px !important;
  276. }
  277. .synopsis{
  278. line-height: 23px;
  279. min-height: 100px;
  280. } */
  281. /* 自动识别2 */
  282. .wormBox {
  283. /* min-height: 100px; */
  284. }
  285. .wormImgTag {
  286. /* float: left;
  287. width: 25%; */
  288. }
  289. .wormResult {
  290. /* margin-left: 140px;
  291. width: 75%;*/
  292. line-height: 28px;
  293. }
  294. .wormResult>span {
  295. width: 50%;
  296. display: inline-block;
  297. }
  298. .wormResult>span>i {
  299. font-style: normal;
  300. color: #cf0000;
  301. font-weight: 600;
  302. }
  303. .clear {
  304. clear: both;
  305. }
  306. .wormIcon {
  307. float: left;
  308. margin-top: -5px;
  309. margin-right: 10px;
  310. font-size: 26px;
  311. color: #f1d300;
  312. }
  313. .resultTitle {
  314. font-size: 16px;
  315. margin: 5px 0;
  316. border-left: 4px solid #006dcc;
  317. padding-left: 6px;
  318. font-weight: 600;
  319. }
  320. /* */
  321. .pupopBody textarea {
  322. width: 250px;
  323. resize: none;
  324. padding: 10px;
  325. margin-bottom: 10px;
  326. }
  327. /* 绑定SIM卡 */
  328. #bindSim {
  329. display: none;
  330. }
  331. #bindSim>div {
  332. text-align: center;
  333. }
  334. #bindSim>.hint {
  335. line-height: 100px;
  336. font-size: 16px;
  337. color: #333;
  338. }
  339. .layui-layer {
  340. border-radius: 10px;
  341. overflow: hidden;
  342. }
  343. </style>
  344. </head>
  345. <body>
  346. <div class="content">
  347. <div class="page-header">
  348. <span class="headerPlace" onclick="goback('equipmanage_bzy')">
  349. <img src="{% static '/img/gobackIcon.png' %}" alt="">返回
  350. </span>
  351. <!-- 操作 -->
  352. <div class="delbox" style="float: right;">
  353. <button type="button" onclick="reload()" class="btn btn-sm btn-success">刷新</button>
  354. <button type="button" onclick="delimgAll(this)" class="btn btn-sm btn-primary batchesBtn">批量删除</button>
  355. <button type="button" onclick="canceldelimg(this)" id="canceldel" class="btn btn-sm canceldelimgBtn">取消</button>
  356. </div>
  357. </div>
  358. <input type="hidden" value="{{iccid|default_if_none:""}}" id="simid">
  359. <input type="hidden" value="{{dver}}" id="dver">
  360. <!-- 图片列表 -->
  361. <div class="content-body" id="imgList">
  362. </div>
  363. <div class="fenpei-bottom">
  364. <input type="hidden" id="imei" value="{{imei}}">
  365. <input type="hidden" id="totalPage" value={{ nums }}>
  366. <div id="page" style="text-align: center;"></div>
  367. </div>
  368. <!-- 版本2的加上SIM卡绑定提示 -->
  369. <div id="bindSim">
  370. <div class="hint">此设备还未绑定SIM卡,请先绑定SIM卡。</div>
  371. <div>
  372. <button class="layui-btn layui-btn-radius layui-btn-normal" onclick="binding()">立即绑定</button>
  373. <button class="layui-btn layui-btn-radius layui-btn-primary" onclick="closeSim()">稍后再来</button>
  374. </div>
  375. </div>
  376. <!-- 添加详情 -->
  377. <div id="test-popup" class="white-popup mfp-hide">
  378. <h1>添加详情</h1>
  379. <hr/>
  380. <form action="" id="pupopForm">
  381. <input type="hidden" value="" id="imgPath">
  382. <div class="pupopBox clearfix">
  383. <div class="fl pupopTitle">图片描述:</div>
  384. <div class="fl pupopBody">
  385. <textarea name="describe" rows="7" maxlength="200"></textarea>
  386. </div>
  387. </div>
  388. <div class="btnParent">
  389. <input type="button" id='cancelBtn' onclick="closePopWin($(this))" value="取消">
  390. <input type="button" id='saveBtn' onclick="savePopWin()" value="保存">
  391. </div>
  392. </form>
  393. <!-- 自动识别 -->
  394. <div id="autoDiscern" class="white-popup mfp-hide">
  395. <h1>害虫计数</h1>
  396. <hr>
  397. <input type="hidden" value="" id="currImgPath">
  398. <div class="wormBox">
  399. </div>
  400. </div>
  401. </div>
  402. <!-- loading -->
  403. <div id="loadingParent">
  404. <div id="loadCenter">
  405. <div class="skype-loader">
  406. <div class="dot">
  407. <div class="first"></div>
  408. </div>
  409. <div class="dot"></div>
  410. <div class="dot"></div>
  411. <div class="dot"></div>
  412. </div>
  413. Logging in...
  414. </div>
  415. </div>
  416. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  417. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  418. <script src="{% static '/js/common.js' %}?versions=0.5.0"></script>
  419. <script type="text/javascript">
  420. $.ajaxSetup({
  421. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  422. });
  423. </script>
  424. <script src="{% static '/js/reportmanage/bzy_image.js' %}?versions=0.5.0"></script>
  425. <script>
  426. </script>
  427. </body>
  428. </html>