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
郭成尧
9 years ago
Commit
b960576aee7480caa4d6b98e429c13ff11382f65
2 parents
978dca8b
6eb88041
Merge branch 'release/4.6' of git.yoho.cn:fe/yohobuy-node into release/4.6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
doraemon/models/header.js
doraemon/views/partial/header.hbs
public/scss/common/_header.css
doraemon/models/header.js
View file @
b960576
...
...
@@ -61,6 +61,7 @@ const getNavBar = (data, type) => {
obj
.
link
=
item
.
sort_url
;
obj
.
cn
=
item
.
sort_name
;
obj
.
en
=
item
.
sort_name_en
;
obj
.
isNewPage
=
item
.
is_new_page
===
'Y'
?
true
:
false
;
if
(
type
===
lowEn
)
{
obj
.
active
=
true
;
...
...
@@ -186,6 +187,7 @@ const setHeaderData = (resData, type) => {
subNav
:
resData
?
getSubNav
(
resData
,
type
)
:
[]
}
};
return
data
;
};
...
...
doraemon/views/partial/header.hbs
View file @
b960576
...
...
@@ -68,13 +68,13 @@
{{#
navbars
}}
<li
{{#if
active
}}
class=
"cure"
{{/if}}{{#if
ico
}}
style=
"background: url(
{{
image
ico
54
32
}}
) no-repeat center center"
{{/if}}
>
{{#if
ico
}}
<a
href=
"
{{
link
}}
"
class=
"menu-ico"
></a>
<a
href=
"
{{
link
}}
"
{{#if
isNewPage
}}
target=
"_blank"
{{/if}}
class=
"menu-ico"
></a>
{{^}}
<h3
class=
"name-cn"
>
<a
href=
"
{{
link
}}
"
>
{{
cn
}}
</a>
<a
href=
"
{{
link
}}
"
{{#if
isNewPage
}}
target=
"_blank"
{{/if}}
>
{{
cn
}}
</a>
</h3>
<h3
class=
"name-en"
>
<a
href=
"
{{
link
}}
"
>
{{
en
}}
</a>
<a
href=
"
{{
link
}}
"
{{#if
isNewPage
}}
target=
"_blank"
{{/if}}
>
{{
en
}}
</a>
</h3>
{{/if}}
</li>
...
...
public/scss/common/_header.css
View file @
b960576
...
...
@@ -282,7 +282,7 @@
li
{
float
:
left
;
padding
:
8px
2
3
px
5px
;
padding
:
8px
2
2
px
5px
;
a
{
font-size
:
12px
;
...
...
@@ -324,7 +324,7 @@
background
:
resolve
(
'layout/logo-en.png'
)
no-repeat
center
center
;
width
:
182px
;
height
:
53px
;
left
:
4
2
%
;
left
:
4
3
%
;
margin-top
:
22px
;
position
:
absolute
;
animation
:
logoflip
20s
infinite
;
...
...
Please
register
or
login
to post a comment