...
|
...
|
@@ -361,27 +361,13 @@ $(window).resize(function() { |
|
|
exports.init = function(page) {
|
|
|
$('#agree-terms').click(function() {
|
|
|
|
|
|
var $this = $(this),
|
|
|
i,
|
|
|
passI = 0;
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.attr('notchecked')) {
|
|
|
|
|
|
$this.removeAttr('notchecked');
|
|
|
|
|
|
// 勾选
|
|
|
for (i = 0; i < validateResult.length; i++) {
|
|
|
if (validateResult[i].status) {
|
|
|
passI++;
|
|
|
}
|
|
|
}
|
|
|
if (passI === validateResult.length) {
|
|
|
$registerBtn.removeClass('disable').removeAttr('disabled');
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
// 取消勾选
|
|
|
$registerBtn.addClass('disable').attr('disabled', 'disabled');
|
|
|
$this.attr('notchecked', 'notchecked');
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -416,7 +402,7 @@ exports.init = function(page) { |
|
|
|
|
|
}
|
|
|
|
|
|
if (statusLen === validateResult.length && !$('#agree-terms').attr('notchecked')) {
|
|
|
if (statusLen === validateResult.length) {
|
|
|
$registerBtn.removeClass('disable').removeAttr('disabled');
|
|
|
} else {
|
|
|
$registerBtn.addClass('disable').attr('disabled', 'disabled');
|
...
|
...
|
|