Authored by yyq

Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0

@@ -397,7 +397,7 @@ Cart = { @@ -397,7 +397,7 @@ Cart = {
397 pic: color.thumbs[0], 397 pic: color.thumbs[0],
398 selectable: color.total > 0, 398 selectable: color.total > 0,
399 colorName: color.name, 399 colorName: color.name,
400 - rbg: color.rgb 400 + rgb: color.rgb
401 }); 401 });
402 if (color.color === defaultColor && color.cur) { 402 if (color.color === defaultColor && color.cur) {
403 defaultImg = color.thumbs[0]; 403 defaultImg = color.thumbs[0];
@@ -8,23 +8,13 @@ @@ -8,23 +8,13 @@
8 8
9 <div class="colors-list mb20"> 9 <div class="colors-list mb20">
10 {{#each colors}} 10 {{#each colors}}
11 - {{#if active}}  
12 - <span class="color-item current-color {{#unless selectable}}disabled{{/unless}}" 11 + <span class="color-item{{#if active}} current-color{{/if}}{{#unless selectable}} disabled{{/unless}}"
13 style="background: {{rgb}}" 12 style="background: {{rgb}}"
14 data-imageurl="{{image pic 100 134}}" 13 data-imageurl="{{image pic 100 134}}"
15 data-target="{{proId}}-color-{{@index}}" 14 data-target="{{proId}}-color-{{@index}}"
16 data-title="{{color}}"> 15 data-title="{{color}}">
17 <span class="inner"></span> 16 <span class="inner"></span>
18 </span> 17 </span>
19 - {{^}}  
20 - <span class="color-item {{#unless selectable}}disabled{{/unless}}"  
21 - style="background: {{rgb}}"  
22 - data-imageurl="{{image pic 100 134}}"  
23 - data-target="{{proId}}-color-{{@index}}"  
24 - data-title="{{color}}">  
25 - <span class="inner"></span>  
26 - </span>  
27 - {{/if}}  
28 {{/each}} 18 {{/each}}
29 </div> 19 </div>
30 20