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
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
8 years ago
Commit
bb3771d899ddedb57f63b2cd050a8a94497e5ad0
1 parent
9e97b032
link change
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
public/js/header.js
public/js/simple-header.js
public/js/header.js
View file @
bb3771d
...
...
@@ -75,6 +75,12 @@ var bannerMap = {
},
cookieMap
=
{};
var
$signinBtn
=
$
(
'#signin-url'
);
var
$regBtn
=
$
(
'#reg-url'
);
$signinBtn
.
attr
(
'href'
,
'//www.yohobuy.com/signin.html?refer='
+
window
.
location
.
href
);
$regBtn
.
attr
(
'href'
,
'//www.yohobuy.com/reg.html?refer='
+
window
.
location
.
href
);
// handlebars模板
centerFn
=
handlebars
.
compile
(
$
(
'#simple-account-info-tpl'
).
html
()
||
''
);
loginFn
=
handlebars
.
compile
(
$
(
'#header-login-info-tpl'
).
html
()
||
''
);
...
...
public/js/simple-header.js
View file @
bb3771d
...
...
@@ -76,8 +76,8 @@ function setLoginStatus(data) {
'<a href="//www.yohobuy.com/logout.html">[退出]</a>'
;
}
else
{
loginHtml
=
'<span>Hi~</span> '
+
'<a href="//www.yohobuy.com/signin.html">[请登录]</a> '
+
'<a href="//www.yohobuy.com/reg.html">[免费注册]</a>'
;
'<a href="//www.yohobuy.com/signin.html?refer="'
+
window
.
location
.
href
+
'>[请登录]</a> '
+
'<a href="//www.yohobuy.com/reg.html"'
+
window
.
location
.
href
+
'>[免费注册]</a>'
;
}
$
(
'.header-tool li'
).
eq
(
0
).
html
(
loginHtml
);
}
...
...
Please
register
or
login
to post a comment