Authored by 梁志锋

尺码颜色选择优化

@@ -19,17 +19,10 @@ @@ -19,17 +19,10 @@
19 <div class="chose-items"> 19 <div class="chose-items">
20 <div class="color-list block-list"> 20 <div class="color-list block-list">
21 <span>颜色</span> 21 <span>颜色</span>
22 - <!--<ul class="clearfix" data-type="color">  
23 - {{# colors}}  
24 - <li class="block {{#if chosed}}chosed{{/if}} {{#unless colorNum}}zero-stock{{/unless}}" data-num="{{colorNum}}" data-id="{{id}}" data-numstr="{{sizeNumStr}}" data-skcid="{{skcId}}">  
25 - {{name}}  
26 - </li>  
27 - {{/ colors}}  
28 - </ul>-->  
29 {{# colors}} 22 {{# colors}}
30 <ul class="size-row clearfix {{#unless @first}}hide{{/if}}"> 23 <ul class="size-row clearfix {{#unless @first}}hide{{/if}}">
31 {{# color}} 24 {{# color}}
32 - <li class="block {{#if chosed}}chosed{{/if}} {{#unless colorNum}}zero-stock{{/unless}}" data-num="{{colorNum}}" data-id="{{id}}" data-numstr="{{sizeNumStr}}" data-skcid="{{skcId}}"> 25 + <li class="block {{#if chosed}}chosed{{/if}} {{#unless colorNum}}zero-stock{{/unless}}" data-num="{{colorNum}}">
33 {{name}} 26 {{name}}
34 </li> 27 </li>
35 {{/ color}} 28 {{/ color}}
@@ -41,20 +34,12 @@ @@ -41,20 +34,12 @@
41 {{# sizes}} 34 {{# sizes}}
42 <ul class="size-row clearfix {{#unless @first}}hide{{/if}}"> 35 <ul class="size-row clearfix {{#unless @first}}hide{{/if}}">
43 {{# size}} 36 {{# size}}
44 - <li class="block {{#if chosed}}chosed{{/if}} {{#unless sizeNum}}zero-stock{{/unless}}" data-id="{{id}}" data-colorid="{{colorId}}" data-num="{{sizeNum}}" data-numstr="{{colorNumStr}}" data-skuid="{{skuId}}" data-goodid="{{goodsId}}"> 37 + <li class="block {{#if chosed}}chosed{{/if}} {{#unless sizeNum}}zero-stock{{/unless}}" data-num="{{sizeNum}}" data-skuid="{{skuId}}">
45 {{name}} 38 {{name}}
46 </li> 39 </li>
47 {{/ size}} 40 {{/ size}}
48 </ul> 41 </ul>
49 {{/ sizes}} 42 {{/ sizes}}
50 -  
51 - <!--{{#if defaultSizes}}  
52 - <ul class="size-row clearfix default-size">  
53 - {{#each defaultSizes}}  
54 - <li class="block {{#if numZero}}zero-stock{{/if}}" data-numstr="{{numStr}}">{{name}}</li>  
55 - {{/each}}  
56 - </ul>  
57 - {{/if}}-->  
58 </div> 43 </div>
59 <p> 44 <p>
60 <div class="num"> 45 <div class="num">