siminfo.2.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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. <style type="text/css">
  13. body {
  14. overflow: hidden;
  15. background: #fff;
  16. }
  17. .searchCover {
  18. margin: 20px 0;
  19. }
  20. .floatRright{
  21. display: inline-block;
  22. float: right;
  23. }
  24. .innerTable {
  25. padding: 0 1px 0 0;
  26. min-width: 750px;
  27. overflow-x: scroll;
  28. }
  29. .table,
  30. .table.table-striped>thead>tr>th {
  31. text-align: center;
  32. }
  33. table td {
  34. vertical-align: middle !important;
  35. }
  36. .nullData {
  37. width: 100%;
  38. height: 500px;
  39. background: #ddd;
  40. text-align: center;
  41. line-height: 500px;
  42. font-size: 20px;
  43. border: 1px solid #ddd;
  44. }
  45. .refresh {
  46. font-size: 16px;
  47. color: #4C8FBD;
  48. margin-right: 30px;
  49. }
  50. .content {
  51. overflow-x: scroll;
  52. }
  53. #bindingEquipBox {
  54. display: none;
  55. }
  56. #bindingRes>div {
  57. padding: 10px 0;
  58. border-bottom: 1px solid #a2a2a2;
  59. }
  60. /* 充值 */
  61. .rechargeParent{
  62. display: none;
  63. }
  64. .rechargeParent>h2 {
  65. line-height: 46px;
  66. font-size: 24px;
  67. background: #ECECEC;
  68. border-bottom: 1px solid #ddd;
  69. padding-left: 17px;
  70. margin-bottom: 30px;
  71. }
  72. .recharge-demo {
  73. width: 90%;
  74. margin: 0 auto;
  75. border: 2px solid #ddd;
  76. text-align: center;
  77. cursor: pointer;
  78. position: relative;
  79. margin-bottom: 30px;
  80. }
  81. .recharge-demo:hover,
  82. .recharge-demo.active {
  83. border: 2px solid red;
  84. }
  85. .recharge-demo.active .switchIcon {
  86. position: absolute;
  87. bottom: 0;
  88. right: 0;
  89. height: 47px;
  90. width: 52px;
  91. background: url(../static/img/rechargeIcon.png);
  92. }
  93. .recharge-name {
  94. color: #818181;
  95. font-size: 26px;
  96. font-weight: 700;
  97. letter-spacing: 2px;
  98. line-height: 47px;
  99. border-bottom: 1px dashed #ddd;
  100. }
  101. .price {
  102. font-size: 33px;
  103. color: red;
  104. padding: 12px 0 4px;
  105. letter-spacing: 1px;
  106. }
  107. .price span {
  108. font-size: 14px;
  109. }
  110. .desc {
  111. font-size: 14px;
  112. letter-spacing: 2px;
  113. color: #8d8d8d;
  114. padding-bottom: 20px;
  115. }
  116. .increase {
  117. width: 38px;
  118. height: 32px;
  119. border: 2px white;
  120. float: left;
  121. background: #ececec;
  122. }
  123. .increase:hover {
  124. background: #d9d9d9;
  125. }
  126. .increaseVal {
  127. text-align: center;
  128. width: 50px;
  129. height: 32px;
  130. float: left;
  131. }
  132. .increaseBtnDiv {
  133. width: 145px;
  134. display: inline-block;
  135. vertical-align: middle;
  136. }
  137. .rechargeBtnDiv {
  138. text-align: right;
  139. padding: 0 20px 20px;
  140. }
  141. .rechargeA{
  142. display: none;
  143. }
  144. #echarts{
  145. margin: 20px;
  146. display: none;
  147. }
  148. .echartsBox{
  149. width: 380px;
  150. margin: 0 auto;
  151. height: 380px;
  152. }
  153. #pie-chart{
  154. width: 400PX;
  155. height: 400PX;
  156. }
  157. </style>
  158. <body>
  159. <div class="content">
  160. <div class="searchCover">
  161. 设备ID:
  162. <input type="text" id="imei" autocomplete="off" placeholder="请输入设备ID" onkeypress="if (event.keyCode == 13) sub_filter();" >
  163. SIM卡iccid:
  164. <input type="text" value="" class="" id="iccid" autocomplete="off" placeholder="请输入SIM卡iccid" onkeypress="if (event.keyCode == 13) sub_filter();" />
  165. SIM卡状态:
  166. <select name="" id="status">
  167. <option value="">请选择</option>
  168. <option value="1">测试期</option>
  169. <option value="2">沉默期</option>
  170. <option value="3">使用中</option>
  171. <option value="4">停机</option>
  172. <option value="5">停机保号</option>
  173. <option value="6">预销号</option>
  174. <option value="7">销号</option>
  175. <option value="0">未知</option>
  176. </select>
  177. <button type="button" onclick="sub_filter()" class="btn btn-sm btn-primary">筛选</button>
  178. <button type="button" onclick="lookEchart()" class="btn btn-sm btn-success">状态统计</button>
  179. <div class="floatRright">
  180. <a class="refresh rechargeA" onclick="rechargeFun()" href="javascript:;">
  181. <i class="fa fa-jpy" aria-hidden="true" width="28"></i>
  182. 充值 </a>
  183. <a class="refresh" onclick="examineEquip()" href="javascript:;">
  184. <i class="fa fa-search" aria-hidden="true" width="28"></i>
  185. 绑定设备查询 </a>
  186. <a class="refresh" onclick="examineSIM()" href="javascript:;">
  187. <i class="fa fa-search" aria-hidden="true" width="28"></i>
  188. SIM卡查询 </a>
  189. </div>
  190. </div>
  191. <div class="innerTable">
  192. <table id="datatable" class="table table-striped table-hover">
  193. <thead>
  194. <tr>
  195. <th>设备ID</th>
  196. <th>设备名称</th>
  197. <th>设备类型</th>
  198. <th>SIM卡iccid</th>
  199. <th>激活日期</th>
  200. <th>SIM卡状态</th>
  201. <th>套餐(Mb)</th>
  202. <th>已用流量(Mb)</th>
  203. <th>剩余流量(Mb)</th>
  204. <th>到期时间</th>
  205. </tr>
  206. </thead>
  207. <tbody>
  208. </tbody>
  209. </table>
  210. <div class="fenpei-bottom">
  211. <input type="hidden" id="totalPage" value={{ nums }}>
  212. <div id="page" style="text-align: center;"></div>
  213. </div>
  214. </div>
  215. <!-- 绑定设备展示框 -->
  216. <div id="bindingEquipBox" style="display:none">
  217. <div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">
  218. <div>绑定设备查询结果</div>
  219. <p id="curIccid">ICCID: text</p>
  220. <div id="bindingRes">
  221. <!-- <div>
  222. 状态:status
  223. <br>套餐dat.data_plan'Mb
  224. <br>已用流量:usage Mb
  225. <br>剩余流量:balanceMb
  226. <br>到期时间:89860401101700076454
  227. </div> -->
  228. </div>
  229. </div>
  230. </div>
  231. <!-- 充值 -->
  232. <div id="voucherModel" class="rechargeParent">
  233. <h2>充值套餐选择</h2>
  234. <input type="hidden" value="" class="currIccid">
  235. <div class="layui-row">
  236. <div class="layui-col-xs4">
  237. <div class="recharge-demo">
  238. <input type="hidden" value="22" class="product_id">
  239. <div class="recharge-name">10MB</div>
  240. <div>
  241. <div class="price">999
  242. <span>元</span>
  243. </div>
  244. <div class="desc">6个月每月10Mb</div>
  245. </div>
  246. <div class="switchIcon"></div>
  247. </div>
  248. </div>
  249. <div class="layui-col-xs4">
  250. <div class="recharge-demo active">
  251. <div class="recharge-name">10MB</div>
  252. <div>
  253. <div class="price">999
  254. <span>元</span>
  255. </div>
  256. <div class="desc">6个月每月10Mb</div>
  257. </div>
  258. <div class="switchIcon"></div>
  259. </div>
  260. </div>
  261. <div class="layui-col-xs4">
  262. <div class="recharge-demo">
  263. <div class="recharge-name">10MB</div>
  264. <div>
  265. <div class="price">999
  266. <span>元</span>
  267. </div>
  268. <div class="desc">6个月每月10Mb</div>
  269. </div>
  270. <div class="switchIcon"></div>
  271. </div>
  272. </div>
  273. </div>
  274. <div class="rechargeBtnDiv">
  275. <div class="increaseBtnDiv">
  276. <input class="increase" type="button" value="-" onclick="reductionOf(this)" />
  277. <input class="increaseVal" type="text" value="1" onblur="checkNumber(this)" />
  278. <input class="increase" type="button" value="+" onclick="add(this)" />
  279. </div>
  280. <button type="button" id="shaixuan" onclick="confirmFun()" class="btn btn-sm btn-primary">充值</button>
  281. <button type="button" id="shaixuan" onclick="cancelFun()" class="btn btn-sm ">取消</button>
  282. </div>
  283. </div>
  284. <!-- 统计图 -->
  285. <div class="" id="echarts">
  286. 设备类型:
  287. <select name="" id="typeSelect">
  288. <option value="">全部</option>
  289. <option value="2">杀虫灯</option>
  290. <option value="3">测报灯</option>
  291. </select>
  292. <div class="echartsBox fl">
  293. <div class="hint"></div>
  294. <div class="fl" id="pie-chart">1</div>
  295. </div>
  296. </div>
  297. </div>
  298. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  299. <script src="{% static '/lib/js/coordOffset.js' %}"></script>
  300. <!-- 纠偏 -->
  301. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=TcRPmrsiZUqdUBWoELrUArRkCRC36KMx"></script>
  302. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  303. <script type="text/javascript">
  304. $.ajaxSetup({
  305. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  306. });
  307. </script>
  308. <script src="{% static '/lib/js/echarts.min.js' %}"></script>
  309. <script src="{% static '/js/siminfo/siminfo.js' %}?versions=0.5.0" type="text/javascript"></script>
  310. </body>
  311. </html>