product.hbs
2.31 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
{{# favProducts}}
{{#with sort}}
<div class="default-sorts sorts clearfix">
{{#each default}}
<span class="sort{{#if focus}} focus{{/if}}">
<a href="{{url}}">{{name}}({{count}})</a>
</span>
{{#unless @last}}
<span class="sep">|</span>
{{/unless}}
{{/each}}
{{#if all}}
<span class="has-more">......</span>
<span id="spread-sort" class="sort-btn" title="展开">
<i class="iconfont"></i>
</span>
{{/if}}
</div>
{{#if all}}
<div class="all-sorts sorts">
{{#each all}}
<span class="sort{{#if focus}} focus{{/if}}">
<a href="{{url}}">{{name}}({{count}})</a>
</span>
{{#unless @last}}
<span class="sep">|</span>
{{/unless}}
{{/each}}
<span id="retract-sort" class="sort-btn" title="收起">
<i class="iconfont"></i>
</span>
</div>
{{/if}}
{{/with}}
<p class="reduction-filter">
{{# reduction}}
<a class="reduction-notice" href="{{url}}">我订阅的降价通知(<span>{{count}}</span>/5)</a>
{{/ reduction}}
{{# filter}}
<a href="{{reductionUrl}}">
<input type="checkbox" class="reductionChecked" {{#if reductionChecked}} checked{{/if}}>降价商品
</a>
<a href="{{activityUrl}}">
<input type="checkbox" class="activityChecked" {{#if activityChecked}} checked{{/if}}>参加活动的商品
</a>
{{/ filter}}
</p>
<div class="favorite-products">
<p class="favorite-table-header table-header clearfix">
<span class="info">商品信息</span>
<span class="price">单价(元)</span>
<span class="options">操作</span>
</p>
{{#if goods.empty}}
{{#with goods}}
{{> home/orders/empty}}
{{/with}}
{{^}}
{{> favorite/product-table}}
{{/if}}
</div>
{{> pager}}
{{/ favProducts}}