Authored by htoooth

Merge branch 'hotfix/async-header' into release/5.1

... ... @@ -242,18 +242,11 @@ function formatThirdMenu() {
// 更新头部登陆信息
function updateLoginInfo(data) {
var info = {
usercenter: '//www.yohobuy.com/home?t=' + new Date().getTime(),
nickname: data.profileName,
signout: '//www.yohobuy.com/logout.html'
};
if (data.curLevel * 1 === 3) {
data.vip3 = true;
}
$tool.find('.simple-user-center').html(centerFn(data));
$loginBox.html(loginFn(info));
}
// 同步sso登录状态
... ... @@ -272,7 +265,6 @@ function syncLoginInfo() {
expires: -1
});
}
$loginBox.show();
});
}
... ... @@ -508,11 +500,10 @@ setInterval(syncCratInfo, 2000); // 定时同步购物车数量
signout: '//www.yohobuy.com/logout.html'
};
if (uid === 0) {
return;
if (uid !== 0) {
$loginBox.html(loginFn(info));
}
$loginBox.html(loginFn(info));
$loginBox.show();
}());
... ...