left-content.hbs
4.94 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{{# leftContent}}
{{!-- 全部折扣 --}}
{{# allDiscount}}
<div class="sort-container">
<ul class="sort-child-list new-sale">
{{#each list}}
<li {{#if active}}class="active"{{/if}}>
<a href="{{href}}" title="{{name}}">
{{name}}
<span>{{num}}</span>
</a>
</li>
{{/each}}
</ul>
</div>
{{/ allDiscount}}
{{!-- 新品上架 --}}
{{# newSales}}
<div class="sort-container">
<h2 title="{{name}}">
一周新品上架
<span>{{updateNum}}</span>
</h2>
<ul class="sort-child-list new-sale">
{{#each list}}
<li {{#if active}}class="active"{{/if}}>
<a href="{{href}}" title="{{name}}">
{{name}}
<span>{{num}}</span>
</a>
</li>
{{/each}}
</ul>
</div>
{{/ newSales}}
{{!-- 全部品类--}}
{{# allSort}}
<div class="sort-container">
<ul>
{{#all}}
<li>
<h2>
<a href="{{href}}" title="{{name}}">
{{name}}
</a>
</h2>
</li>
{{/all}}
{{#each list}}
<li class="product-list-nav {{#if active}}active{{/if}}">
<h3 title="{{name}}">
<span class="icon-triangle"></span>
{{name}}
</h3>
<ul class="sort-child-list">
{{#each childList}}
<li class="{{#if childActive}}active{{/if}}">
<a href="{{href}}" title="{{name}}">
{{name}}
</a>
</li>
{{/each}}
</ul>
</li>
{{/each}}
</ul>
</div>
{{/ allSort}}
{{!-- 图片链接 --}}
{{# picLink}}
{{#if picTitle}}
<h2 class="nav-pic-title">{{picTitle}}</h2>
{{/if}}
<ul class="pic-nav">
{{#each list}}
<li>
<a href="{{href}}">
<img src="{{image2 src}}">
</a>
</li>
{{/each}}
</ul>
{{/ picLink}}
{{!-- 搜索推荐--}}
{{# allSuggest}}
<div class="sort-container">
{{# title}}
<h2 class="nav-pic-title">{{.}}</h2>
{{/ title}}
<ul class="sort-child-list suggest-list">
{{#each list}}
<li>
<a href="{{href}}" title="{{name}}">
{{name}}
</a>
</li>
{{/each}}
</ul>
</div>
{{/ allSuggest}}
{{!-- 热销品牌--}}
{{# hotBrands}}
<div class="hot-brands-container">
{{# title}}
<h2 class="hot-brands-title">{{.}}</h2>
{{/ title}}
<ul class="hot-brands-nav">
{{#each list}}
<li>
<a href="{{href}}" target= "_blank" title="{{title}}">
<img src="{{image2 src}}" alt="{{title}}">
</a>
</li>
{{/each}}
</ul>
</div>
{{/ hotBrands}}
{{/ leftContent}}
{{# brandShopAd}}
<script id="pic-link-tpl" type="text/html">
\{{# picLink}}
\{{#if picTitle}}
<h2 class="nav-pic-title">\{{picTitle}}</h2>
\{{/if}}
<ul class="pic-nav">
\{{#each list}}
<li>
<a href="{{baseUrl}}\{{href}}">
<img src="\{{src}}">
</a>
</li>
\{{/each}}
</ul>
\{{/ picLink}}
</script>
<div id="brand-shop-ad" class="brand-shop-ad"></div>
{{/ brandShopAd}}
{{!-- 水牌广告 --}}
{{#if node}}
<div id="brand-card" class="brand-card" data-node="{{node}}"></div>
{{/if}}
{{!-- 水牌广告-基础模板 --}}
{{#signboard}}
<div class="sell-signboard left-modular">
<h2 class="title">{{title}}</h2>
<ul class="left-list">
{{#each list}}
<li>
<a target="_blank" href="{{url}}"><img src="{{img}}" alt="{{title}}" width="100%" /></a>
</li>
{{/each}}
</ul>
</div>
{{/signboard}}