|
@ -9,11 +9,11 @@ |
|
|
<!-- 嵌入头部 --> |
|
|
<!-- 嵌入头部 --> |
|
|
<script type="text/javascript" src="./js/jquery.js"></script> |
|
|
<script type="text/javascript" src="./js/jquery.js"></script> |
|
|
<script> |
|
|
<script> |
|
|
$(function(){ |
|
|
$(function() { |
|
|
$("#header").load("./header.html"); |
|
|
$("#header").load("./header.html"); |
|
|
}); |
|
|
}); |
|
|
$(function(){ |
|
|
$(function() { |
|
|
$("#footer").load("./footer.html"); |
|
|
$("#footer").load("./footer.html"); |
|
|
}); |
|
|
}); |
|
|
</script> |
|
|
</script> |
|
|
<body> |
|
|
<body> |
|
@ -127,19 +127,20 @@ |
|
|
</body> |
|
|
</body> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
var time1 = Date.now() |
|
|
var time1 = Date.now() |
|
|
|
|
|
|
|
|
var time2 = '' |
|
|
var time2 = '' |
|
|
|
|
|
|
|
|
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' + time1); |
|
|
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' + time1); |
|
|
|
|
|
|
|
|
function openPopup() { |
|
|
function openPopup() { |
|
|
document.getElementById("popup").style.display = "block"; |
|
|
document.getElementById("popup").style.display = "block"; |
|
|
document.getElementById("mask").style.display = "block"; |
|
|
document.getElementById("mask").style.display = "block"; |
|
|
|
|
|
|
|
|
var time2 = Date.now() |
|
|
var time2 = Date.now() |
|
|
|
|
|
|
|
|
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' +time2); |
|
|
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImagetype=math×tamp=' + |
|
|
|
|
|
time2); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function closePopup() { |
|
|
function closePopup() { |
|
@ -275,13 +276,13 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$.post('http://192.168.0.105:7072/ycsafe/website/register', { |
|
|
$.post('http://aos.yyundong.com/ycsafe/ycsafe/website/register', { |
|
|
'name': name, |
|
|
'name': name, |
|
|
'password': password, |
|
|
'password': password, |
|
|
'telephone': telephone, |
|
|
'telephone': telephone, |
|
|
'enterpriseName': companyName, |
|
|
'enterpriseName': companyName, |
|
|
'captcha': captcha, |
|
|
'captcha': captcha, |
|
|
'timestamp':time2, |
|
|
'timestamp': time2, |
|
|
}, function(resp) { |
|
|
}, function(resp) { |
|
|
|
|
|
|
|
|
if (!!resp && !!resp.result) { |
|
|
if (!!resp && !!resp.result) { |
|
@ -296,14 +297,16 @@ |
|
|
function changeCodeImg1() { |
|
|
function changeCodeImg1() { |
|
|
console.log("changeCodeImg1", Date.now()); |
|
|
console.log("changeCodeImg1", Date.now()); |
|
|
|
|
|
|
|
|
time1 = Date.now() |
|
|
time1 = Date.now() |
|
|
|
|
|
|
|
|
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' + time1); |
|
|
$('#codeImg1').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' + |
|
|
|
|
|
time1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function changeCodeImg2() { |
|
|
function changeCodeImg2() { |
|
|
time2 = Date.now() |
|
|
time2 = Date.now() |
|
|
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' + time2); |
|
|
$('#codeImg2').attr('src', 'http://aos.yyundong.com/ycsafe/captcha/captchaImage?type=math×tamp=' + |
|
|
|
|
|
time2); |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
</html> |
|
|
</html> |