Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
htoooth
8 years ago
Commit
16794ba1b73d8af5724d02c78f3a7ee920d7a11f
2 parents
b6360e95
a517676f
Merge branch 'hotfix/async-header' into release/5.1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
public/js/header.js
public/js/header.js
View file @
16794ba
...
...
@@ -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
();
}());
...
...
Please
register
or
login
to post a comment