page_header.phtml
2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{{#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}}">
{{#navBack}}
<a href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back buriedpoint" data-bp-id="page_header_back_0"></a>
{{/navBack}}
{{#navBtn}}
<span class="iconfont nav-home"></span>
{{/navBtn}}
{{#shopPage}}
<a href="{{url}}" class="nav-sub-right">{{text}}</a>
{{/shopPage}}
{{#currencyPage}}
<a href="/home/helpDetail?code=20151230-102233&caption=有货币介绍" class="iconfont nav-home"></a>
{{/currencyPage}}
{{#currencyDetailPage}}
<a href="/home/helpDetail?code=20111130-152530&caption=如何使用有货币支付" class="iconfont nav-home"></a>
{{/currencyDetailPage}}
{{#navPhone}}
<a href="{{.}}" class="iconfont nav-home"></a>
{{/navPhone}}
{{#navTitle}}
<p class="nav-title">{{.}}</p>
{{/navTitle}}
{{# suggestSub}}
<span class="nav-btn">提交</span>
{{/ suggestSub}}
{{#orderDetail}}
<a href="{{serviceUrl}}" target="_blank" class="iconfont nav-home"></a>
{{/orderDetail}}
{{#invoiceNotice}}
<span class="invoice-btn">{{.}}</span>
{{/invoiceNotice}}
</header>
{{#navBtn}}
<div class="homebuttom hide {{#if ../boys}} boys{{/if}}{{#if ../girls}} girls{{/if}}{{#if ../kids}} kids{{/if}}{{#if ../lifeStyle}} life-style{{/if}}">
<ul>
<li>
<a href="{{ indexUrl }}">
<i class="iconfont"></i>
<span>首页</span>
</a>
</li>
<li>
<a href="{{ categoryUrl }}">
<i class="iconfont"></i>
<span>分类</span>
</a>
</li>
<li>
<a href="{{ shoppingCartUrl }}">
<i class="iconfont"></i>
<span>购物车</span>
</a>
</li>
<li>
<a href="{{ mineUrl }}">
<i class="iconfont"></i>
<span>我的</span>
</a>
</li>
</ul>
</div>
{{/navBtn}}
<script type="text/javascript">
var isWechat = /micromessenger/i.test(navigator.userAgent || '');
if (isWechat) {
document.getElementById('yoho-header').classList.add('hide');
}
</script>
{{/pageHeader}}