Authored by xuqi

color box checked

@@ -151,7 +151,7 @@ @@ -151,7 +151,7 @@
151 151
152 <div class="attr-content clearfix"> 152 <div class="attr-content clearfix">
153 {{# price}} 153 {{# price}}
154 - <a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">¥{{name}}</a> 154 + <a class="attr{{#if checked}} checked{{/if}}" href="{{href}}">¥{{name}}</a>
155 {{/ price}} 155 {{/ price}}
156 156
157 <div class="ud-price-range"> 157 <div class="ud-price-range">
@@ -172,8 +172,14 @@ @@ -172,8 +172,14 @@
172 172
173 <div class="attr-content clearfix"> 173 <div class="attr-content clearfix">
174 {{# color}} 174 {{# color}}
175 - <a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">  
176 - <i class="color-block" style="background: {{rgb}}"></i> 175 + <a class="attr{{#if checked}} checked{{/if}}" href="{{href}}">
  176 + {{#if checked}}
  177 + <span class="color-block">
  178 + <i class="sub-color-block" style="background: {{rgb}}"></i>
  179 + </span>
  180 + {{^}}
  181 + <i class="color-block" style="background: {{rgb}}"></i>
  182 + {{/if}}
177 {{name}} 183 {{name}}
178 </a> 184 </a>
179 {{/ color}} 185 {{/ color}}
@@ -60,6 +60,19 @@ @@ -60,6 +60,19 @@
60 margin-right: 0; 60 margin-right: 0;
61 } 61 }
62 62
  63 + .checked .color-block {
  64 + width: 16px;
  65 + height: 16px;
  66 + border: 2px solid #222;
  67 + padding: 2px;
  68 +
  69 + .sub-color-block {
  70 + display: block;
  71 + width: 16px;
  72 + height: 16px;
  73 + }
  74 + }
  75 +
63 .checked-conditions { 76 .checked-conditions {
64 line-height: 30px; 77 line-height: 30px;
65 78