Authored by jinhu.tung

edit cart product

... ... @@ -23,7 +23,7 @@
<div class="colors-list mb20">
\{{#each colors}}
\{{#isEqual ../defaultColor color}}
\{{#if active}}
<span class="color-item current-color \{{#unless selectable}}disabled\{{/unless}}"
style="background: \{{rgb}}"
data-imageurl="\{{image pic 100 134}}"
... ... @@ -39,12 +39,12 @@
data-title="\{{color}}">
<span class="inner"></span>
</span>
\{{/isEqual}}
\{{/if}}
\{{/each}}
</div>
\{{#each colors}}
<div class="sizes-list \{{#isEqual ../defaultColor color}}current-sizes\{{/isEqual}}" id="\{{proId}}-color-\{{@index}}" style="display: \{{#isEqual ../defaultColor color}}block\{{^}}none\{{/isEqual}};">
<div class="sizes-list \{{#if active}}current-sizes\{{/if}}" id="\{{proId}}-color-\{{@index}}" style="display: \{{#if active}}block\{{^}}none\{{/if}};">
<div class="default-size mb20">
<span class="size-label mr10">Size: </span><span>\{{../defaultSize}}</span>
</div>
... ...
... ... @@ -284,12 +284,13 @@ var Cart = {
filterSet.push({
proId: res.id,
color: color.color,
active: color.cur,
sizes: color.sizes,
pic: color.thumbs[0],
selectable: color.total > 0,
colorName: color.name
});
if (color.color === defaultColor) {
if (color.color === defaultColor && color.cur) {
defaultImg = color.thumbs[0];
}
}
... ...
... ... @@ -167,6 +167,9 @@ $hoverColor: #379ed6;
.sizes-list {
width: 195px;
}
.colors-list {
width: 195px;
}
.size-item {
height: 20px;
border: 1px solid #e8e8e8;
... ...
... ... @@ -3,7 +3,6 @@
position: absolute;
left: 180px;
width: 354px;
height: 250px;
border: 2px solid #bbb;
top: -113px;
*top: -113px;
... ...