brand.phtml
3.26 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
{{# favBrands}}
<div class="favorite-brands">
<p class="favorite-table-header table-header clearfix">
<span class="name">品牌名称</span>
<span class="new-arrival">新品上架</span>
<span class="col-count">收藏人气</span>
<span class="options">操作</span>
</p>
{{#if brands.empty}}
{{#with brands}}
{{> home/empty}}
{{/with}}
{{^}}
<ul>
{{# brands}}
<li class="fav-brand fav-row" data-id="{{id}}">
<div class="checkbox">
<input type="checkbox">
</div>
<div class="thumb">
<a href="{{url}}">
<img src="{{img}}">
<span class="name">{{name}}</span>
</a>
</div>
<div class="new-arrival">
<span class="na-trigger">新品到着({{naCount}})</span>
{{#if naCount}}
<div class="na-list hide">
<div class="na-content clearfix"></div>
<div class="arrow"></div>
</div>
{{/if}}
</div>
<p class="col-count">
{{colCount}}
</p>
<div class="options">
<a class="brand-shop" href="{{url}}" target="_blank">去品牌店铺</a>
<a class="del-favorite">[ 删除 ]</a>
</div>
</li>
{{/ brands}}
</ul>
{{/if}}
<script id="na-tpl" type="text/html">
\{{#if naGoods}}
<span class="na-pre hidden">
<i class="iconfont"></i>
</span>
<div class="na-goods">
<ul class="na-goods-ul clearfix">
\{{# naGoods}}
<li class="na-good">
<a href="\{{url}}">
<img class="na-good-thumb" src="\{{img}}">
<p class="na-good-name">\{{name}}</p>
</a>
<span class="na-price\{{#if salePrice}} has-sale\{{/if}}">¥\{{marketPrice}}</span>
\{{#if salePrice}}
<span class="na-price">¥\{{salePrice}}</span>
\{{/if}}
</li>
\{{/ naGoods}}
</ul>
</div>
<span class="na-next hidden">
<i class="iconfont"></i>
</span>
\{{^}}
<p class="has-no-na">暂无新产品</p>
\{{/if}}
</script>
</div>
{{> home/pager}}
{{/ favBrands}}