cart.hbs
2.15 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
{{> sign-header}}
<div class="blk-page center-content">
{{> bc-nav}}
{{> cart/info}}
{{#if hasGoods}}
{{> cart-list}}
{{^}}
{{> cart/empty-cart}}
{{/if}}
{{!-- <button id="add_to_cart1">添加到购物车 1413600 number 1</button> --}}
</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>