xinyb
2024-06-15 fdd73a906963f31abb59d81c10cc163eab47404a
提交 | 用户 | age
a6a76f 1 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
F 2 <%
3     if (request.getProtocol().compareTo("HTTP/1.0")==0)
4     response.setHeader("Pragma","no-cache");
5     if (request.getProtocol().compareTo("HTTP/1.1")==0)
6     response.setHeader("Cache-Control","no-cache");
7     response.setDateHeader("Expires",0);
8     String URL = (request.getRequestURL()+"").replace(request.getRequestURI(),"") + request.getContextPath();
9     String CorpId = request.getParameter("CorpId");
10     String code = request.getParameter("code");
11     //System.out.println("CorpId ="+CorpId + "code="+code) ;
12
13 response.setHeader("Cache-Control","no-cache"); 
14 response.setHeader("Pragma","no-cache"); 
15 response.setDateHeader("Expires",0); 
16 %>
4a551f 17 <!DOCTYPE html >
a6a76f 18 <html xmlns="http://www.w3.org/1999/xhtml">
F 19 <head>
20 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
21 <meta http-equiv="X-UA-Compatible" content="IE=8">
22 <meta http-equiv="Expires" content="0">
23 <meta http-equiv="Pragma" content="no-cache">
24 <meta http-equiv="Cache-control" content="no-cache">
25 <meta http-equiv="Cache" content="no-cache">
26 <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
27 <meta name="renderer" content="webkit">
28 <title>微信用户验证</title>
29 <link rel="stylesheet" href="/style/login.css?v=<%=com.yc.utils.FileUtil.getVerstion(request,"/style/login.css")%>" />
30 <script src="<%=URL %>/js/jquery.js" type="text/javascript"></script>
31 <script type="text/javascript">
32 if(window.parent.length>0)
33 {
34     window.parent.location='<%=URL %>/weixin/reg.jsp';
35 }
36 $(document).ready( function() {
37     $("#sub").click(function(){
38             var temp="";
39         
40             if($("#name").val()=="") temp+="请输入账号\n";
41             if($("#pwd").val()=="") temp+="请输入密码\n";
42         
43             if($("#name").val()!=""&&$("#pwd").val()!=""){
44                 $("#form1").submit();
45             }else  {
46                 alert(temp) ;
47             }
48         });
49         $("#name").keydown(function(e){
50             var e=e||window.event;
51             if(e.keyCode==13){//回车键
52                 $("#pwd").focus();
53             }
54         });
55         $("#pwd").keydown(function(e){
56             var e=e||window.event;
57             if(e.keyCode==13){//回车键
58                 $("#sub").click();
59             }
60         });
61 });
62 </script>  
63 </head>
64 <body>
65 <div class="banner">需验证您的ERP登录信息</div>
66 <form action="<%=URL %>/wx/CpReg.do?CorpId=<%=CorpId %>&code=<%=code %>" method="post" id="form1" onsubmit="return false;">
67 <div style="line-height:44px; vertical-align:middle">账号&nbsp;&nbsp;<input type="text" id="name" name="account"  maxlength="30" style="width:60;overflow-x:visible;overflow-y:visible;"/></div>
68 <div style="line-height:44px; vertical-align:middle">密码&nbsp;&nbsp;<input type="password" id="pwd" name="pwd"  maxlength="30" style="width:60;overflow-x:visible;overflow-y:visible;"/></div>
69 <div style="width:122px;height:100%; margin:0 auto;float:middle;">
70     <div style="height:11px;"></div>
71     <div id="sub" class="img-submit"></div>
72 </div>
73 </form>
74 </body>
75 </html>