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
Rock Zhang
2015-11-06 18:44:06 +0800
Commit
0bca17b309e8721e740c243562d331066dc53122
1 parent
9a28009c
添加对微信浏览器的判断,微信浏览器时除首页外的其他页面不显示头部
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
library/Action/AbstractAction.php
template/m.yohobuy.com/partials/layout/page_header.phtml
library/Action/AbstractAction.php
View file @
0bca17b
...
...
@@ -354,6 +354,11 @@ class AbstractAction extends Controller_Abstract
{
$header
=
array
();
// 判断是否是微信浏览器浏览
if
(
strpos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'MicroMessenger'
)
===
false
)
{
$header
[
'isShow'
]
=
true
;
}
if
(
$backUrl
)
{
$header
[
'navBack'
]
=
true
;
}
...
...
template/m.yohobuy.com/partials/layout/page_header.phtml
View file @
0bca17b
{
{#pageHeader
}
}
{
{#
isShow
}
}
<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=
"nav-back"
></a>
...
...
@@ -10,4 +11,5 @@
<p
class=
"nav-title"
>
{
{.
}
}</p>
{
{/navTitle
}
}
</header>
{
{/
isShow
}
}
{
{/pageHeader
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment