Authored by htoooth

fix

... ... @@ -10,7 +10,7 @@
</p>
<form action="infoform" method="post">
<div class="validaterow">
<div class="yohobindrow" style="height: 100px;">
<div class="yohobindrow" style="height: 120px;">
<div id="captcha" class="{{#unless @root.captcha.value}}hide{{/unless}}" style="display: inline-block; position: relative;">
</div>
</div>
... ...
... ... @@ -43,7 +43,6 @@ function sendMessageValidate() {
var area = '';
$(document).on('click', '#sendmessage', function() {
circleTime();
mobile = $('#mobile').val();
area = $('#area').val();
$.ajax({
... ... @@ -55,6 +54,11 @@ function sendMessageValidate() {
verifyCode: captcha.getResults()
}
}).then(function(data) {
if (data.code === 200) {
circleTime();
return;
}
if (data.data && data.data.needCaptcha) {
captcha.show();
}
... ... @@ -127,7 +131,6 @@ function actionConfirm() {
function init() {
sendMessageValidate();
actionConfirm();
circleTime();
}
init();
... ...
... ... @@ -71,11 +71,6 @@ validateResult = [
id: 'pwd',
message: '',
status: false
},
{
id: 'repwd',
message: '',
status: false
}
];
... ... @@ -380,7 +375,7 @@ exports.init = function(page) {
passI++;
}
}
if (passI === 4) {
if (passI === validateResult.length) {
$registerBtn.removeClass('disable').removeAttr('disabled');
}
} else {
... ... @@ -421,7 +416,7 @@ exports.init = function(page) {
}
if (statusLen === 4 && !$('#agree-terms').attr('notchecked')) {
if (statusLen === validateResult.length && !$('#agree-terms').attr('notchecked')) {
$registerBtn.removeClass('disable').removeAttr('disabled');
} else {
$registerBtn.addClass('disable').attr('disabled', 'disabled');
... ...