Authored by unknown

找回密码校验及logobrand js @review by 王成龙

... ... @@ -79,6 +79,10 @@ var $ = require('yoho.jquery'),
var brandTpl,
brandHtml;
if (!data || data.length === 0) {
return;
}
that._createHelper();
brandHtml = '\{{#brandList logoBrand}}' +
'<a href="\{{href}}" target="_blank"><img class="lazy" data-original="\{{img}}" alt=""></a>' +
... ...
... ... @@ -174,6 +174,9 @@ $('.va').keyup(function() {
} else if (v.length < 6 || v.length > 20) {
$(this).addClass('error');
$pwdErr.removeClass('hide').find('em').text('密码只支持6-20位');
} else if (/^([a-zA-Z0-9\-\+_!@\#$%\^&\*\(\)\:\;\.=\[\]\\\',\?]){6,20}$/.test(v)) {
$(this).addClass('error');
$pwdErr.removeClass('hide').find('em').text('密码不能包含特殊字符');
} else {
$pwdErr.addClass('hide');
if ($repwd.val() !== '') {
... ...