Authored by zhangxiaoru

guang 前端控制头部

... ... @@ -297,15 +297,11 @@ const index = (req, res, next) => {
return;
}
if (isqq || isWeibo) {
pageHeader: false
} else {
parameter = {
pageHeader: headerModel.setNav({
navTitle: title
})
};
}
parameter = {
pageHeader: headerModel.setNav({
navTitle: title
})
};
isShare = isWeixin || isqq || isWeibo ? true : false;
... ...
... ... @@ -2,9 +2,9 @@
{{# guang}}
<div id="wrapper" >
<div id="scroller" class="{{channel}}">
{{#if isShare}}
{{!-- {{#if isShare}} --}}
{{> wei-guang/guang-header}}
{{/if}}
{{!-- {{/if}} --}}
{{# author}}
<div class="author" data-id={{id}}>
<a class="clearfix" href={{url}}>
... ... @@ -214,3 +214,14 @@
{{#if isShare}}
{{> wei-guang/side-nav}}
{{/if}}
<script type="text/javascript">
var isWechat = /micromessenger/i.test(navigator.userAgent || ''),
isqq = /MQQBrowser/i.test(navigator.userAgent || ''),
isWeibo = navigator.userAgent.toLowerCase().indexOf('weibo') !== -1;
if (isWechat || isqq || isWeibo) {
document.getElementById('guang-header').classList.remove('hide');
document.getElementById('yoho-header').classList.add('hide');
}
</script>
... ...
<div class="guang-header clearfix">
<div id="guang-header" class="guang-header clearfix hide">
<span class="nav-btn iconfont">&#xe60b;</span>
<span class="logo"></span>
</div>
... ...