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
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
2c0c3093cc7d47ad6060e2d98da7f8a8300117df
1 parent
7e382487
fixes bug to weixin share header show error
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
library/Action/AbstractAction.php
template/m.yohobuy.com/partials/layout/page_header.phtml
library/Action/AbstractAction.php
View file @
2c0c309
...
...
@@ -359,10 +359,10 @@ class AbstractAction extends Controller_Abstract
{
$header
=
array
();
// 判断是否是微信浏览器浏览
if
(
strpos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'MicroMessenger'
)
===
false
)
{
$header
[
'isShow'
]
=
true
;
}
// // 判断是否是微信浏览器浏览
// 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 @
2c0c309
{
{#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>
...
...
@@ -11,5 +10,4 @@
<p
class=
"nav-title"
>
{
{.
}
}</p>
{
{/navTitle
}
}
</header>
{
{/
isShow
}
}
{
{/pageHeader
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment