select-color-panel.hbs
2.74 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
<div class="goods-choose-box">
<div class="goods-info" data-skn="{{skn}}">
<div class="dl choose-color">
<div class="dd">颜色:</div>
{{#each colors}}
<div class="dt {{#if active}} active current-color{{/if}} {{#if disable}} disabled{{/if}}"
data-pic="{{image pic 100 134}}"
data-pid="{{pid}}"
{{!--data-target="{{proId}}-color-{{@index}}"
data-title="{{this.color}}" --}}
data-color="{{name}}" data-total="{{total}}"
title="{{title}}">
<img src="{{src}}"/>
</div>
{{/each}}
</div>
<div class="dl choose-size">
<div class="dd">尺码:</div>
{{#each colors}}
<div class="size-row {{#unless active}} hide{{/unless}}">
<div class="choose-size-detail">
{{#each sizes}}
<div class="dt {{#if sizeActive}}active{{/if}}"
{{#unless num}}class="disable"{{/unless}}
data-sku="{{sku}}"
data-num="{{num}}"
data-name="{{name}}">{{name}}</div>
{{/each}}
</div>
</div>
{{/each}}
<!--<div class="dt active">
40
</div>
<div class="dt">
42
</div>
<div class="dt">
44
</div>
<div class="dt">
46
</div>
<div class="dt disabled">
48
</div>-->
</div>
<div class="button-group">
<button class="button-sure">确定</button>
<button class="button-cancel">取消</button>
</div>
</div>
<div class="goods-info-bigImg">
{{# colors}}
<div class="bigImg {{#unless active}} hide{{/unless}}">
{{#if pic}}
<img src="{{image pic 100 134}}" />
{{else}}
<img src="{{image ../defaultImg 100 134}}" />
{{/if}}
</div>
{{/ colors}}
<!--<div class="bigImg">
<img src="#"/>
<img src="{{image defaultImg 100 134}}" class="img-preview" title="{{defaultColor}}"/>
</div>
<div class="bigImg none">
<img src="#"/>
</div>
<div class="bigImg none">
<img src="#"/>
</div>
<div class="bigImg none">
<img src="#"/>
</div>
<div class="bigImg none">
<img src="#"/>
</div>-->
</div>
</div>