111
This commit is contained in:
49
login.html
49
login.html
@@ -9,12 +9,12 @@
|
||||
<!-- 嵌入头部 -->
|
||||
<script type="text/javascript" src="./js/jquery.js"></script>
|
||||
<script>
|
||||
// $(function(){
|
||||
// $("#header").load("./header.html");
|
||||
// });
|
||||
// $(function(){
|
||||
// $("#footer").load("./footer.html");
|
||||
// });
|
||||
$(function(){
|
||||
$("#header").load("./header.html");
|
||||
});
|
||||
$(function(){
|
||||
$("#footer").load("./footer.html");
|
||||
});
|
||||
</script>
|
||||
<body>
|
||||
<div class="login">
|
||||
@@ -125,17 +125,21 @@
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' + Date
|
||||
.now());
|
||||
</script>
|
||||
<script>
|
||||
var time1 = Date.now()
|
||||
|
||||
var time2 = ''
|
||||
|
||||
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' + time1);
|
||||
|
||||
function openPopup() {
|
||||
document.getElementById("popup").style.display = "block";
|
||||
document.getElementById("mask").style.display = "block";
|
||||
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' +
|
||||
Date
|
||||
.now());
|
||||
|
||||
var time2 = Date.now()
|
||||
|
||||
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' +time2);
|
||||
}
|
||||
|
||||
function closePopup() {
|
||||
@@ -271,13 +275,13 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$.post('http://aos.yyundong.com/ycsafe/website/register', {
|
||||
$.post('http://192.168.0.105:7072/ycsafe/website/register', {
|
||||
'name': name,
|
||||
'password': password,
|
||||
'telephone': telephone,
|
||||
'enterpriseName': companyName,
|
||||
'captcha': captcha,
|
||||
'timestamp': Date.now(),
|
||||
'timestamp':time2,
|
||||
}, function(resp) {
|
||||
|
||||
if (!!resp && !!resp.result) {
|
||||
@@ -291,16 +295,15 @@
|
||||
|
||||
function changeCodeImg1() {
|
||||
console.log("changeCodeImg1", Date.now());
|
||||
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' +
|
||||
Date
|
||||
.now());
|
||||
|
||||
time1 = Date.now()
|
||||
|
||||
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' + time1);
|
||||
}
|
||||
|
||||
function changeCodeImg2() {
|
||||
|
||||
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' +
|
||||
Date
|
||||
.now());
|
||||
time2 = Date.now()
|
||||
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' + time2);
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user