home_map.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <title> </title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0 , user-scalable=no" />
  8. <!-- bootstrap & fontawesome -->
  9. <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
  10. <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
  12. <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
  13. <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
  14. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  15. <style type="text/css">
  16. body {
  17. overflow: hidden;
  18. margin-top: 0;
  19. background: #fff;
  20. }
  21. .home-icon {
  22. text-align: right;
  23. /* margin: 10px 0; */
  24. }
  25. .home-map {
  26. height: 600px;
  27. }
  28. .home-icon>span img {
  29. width: 30px;
  30. vertical-align: bottom;
  31. }
  32. #allmap {
  33. height: 100%
  34. }
  35. .BMap_bubble_title {
  36. border-bottom: 1px solid #000;
  37. }
  38. #selectType>span {
  39. cursor: pointer;
  40. }
  41. .headOperateBox {
  42. position: relative;
  43. }
  44. .margin08{
  45. margin: 8px 0;
  46. }
  47. @media (max-width: 500px) {
  48. #selectType img {
  49. width: 17px;
  50. }
  51. .selectTypeTxt {
  52. font-size: 12px;
  53. display: inline-block;
  54. width: initial;
  55. text-align: left;
  56. }
  57. }
  58. @media (min-width: 500px) and (max-width: 768px) {
  59. #selectType img {
  60. width: 20px;
  61. }
  62. .selectTypeTxt {
  63. font-size: 12px;
  64. display: inline-block;
  65. width: initial;
  66. text-align: left;
  67. }
  68. }
  69. @media (min-width: 768px) {
  70. .selectTypeTxt {
  71. display: inline-block;
  72. width: 56px;
  73. text-align: left;
  74. }
  75. }
  76. /* #PanoramaFlashWraperTANGRAM__y4,#PanoramaFlashWraperTANGRAM__y3{
  77. background: rgba(0,0,0,6);
  78. color: #fff;
  79. height: 3% !important;
  80. } */
  81. .gotoDetial{
  82. cursor: pointer;
  83. }
  84. .gotoDetial:hover{
  85. color: royalblue;
  86. }
  87. </style>
  88. </head>
  89. <body>
  90. <div class="content">
  91. <div class="row">
  92. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-2 margin08">
  93. <!-- <input type="text" id="form-field-1" placeholder="Username" class=""> -->
  94. <div class="input-group">
  95. <input type="text" class="form-control" id="searchImei" name="searchImei" placeholder="请输入设备IMEI">
  96. <div class="input-group-btn">
  97. <button type="button" id="searchBtn" class="btn btn-default no-border btn-sm">
  98. <i class="ace-icon fa fa-search icon-on-right bigger-110"></i>
  99. </button>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-2 margin08">
  104. <!-- <input type="text" id="form-field-1" placeholder="Username" class=""> -->
  105. <div class="input-group">
  106. <input type="text" class="form-control" id="searchCity" name="searchCity" placeholder="请输入地区检索">
  107. <div class="input-group-btn">
  108. <button type="button" id="searchCityBtn" class="btn btn-default no-border btn-sm">
  109. <i class="ace-icon fa fa-search icon-on-right bigger-110"></i>
  110. </button>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="col-xs-12 col-sm-6 col-md-6 col-lg-8 margin08">
  115. <div class="home-icon" id="selectType">
  116. <!--设备类型 1天气,2杀虫灯,3测报灯,4农药残留,5监控-->
  117. <span class="map-tb01" data-type="0">
  118. <img src="{% static '/img/6.png' %}" />
  119. <span class="selectTypeTxt">全部</span>
  120. </span>
  121. {% if perms.AppInfoManage.can_see_scd %}
  122. <span class="map-tb02" data-type="2">
  123. <img src="{% static '/img/2.png' %}" />
  124. <span class="selectTypeTxt">杀虫灯</span>
  125. </span>
  126. {% endif %}
  127. {% if perms.AppInfoManage.can_see_cbd %}
  128. <span class="map-tb03" data-type="3">
  129. <img src="{% static '/img/3.png' %}" />
  130. <span class="selectTypeTxt">虫情测报</span>
  131. </span>
  132. {% endif %}
  133. {% if perms.AppInfoManage.can_see_qxz %}
  134. <span class="map-tb01" data-type="5">
  135. <img src="{% static '/img/1.png' %}" />
  136. <span class="selectTypeTxt">环境监测</span>
  137. </span>
  138. {% endif %}
  139. <!-- {% if perms.AppInfoManage.can_see_ny %}
  140. <span class="map-tb04" data-type="4">
  141. <img src="{% static '/img/4.png' %}" />
  142. <span class="selectTypeTxt">农药残留</span>
  143. </span>
  144. {% endif %} -->
  145. <!-- {% if perms.AppInfoManage.can_see_jk %}
  146. <span class="map-tb05" data-type="6">
  147. <img src="{% static '/img/5.png' %}" />
  148. <span class="selectTypeTxt">监控设备</span>
  149. </span>
  150. {% endif %} -->
  151. {% if perms.AppInfoManage.can_see_bzy %}
  152. <span class="map-tb01" data-type="7">
  153. <img src="{% static '/img/7.png' %}" />
  154. <span class="selectTypeTxt">孢子仪</span>
  155. </span>
  156. {% endif %}
  157. <!-- {% if perms.AppInfoManage.can_see_bzy %} -->
  158. <span class="map-tb01" data-type="8">
  159. <img src="{% static '/img/8.png' %}" />
  160. <span class="selectTypeTxt">性诱器</span>
  161. </span>
  162. <!-- {% endif %} -->
  163. </div>
  164. </div>
  165. </div>
  166. <div class="headOperateBox">
  167. <!-- <div class="searchBox">
  168. <span>设备:</span>
  169. <input type="text" placeholder="imei" id="searchImei">
  170. <button class="btn searchBtn" id="searchBtn">筛选</button>
  171. </div> -->
  172. <!-- <div class="home-icon" id="selectType"> -->
  173. <!--设备类型 1天气,2杀虫灯,3测报灯,4农药残留,5监控-->
  174. <!-- <span class="map-tb01" data-type="1">
  175. <img src="{% static '/img/1.png' %}" />
  176. <span class="selectTypeTxt">气象</span>
  177. </span>
  178. <span class="map-tb02" data-type="2">
  179. <img src="{% static '/img/2.png' %}" />
  180. <span class="selectTypeTxt">杀虫灯</span>
  181. </span>
  182. <span class="map-tb03" data-type="3">
  183. <img src="{% static '/img/3.png' %}" />
  184. <span class="selectTypeTxt">虫情测报</span>
  185. </span>
  186. <span class="map-tb04" data-type="4">
  187. <img src="{% static '/img/4.png' %}" />
  188. <span class="selectTypeTxt">农药残留</span>
  189. </span>
  190. <span class="map-tb05" data-type="5">
  191. <img src="{% static '/img/5.png' %}" />
  192. <span class="selectTypeTxt">监控设备</span>
  193. </span> -->
  194. <!-- </div> -->
  195. </div>
  196. <div class="home-map">
  197. <div id="allmap"></div>
  198. </div>
  199. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  200. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  201. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=TcRPmrsiZUqdUBWoELrUArRkCRC36KMx"></script>
  202. <script src="{% static '/lib/js/coordOffset.js' %}"></script>
  203. <script type="text/javascript" src="{% static '/js/home/home_map.js' %}?versions=0.5.0"></script>
  204. <!-- <script type="text/javascript" src="{% static '/js/home/home_map1.js' %}?versions=0.5.0"></script> -->
  205. <script>
  206. $.ajaxSetup({
  207. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  208. });
  209. </script>
  210. </div>
  211. </div>
  212. </body>
  213. </html>