Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
hf
2015-11-24 17:20:53 +0800
Commit
b8455831ebc3f908900733413001a88573832a2e
2 parents
40474a83
2a971042
Merge branch 'test' of
http://git.dev.yoho.cn/web/yohobuy
into test
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
docs/data-structure.md
template/m.yohobuy.com/partials/layout/page_header.phtml
docs/data-structure.md
View file @
b845583
...
...
@@ -69,7 +69,9 @@
kids: true,
lifeStyle: true,
//对应页面有就传,没有就不传
navBack: true,
navBack: {
backUrl: '' //需要指定回退路径的传此值,若使用默认history.back(-1)的就不传
},
navTitle: '',
navHome: ''
}
...
...
template/m.yohobuy.com/partials/layout/page_header.phtml
View file @
b845583
{
{#pageHeader
}
}
<header
id=
"yoho-header"
class=
"yoho-header{{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"
>
{
{#if
navBack
}
}
<a
href=
"javascript:history.go(-1);"
class=
"iconfont nav-back"
>
610
;</a>
{
{/if
}
}
{
{#navBack
}
}
<a
href=
"{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}"
class=
"iconfont nav-back"
>
610
;</a>
{
{/navBack
}
}
{
{#navHome
}
}
<a
href=
"{{.}}"
class=
"iconfont nav-home"
>
611
;</a>
{
{/navHome
}
}
...
...
Please
register
or
login
to post a comment