| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- {% load staticfiles %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
- <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}" />
- <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
- <style type="text/css">
- body {
- overflow: hidden;
- background: #fff;
- }
- .searchCover {
- margin: 20px 0;
- }
- .floatRright{
- display: inline-block;
- float: right;
- }
- .innerTable {
- padding: 0 1px 0 0;
- min-width: 750px;
- overflow-x: scroll;
- }
- .table,
- .table.table-striped>thead>tr>th {
- text-align: center;
- }
- table td {
- vertical-align: middle !important;
- }
- .nullData {
- width: 100%;
- height: 500px;
- background: #ddd;
- text-align: center;
- line-height: 500px;
- font-size: 20px;
- border: 1px solid #ddd;
- }
- .refresh {
- font-size: 16px;
- color: #4C8FBD;
- margin-right: 30px;
- }
- .content {
- overflow-x: scroll;
- }
- #bindingEquipBox {
- display: none;
- }
- #bindingRes>div {
- padding: 10px 0;
- border-bottom: 1px solid #a2a2a2;
- }
- /* 充值 */
- .rechargeParent{
- display: none;
- }
- .rechargeParent>h2 {
- line-height: 46px;
- font-size: 24px;
- background: #ECECEC;
- border-bottom: 1px solid #ddd;
- padding-left: 17px;
- margin-bottom: 30px;
- }
- .recharge-demo {
- width: 90%;
- margin: 0 auto;
- border: 2px solid #ddd;
- text-align: center;
- cursor: pointer;
- position: relative;
- margin-bottom: 30px;
- }
- .recharge-demo:hover,
- .recharge-demo.active {
- border: 2px solid red;
- }
- .recharge-demo.active .switchIcon {
- position: absolute;
- bottom: 0;
- right: 0;
- height: 47px;
- width: 52px;
- background: url(../static/img/rechargeIcon.png);
- }
- .recharge-name {
- color: #818181;
- font-size: 26px;
- font-weight: 700;
- letter-spacing: 2px;
- line-height: 47px;
- border-bottom: 1px dashed #ddd;
- }
- .price {
- font-size: 33px;
- color: red;
- padding: 12px 0 4px;
- letter-spacing: 1px;
- }
- .price span {
- font-size: 14px;
- }
- .desc {
- font-size: 14px;
- letter-spacing: 2px;
- color: #8d8d8d;
- padding-bottom: 20px;
- }
- .increase {
- width: 38px;
- height: 32px;
- border: 2px white;
- float: left;
- background: #ececec;
- }
- .increase:hover {
- background: #d9d9d9;
- }
- .increaseVal {
- text-align: center;
- width: 50px;
- height: 32px;
- float: left;
- }
- .increaseBtnDiv {
- width: 145px;
- display: inline-block;
- vertical-align: middle;
- }
- .rechargeBtnDiv {
- text-align: right;
- padding: 0 20px 20px;
- }
- .rechargeA{
- display: none;
- }
- #echarts{
- margin: 20px;
- display: none;
- }
- .echartsBox{
- width: 380px;
- margin: 0 auto;
- height: 380px;
- }
- #pie-chart{
- width: 400PX;
- height: 400PX;
- }
- </style>
- <body>
- <div class="content">
- <div class="searchCover">
- 设备ID:
- <input type="text" id="imei" autocomplete="off" placeholder="请输入设备ID" onkeypress="if (event.keyCode == 13) sub_filter();" >
- SIM卡iccid:
- <input type="text" value="" class="" id="iccid" autocomplete="off" placeholder="请输入SIM卡iccid" onkeypress="if (event.keyCode == 13) sub_filter();" />
- SIM卡状态:
- <select name="" id="status">
- <option value="">请选择</option>
- <option value="1">测试期</option>
- <option value="2">沉默期</option>
- <option value="3">使用中</option>
- <option value="4">停机</option>
- <option value="5">停机保号</option>
- <option value="6">预销号</option>
- <option value="7">销号</option>
- <option value="0">未知</option>
- </select>
- <button type="button" onclick="sub_filter()" class="btn btn-sm btn-primary">筛选</button>
- <button type="button" onclick="lookEchart()" class="btn btn-sm btn-success">状态统计</button>
- <div class="floatRright">
- <a class="refresh rechargeA" onclick="rechargeFun()" href="javascript:;">
- <i class="fa fa-jpy" aria-hidden="true" width="28"></i>
- 充值 </a>
- <a class="refresh" onclick="examineEquip()" href="javascript:;">
- <i class="fa fa-search" aria-hidden="true" width="28"></i>
- 绑定设备查询 </a>
- <a class="refresh" onclick="examineSIM()" href="javascript:;">
- <i class="fa fa-search" aria-hidden="true" width="28"></i>
- SIM卡查询 </a>
- </div>
- </div>
-
- <div class="innerTable">
- <table id="datatable" class="table table-striped table-hover">
- <thead>
- <tr>
- <th>设备ID</th>
- <th>设备名称</th>
- <th>设备类型</th>
- <th>SIM卡iccid</th>
- <th>激活日期</th>
- <th>SIM卡状态</th>
- <th>套餐(Mb)</th>
- <th>已用流量(Mb)</th>
- <th>剩余流量(Mb)</th>
- <th>到期时间</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- <div class="fenpei-bottom">
- <input type="hidden" id="totalPage" value={{ nums }}>
- <div id="page" style="text-align: center;"></div>
- </div>
- </div>
- <!-- 绑定设备展示框 -->
- <div id="bindingEquipBox" style="display:none">
- <div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">
- <div>绑定设备查询结果</div>
- <p id="curIccid">ICCID: text</p>
- <div id="bindingRes">
- <!-- <div>
- 状态:status
- <br>套餐dat.data_plan'Mb
- <br>已用流量:usage Mb
- <br>剩余流量:balanceMb
- <br>到期时间:89860401101700076454
- </div> -->
- </div>
- </div>
- </div>
- <!-- 充值 -->
- <div id="voucherModel" class="rechargeParent">
- <h2>充值套餐选择</h2>
- <input type="hidden" value="" class="currIccid">
- <div class="layui-row">
- <div class="layui-col-xs4">
- <div class="recharge-demo">
- <input type="hidden" value="22" class="product_id">
- <div class="recharge-name">10MB</div>
- <div>
- <div class="price">999
- <span>元</span>
- </div>
- <div class="desc">6个月每月10Mb</div>
- </div>
- <div class="switchIcon"></div>
- </div>
- </div>
- <div class="layui-col-xs4">
- <div class="recharge-demo active">
- <div class="recharge-name">10MB</div>
- <div>
- <div class="price">999
- <span>元</span>
- </div>
- <div class="desc">6个月每月10Mb</div>
- </div>
- <div class="switchIcon"></div>
- </div>
- </div>
- <div class="layui-col-xs4">
- <div class="recharge-demo">
- <div class="recharge-name">10MB</div>
- <div>
- <div class="price">999
- <span>元</span>
- </div>
- <div class="desc">6个月每月10Mb</div>
- </div>
- <div class="switchIcon"></div>
- </div>
- </div>
- </div>
- <div class="rechargeBtnDiv">
- <div class="increaseBtnDiv">
- <input class="increase" type="button" value="-" onclick="reductionOf(this)" />
- <input class="increaseVal" type="text" value="1" onblur="checkNumber(this)" />
- <input class="increase" type="button" value="+" onclick="add(this)" />
- </div>
- <button type="button" id="shaixuan" onclick="confirmFun()" class="btn btn-sm btn-primary">充值</button>
- <button type="button" id="shaixuan" onclick="cancelFun()" class="btn btn-sm ">取消</button>
- </div>
- </div>
- <!-- 统计图 -->
- <div class="" id="echarts">
- 设备类型:
- <select name="" id="typeSelect">
- <option value="">全部</option>
- <option value="2">杀虫灯</option>
- <option value="3">测报灯</option>
- </select>
- <div class="echartsBox fl">
- <div class="hint"></div>
- <div class="fl" id="pie-chart">1</div>
- </div>
- </div>
- </div>
- <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
- <script src="{% static '/lib/js/coordOffset.js' %}"></script>
- <!-- 纠偏 -->
- <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=TcRPmrsiZUqdUBWoELrUArRkCRC36KMx"></script>
- <script src="{% static '/lib/layui/layui.all.js' %}"></script>
- <script type="text/javascript">
- $.ajaxSetup({
- data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
- });
- </script>
- <script src="{% static '/lib/js/echarts.min.js' %}"></script>
- <script src="{% static '/js/siminfo/siminfo.js' %}?versions=0.5.0" type="text/javascript"></script>
- </body>
- </html>
|