cart.hbs
2.12 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
<div class="home-page">
<div class="blk-page center-content">
{{> common/bc-nav}}
{{> common/info}}
{{ selectedGoods.length }}
{{#if prosNum}}
{{> cart-list}}
{{^}}
{{> common/empty-cart}}
{{/if}}
</div>
</div>
<script id="edit-color-size-tpl" type="text/html">
<div class="edit-color-size">
<div class="indicator"><i></i></div>
<div class="content">
<div class="left">
<div class="default-color mb20">
<span class="color-label mr10">Color: </span><span>\{{defaultColor}}</span>
</div>
<div class="colors-list mb20">
\{{#each colors}}
\{{#isEqual ../defaultColor color}}
<span class="color-item" style="background: \{{rgb}}">
<span class="inner"></span>
</span>
\{{^}}
<span class="color-item" style="background: \{{rgb}}"></span>
\{{/isEqual}}
\{{/each}}
</div>
<div class="default-size mb20">
<span class="size-label mr10">Size: </span><span>\{{defaultSize}}</span>
</div>
<div class="sizes-list mb10">
\{{#each sizes}}
\{{#isEqual ../defaultSize this}}
<span class="size-item mr10 mb10 current">\{{this}}</span>
\{{^}}
<span class="size-item mr10 mb10">\{{this}}</span>
\{{/isEqual}}
\{{/each}}
</div>
<div class="actions">
<span class="btn mr20" id="confirm">确定</span>
<span class="btn disable" id="cancel">取消</span>
</div>
</div>
<div class="right">
<img src="\{{image defaultImg 100 134}}" class="img-preview"/>
</div>
</div>
</div>
</script>