index.hbs
2.08 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
{{#if isEmptyCart}}
<div class="cart-zero">
<i class="iconfont"></i>
<p>您的购物车暂无商品</p>
<a href="/product/new">随便逛逛</a>
</div>
{{^}}
<div class="cart-nav clearfix{{#if cartNav}} more{{/if}}">
{{#if commonGoodsCount}}
<div class="nav-item{{#if ordinaryCart}} active{{/if}}" id="common-cart-nav" data-type="ordinary">
<span>普通商品({{commonGoodsCount}})</span>
</div>
{{/if}}
{{#if presellGoodsCount}}
<div class="nav-item{{#if advanceCart}} active{{/if}}" id="presell-cart-nav" data-type="advance">
<span >预售商品({{presellGoodsCount}})</span>
<div id="presell-tip" class="presell-tip hide">
<div class="triangle"></div>
<p class="pt-content">预售商品点这里结算哦~</p>
</div>
</div>
{{/if}}
<button class="btn-edit"></button>
</div>
{{#if ordinaryCart}}
<div class="cart-content normal-good active">
{{#commonCart}}
{{#if shipCost.shippingTip}}
<a class="tips clearfix" href="/product/boys-new/">
<div>
{{shipCost.shippingTip}}
</div>
<span class="iconfont free-shipping">{{#if shipCost.freeShipping}}去凑单{{/if}} </span>
</a>
{{/if}}
{{> cart-content}}
{{/commonCart}}
</div>
{{/if}}
{{#if advanceCart}}
<div class="cart-content advance-good active">
{{#preSellCart}}
<div class="tips clearfix">
<div>
{{#if shipCost.shippingTip}}
{{shipCost.shippingTip}}
<br />
{{/if}}
<span class="precell-dia">预售商品购物预知 <span class="iconfont"></span></span>
</div>
</div>
{{> cart-content}}
{{/preSellCart}}
</div>
{{/if}}
<input id="cartType" type="hidden" value="{{cartType}}">
{{/if}}