cart chose panel default.Review by:@hf
Showing
3 changed files
with
23 additions
and
13 deletions
@@ -18,7 +18,6 @@ var $chosePanel = $('#chose-panel'), | @@ -18,7 +18,6 @@ var $chosePanel = $('#chose-panel'), | ||
18 | $chosed, | 18 | $chosed, |
19 | $imgsThumb, | 19 | $imgsThumb, |
20 | $leftNum, | 20 | $leftNum, |
21 | - $leftNumHtml, | ||
22 | leftNum, | 21 | leftNum, |
23 | confirming, | 22 | confirming, |
24 | curColorIndex, | 23 | curColorIndex, |
@@ -32,7 +31,6 @@ var $chosePanel = $('#chose-panel'), | @@ -32,7 +31,6 @@ var $chosePanel = $('#chose-panel'), | ||
32 | queryString, | 31 | queryString, |
33 | $yohoPage = $('.yoho-page'); | 32 | $yohoPage = $('.yoho-page'); |
34 | 33 | ||
35 | - | ||
36 | //初始化购物车面板显示 | 34 | //初始化购物车面板显示 |
37 | function init() { | 35 | function init() { |
38 | hasChooseColor = false; | 36 | hasChooseColor = false; |
@@ -43,8 +41,6 @@ function init() { | @@ -43,8 +41,6 @@ function init() { | ||
43 | $allChoseItems = $('.chose-items'); | 41 | $allChoseItems = $('.chose-items'); |
44 | $sizeRowList = $('.size-list ul'); | 42 | $sizeRowList = $('.size-list ul'); |
45 | $leftNum = $('#left-num'); | 43 | $leftNum = $('#left-num'); |
46 | - $leftNumHtml = | ||
47 | - $sizeRowList.eq(0).toggleClass('hide'); | ||
48 | } | 44 | } |
49 | 45 | ||
50 | function checkColorSizeNum() { | 46 | function checkColorSizeNum() { |
@@ -34,16 +34,22 @@ | @@ -34,16 +34,22 @@ | ||
34 | <div class="size-list block-list"> | 34 | <div class="size-list block-list"> |
35 | <span>尺码</span> | 35 | <span>尺码</span> |
36 | {{# sizes}} | 36 | {{# sizes}} |
37 | - | ||
38 | - <ul class="size-row clearfix hide"> | ||
39 | - {{# size}} | ||
40 | - <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}}"> | ||
41 | - {{name}} | ||
42 | - </li> | ||
43 | - {{/ size}} | ||
44 | - </ul> | ||
45 | - | 37 | + <ul class="size-row clearfix hide"> |
38 | + {{# size}} | ||
39 | + <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}}"> | ||
40 | + {{name}} | ||
41 | + </li> | ||
42 | + {{/ size}} | ||
43 | + </ul> | ||
46 | {{/ sizes}} | 44 | {{/ sizes}} |
45 | + | ||
46 | + {{#if defaultSizes}} | ||
47 | + <ul class="size-row clearfix default-size"> | ||
48 | + {{#each defaultSizes}} | ||
49 | + <li class="block {{#if numZero}}zero-stock{{/if}}" data-numstr="{{numStr}}">{{name}}</li> | ||
50 | + {{/each}} | ||
51 | + </ul> | ||
52 | + {{/if}} | ||
47 | </div> | 53 | </div> |
48 | <p> | 54 | <p> |
49 | <div class="num"> | 55 | <div class="num"> |
-
Please register or login to post a comment