zj
2025-06-30 414555cfbb72c02ebc07ca164a7ff0d0f592de13
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
98
99
100
101
102
103
104
105
106
107
<%@ page language="java" pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    String base = "http://" + request.getServerName() + ":"+request.getServerPort()+"/";
%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            *, *:before, *:after {
                -webkit-box-sizing: border-box;
                -moz-box-sizing: border-box;
                box-sizing: border-box;
            }
            a {text-decoration: none;color: #58666e;}
            .title-yz{font-size: 28px;font-weight: 600;text-align: center;margin-top: 60px;}
            .form-yz{width: 80%;max-width: 600px;margin: 0 auto;padding-top: 80px;}
            .form-yz .form-group {margin-bottom: 18px;}
            .form-yz .col-sm-2{display: inline-block;width: 20%;}
            .form-yz .col-sm-3{display: inline-block;width: 30%;text-align: right;font-size: 12px;}
            .form-yz .col-sm-4{display: inline-block;width: 40%;margin: 0 4%;}
            .form-yz input{
                width: 100%;
                height: 34px;
                border-radius: 3px;
                padding-left: 10px;
                font-size: 14px;
                background: #fff;
                border: 1px solid #BDC4C9;
                box-shadow: inset 0px 1px 0px #F1F0F1;
                outline: none;
            }
            .btn-confirm {
                text-align: center;
                width: 200px;
                height: 34px;
                line-height: 34px;
                margin: 60px auto;
                font-size: 14px;
                border: none;
                background: #e4e4e4;
                border-radius: 3px;
                background-color: #399bff;
                color: #fff;
            }
            .btn-light {
                display: inline-block;
                text-align: center;
                width: 100px;
                background-color: #fff;
                border: 1px solid #BDC4C9;
                font-size: 14px;
                padding: 5px 0;
                border-radius: 3px;
            }
            .btn-disabled{
                background-color: #cccccc!important;
                color: #999999;
                pointer-events:none;
             }
             .word-yz{color: #f00;font-size: 12px;margin: 0 0 4px 35%;}
        </style>
    <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
    </head>
    <body>
        <div>
            <div class="title-yz">谷歌验证</div>
            <form class="form-yz" action="<%=basePath%>normal/adminGoogleAuthAction!checkGoogleAuthCodeForLogin.action"
             method="post" name="mainForm" id="mainForm">
             
             
             <c:if test="${check_opera_ip == 'true'}">
                <div class="word-yz">此次操作ip与上次登录ip不相符</div>
             </c:if>
                <div class="form-group">
                    <label for="input002" class="col-sm-3 control-label form-label">登录人账户</label>
                    <div class="col-sm-4 btn-disabled">
                        <input id="username" type="text" name="username" class="btn-disabled" value="${username}" disabled>
                    </div>
                </div>
                
                <div class="form-group" style="">
 
                    <label for="input002" class="col-sm-3 control-label form-label">谷歌验证码</label>
                    <div class="col-sm-4">
                        <input id="google_auth_code" type="text" name="google_auth_code" placeholder="请输入谷歌验证码">
                    </div>
                </div>
                <div class="word-yz">${error}</div>
                <div class="btn-confirm" onClick="submit();" style="cursor:pointer;">确定</div>
                
            </form>
        </div>
    </body>
    <script type="text/javascript">
    function submit(){
        $("#mainForm").submit();
    }
    
    </script>
</html>