...
|
...
|
@@ -29,7 +29,9 @@ var $pwdIntensity = $('.pwd-intensity'), |
|
|
|
|
|
//signup验证
|
|
|
var $region = $('#country-code'),
|
|
|
$regionSelect = $('#region');
|
|
|
$regionSelect = $('#region'),
|
|
|
isPwd = false,
|
|
|
pwdVal;
|
|
|
|
|
|
setTimeout(function() {
|
|
|
$pn.val('');
|
...
|
...
|
@@ -43,10 +45,13 @@ setTimeout(function() { |
|
|
$ca.attr('maxlength', caCount);
|
|
|
|
|
|
//密码规则提示
|
|
|
$pwd.focus(function() {
|
|
|
$pwd.focus(function(event) {
|
|
|
$pwdTips.removeClass('hide');
|
|
|
isPwd = true;
|
|
|
pwdVal = $(this).val();
|
|
|
}).blur(function() {
|
|
|
$pwdTips.addClass('hide');
|
|
|
isPwd = false;
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
@@ -509,6 +514,23 @@ exports.init = function(page) { |
|
|
});
|
|
|
});
|
|
|
|
|
|
// 防止粘贴密码
|
|
|
/*$('#pwd, #repwd').keydown(function (event) {
|
|
|
|
|
|
console.log(event.ctrlKey);
|
|
|
console.log(isPwd);
|
|
|
console.log(event.keyCode);
|
|
|
|
|
|
if (event.ctrlKey && isPwd && event.keyCode === 86) {
|
|
|
$(this).val(pwdVal);
|
|
|
}
|
|
|
|
|
|
});*/
|
|
|
|
|
|
$pwd[0].onpaste = function() {
|
|
|
return false;
|
|
|
};
|
|
|
|
|
|
//ajax表单提交
|
|
|
$registerBtn.click(function() {
|
|
|
|
...
|
...
|
|