...
|
...
|
@@ -614,6 +614,15 @@ handlebars.registerHelper('equalone', function(v1, options) { |
|
|
}
|
|
|
});
|
|
|
/**
|
|
|
* 时间戳
|
|
|
* @param {[type]} v1 [description]
|
|
|
* @param {[type]} options) { if (v1 [description]
|
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
handlebars.registerHelper('timestamp', function() {
|
|
|
return new Date().getTime();
|
|
|
});
|
|
|
/**
|
|
|
* 判断等级为3的helper
|
|
|
* @param {[type]} v1 [description]
|
|
|
* @param {[type]} options) { if (v1 [description]
|
...
|
...
|
@@ -5720,18 +5729,19 @@ $account.on('keyup', function() { |
|
|
|
|
|
//数字邮箱补全
|
|
|
postfix = mailPostfix.num;
|
|
|
matchStr = accountMatch[1];
|
|
|
} else {
|
|
|
postfix = mailPostfix.other;
|
|
|
matchStr = account.match(/@(.*)/)[1];
|
|
|
}
|
|
|
|
|
|
matchStr = accountMatch[1];
|
|
|
for (i = 0; i < postfix.length; i++) {
|
|
|
if (postfix[i].indexOf(matchStr) > -1) {
|
|
|
html += '<li>' + account.slice(0, account.indexOf('@')) + '@' + postfix[i] + '</li>';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (html !== '') {
|
|
|
if (html !== '' && /.com$/.test(account) === false) {
|
|
|
$emailAutoComplete.html(html).removeClass('hide');
|
|
|
} else {
|
|
|
|
...
|
...
|
@@ -5824,7 +5834,7 @@ $('#login-btn').on('click', function() { |
|
|
location.href = data.data.session;
|
|
|
}
|
|
|
} else {
|
|
|
$passwordTip.removeClass('hide').children('em').text(data.message);
|
|
|
$passwordTip.removeClass('hide').children('em').html(data.message);
|
|
|
$password.addClass('error');
|
|
|
}
|
|
|
},
|
...
|
...
|
|