fei.wang
2024-03-07 80c20bb65f4b73d8beb817e0d595889cd44479dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2023/8/14
  Time: 11:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
    <link href="/HxzkFlow/images/favicon.ico" rel="icon" type="image/x-icon"/>
    <style>
        .panbox{
            width: 540px;
            height: 130px;
            float: left;
            margin-left: 20px;
            margin-top: 10px;
            color: white;
            font-size: 22px;
        }
    </style>
</head>
<body>
<div style="width: 100%">
    <a href="javascript:;"><div class="panbox" style="background-color: #096DD9;">
        <div style="margin-top: 15px;margin-left: 20px">
            <span style="font-size: 14px">总卡数</span><br>
            <span style="font-size: 34px;margin-top: 18px;display: inline-block"  class="zk">0</span>
        </div>
    </div></a>
    <a href="javascript:;" onclick="bydq()"> <div class="panbox" style="background-color: #722ED1">
        <div style="float: left;margin-left: 20px;margin-top: 15px">
            <span style="font-size: 14px">本月到期</span><br>
            <span style="font-size: 34px;margin-top: 18px;display: inline-block" class="by">0</span>
        </div>
        <div style="float: left;margin-left: 250px;margin-top: 15px">
            <span style="font-size: 14px">次月激活</span><br>
            <span style="font-size: 34px;margin-top: 18px;display: inline-block" class="cy">0</span>
        </div>
    </div></a>
    <a href="javascript:;"> <div class="panbox" style="background-color:#D46B08;">
        <div style="float: left;margin-left: 20px;margin-top: 15px">
            <span style="font-size: 14px">达量断网</span><br>
            <span style="font-size: 34px;margin-top: 18px;display: inline-block" class="dw">0</span>
        </div>
        <div style="float: left;margin-left: 250px;margin-top: 15px">
            <span style="font-size: 14px">即将达量</span><br>
            <span style="font-size: 34px;margin-top: 18px;display: inline-block" class="jjdl">0</span>
        </div>
    </div></a>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>
    var qb = localStorage.getItem("gsjc")
    var ds = "qb="+localStorage.getItem("gsmc")
    var data = "qb="+qb
    if(qb == "华星智控"){
        $.get("/HxzkFlow/hxzk/chawu",function (data){
            $(".zk").text(data[0])
            $(".by").text(data[1])
            $(".cy").text(data[2])
            $(".dw").text(data[3])
            $(".jjdl").text(data[4])
        })
        setInterval(function() {
            $.get("/HxzkFlow/hxzk/chawu",function (data){
                $(".zk").text(data[0])
                $(".by").text(data[1])
                $(".cy").text(data[2])
                $(".dw").text(data[3])
                $(".jjdl").text(data[4])
            })
        }, 60000);
    }else{
        $.post("/HxzkFlow/hxzk/chawu1",ds,function (dt){
            $(".zk").text(dt[0])
            $(".by").text(dt[1])
            $(".cy").text(dt[2])
            $(".dw").text(dt[3])
            $(".jjdl").text(dt[4])
        })
        setInterval(function() {
            $.post("/HxzkFlow/hxzk/chawu1",ds,function (data){
                $(".zk").text(data[0])
                $(".by").text(data[1])
                $(".cy").text(data[2])
                $(".dw").text(data[3])
                $(".jjdl").text(data[4])
            })
        }, 60000);
    }
</script>
</html>