Authored by 杨延青

js 编译

... ... @@ -1813,7 +1813,6 @@ function limitUsername() {
nameVal = $name.html(),
nameSize = nameVal.length,
bytesCount = 0,
bcount = 0,
newName = '';
var i, code;
... ... @@ -1828,16 +1827,9 @@ function limitUsername() {
}
if (bytesCount > 8) {
newName += '..';
}
for (i = 0; i < nameSize; i++) {
code = nameVal.charAt(i);
bcount = bytesCountAction(code, bcount);
if (bcount > bytesCount - 2) {
newName += code;
}
newName += '..' + nameVal.charAt(nameSize - 1);
} else {
newName = nameVal;
}
$name.html(newName);
... ... @@ -4582,31 +4574,13 @@ $loginBtn.on('touchstart', function() {
password: pwd
},
success: function(data) {
var res,
time;
var res;
if (data.code === 200) {
res = data.data;
$.ajax({
url: res.session,
dataType: 'jsonp',
success: function() {
clearTimeout(time);
//Cookie写入成功后,1s后跳转页面
setTimeout(function() {
location.href = res.href;
}, 1000);
}
});
//3秒后强制跳转
time = setTimeout(function() {
location.href = res.href;
}, 3000);
showErrTip('登录成功');
location.href = res.href;
} else {
showErrTip(data.message);
}
... ... @@ -4641,6 +4615,7 @@ $('#cancel-retrive').on('touchstart', function(e) {
//对初始有默认值的情况去初始化登录按钮状态
$account.trigger('input');
$pwd.trigger('input');
});
define("js/passport/login/international", ["jquery"], function(require, exports, module){
/**
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.