Authored by Rock Zhang

添加对微信浏览器的判断,微信浏览器时除首页外的其他页面不显示头部

... ... @@ -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;
}
... ...
{{#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
... ...