cart-content.hbs
4.99 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
<div class="normal-box">
{{#goodPools}}
<div class="cart-brand box good-pools-data">
{{#if isPromotion}}
<div class="promotion-header {{#if promotionMore}}more-box{{/if}}">
{{#promotions}}
<div class="promo-item" data-id="{{promotionId}}" data-title="{{promotionOriginTitle}}" data-type="{{promotionType}}" data-status="{{status}}">
<div class="info"><i class="iconfont cuxiao"></i><span>{{promotionTitle}}</span></div>
<div class="opt to-gift {{#if noStorage}}no-storage{{/if}}">
<a href="javascript:;">{{optTitle}}</a><i class="iconfont to-arrow"></i>
</div>
</div>
{{/promotions}}
<div class="down-arrow">
<i class="iconfont arrow"></i>
</div>
</div>
{{#sub_pool}}
{{#if isPromotion}}
<div class="promos {{#if promotionMore}}more-box{{/if}}">
{{#promotions}}
<div class="promo-item" data-id="{{promotionId}}" data-title="{{promotionOriginTitle}}" data-type="{{promotionType}}" data-status="{{status}}">
<div class="info">
<span class="flag">{{promotionFlag}}</span>{{promotionTitle}}
</div>
<div class="opt to-gift {{#if noStorage}}no-storage{{/if}}">
<a href="javascript:;">{{optTitle}}</a><i class="iconfont to-arrow"></i>
</div>
</div>
{{/promotions}}
<div class="down-arrow">
<i class="iconfont arrow"></i>
</div>
</div>
{{/if}}
{{#goods}}
{{> cart-good}}
{{/goods}}
{{/sub_pool}}
{{/if}}
{{#if isBrand}}
<div class="good-list">
{{#goods}}
{{> cart-good}}
{{/goods}}
</div>
{{/if}}
{{#if isBundle}}
{{> cart-bundle}}
{{/if}}
</div>
{{/goodPools}}
{{#goods}}
<div class="cart-brand box goods-data">
<div class="good-list">
{{> cart-good}}
</div>
</div>
{{/goods}}
</div>
{{#if freebieOrAdvanceBuy}}
<div class="all-gift-box box">
{{#if freebie.length}}
<div class="gift-item freebie">
<div class="flag">
<i class="iconfont gift"></i>
</div>
<div class="content">
<div class="info">赠品</div>
<div class="opt to-gift {{#ifnot giftHasStorage}}no-storage{{/ifnot}}">
<a href="javascript:;">{{#if giftHasStorage}}领赠品{{^}}已抢光{{/if}}</a><i class="iconfont to-arrow"></i>
</div>
</div>
</div>
{{/if}}
{{#if advanceBuy.length}}
<div class="gift-item advanceBuy">
<div class="flag">
<i class="iconfont price-gift"></i>
</div>
<div class="content">
<div class="info">全场加价购</div>
<div class="opt to-gift {{#ifnot advanceHasStorage}}no-storage{{/ifnot}}">
<a href="javascript:;">{{#if advanceHasStorage}}去换购{{^}}已抢光{{/if}}</a><i class="iconfont to-arrow"></i>
</div>
</div>
</div>
{{/if}}
</div>
{{/if}}
{{#if hasNoSaleGoods}}
<div class="disable-box box">
{{#notValidGoods}}
{{> cart-good}}
{{/notValidGoods}}
{{#notValidPool}}
{{> cart-bundle}}
{{/notValidPool}}
{{#offShelveGoods}}
{{> cart-good}}
{{/offShelveGoods}}
<div class="remove-all">
<button class="btn btn-remove">清空失效商品</button>
</div>
</div>
{{/if}}
<div class="total box">
{{#if promotionInfo.length}}
<div class="activity-title">
<h1>已参与活动</h1>
</div>
<div class="activity">
<ul>
{{#promotionInfo}}
<li>{{name}}</li>
{{/promotionInfo}}
</ul>
</div>
{{/if}}
<div class="price-compute">
<p>{{formulaPrice}}</p>
</div>
</div>
<div class="cart-footer">
<div class="check-all">
<i class="iconfont chk select {{#if isAllSelected}}checked{{/if}}"></i>
<i class="iconfont chk edit"></i>
<p>全选</p>
</div>
<div class="opts edit">
<button class="btn btn-gray btn-fav">移入<br>收藏夹</button>
<button class="btn btn-red btn-del">删除</button>
</div>
<div class="opts bill ">
<div class="total">
<p class="price">总计:¥{{sumPrice}} ({{count}}件)</p>
<p class="intro">不含运费</p>
</div>
<button class="btn btn-red btn-balance">结算</button>
</div>
</div>