...
|
...
|
@@ -576,6 +576,8 @@ exports.init = function(page) { |
|
|
};
|
|
|
}
|
|
|
|
|
|
var isRegRequesting = false; // eslint-disable-line
|
|
|
|
|
|
// ajax表单提交
|
|
|
$registerBtn.click(function() {
|
|
|
var url;
|
...
|
...
|
@@ -590,6 +592,12 @@ exports.init = function(page) { |
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
if (isRegRequesting) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
isRegRequesting = true;
|
|
|
|
|
|
// ajax提交
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
...
|
...
|
@@ -636,6 +644,8 @@ exports.init = function(page) { |
|
|
alert(data.message); //eslint-disable-line
|
|
|
}
|
|
|
|
|
|
}).always(function() {
|
|
|
isRegRequesting = false;
|
|
|
});
|
|
|
}
|
|
|
});
|
...
|
...
|
|