Authored by 姜枫

edit shipping cart color

... ... @@ -103,7 +103,7 @@ const ShopService = {
if (data && data.data) {
let sorts = camelCase(data.data.sort);
sorts.forEach(s => {
_.each(sorts, s => {
sortArray = sortArray.concat(s.sub);
});
... ...
... ... @@ -211,7 +211,6 @@ $hoverColor: #379ed6;
display: inline-block;
width: 20px;
height: 20px;
border: 1px solid #000;
margin-right: 20px;
}
... ...
... ... @@ -8,12 +8,19 @@
<div class="colors-list mb20">
{{#each colors}}
<span class="color-item{{#if active}} current-color{{/if}}{{#unless selectable}} disabled{{/unless}}"
style="background: {{rgb}}"
<span class="input-radio color-item{{#if active}} current-color{{/if}}{{#unless selectable}} disabled{{/unless}}"
data-imageurl="{{image pic 100 134}}"
data-target="{{proId}}-color-{{@index}}"
data-title="{{color}}" title="{{color}}">
<span class="inner"></span>
data-title="{{this.color}}" title="{{this.color}}">
<label class="round-color{{#if active}} cur{{/if}}" title="{{title}}" style="width: 20px; height: 20px;">
<div class="icon-back" style="background: {{this.rgb}}">
{{#if bgImg}}
<img src="{{bgImg}}">
{{/if}}
</div>
<span class="iconfont icon-cover">&#xe61b;</span>
<span class="iconfont icon-round">&#xe620;</span>
</label>
</span>
{{/each}}
</div>
... ...