Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
2015-11-24 15:38:09 +0800
Commit
2a971042e3222e7936d1c6875bd4401f8dfa8627
1 parent
a43e9f98
nav back with url
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 @
2a97104
...
...
@@ -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 @
2a97104
{
{#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