Authored by 毕凯

去除登录时 同步session

... ... @@ -88,31 +88,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);
}
... ... @@ -146,4 +128,4 @@ $('#cancel-retrive').on('touchstart', function(e) {
//对初始有默认值的情况去初始化登录按钮状态
$account.trigger('input');
$pwd.trigger('input');
\ No newline at end of file
$pwd.trigger('input');
... ...