Merge branch 'feature/sale' into release/4.8
Showing
4 changed files
with
16 additions
and
5 deletions
@@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
26 | </li> | 26 | </li> |
27 | </ul> | 27 | </ul> |
28 | <div class="sub-size"> | 28 | <div class="sub-size"> |
29 | + {{log this}} | ||
29 | {{# sub}} | 30 | {{# sub}} |
30 | <div class="size-area"> | 31 | <div class="size-area"> |
31 | <div class="swiper-size" id="size-swiper-{{key}}" {{#if @first}}style="display:block"{{/if}}> | 32 | <div class="swiper-size" id="size-swiper-{{key}}" {{#if @first}}style="display:block"{{/if}}> |
@@ -3,7 +3,9 @@ | @@ -3,7 +3,9 @@ | ||
3 | {{#content}} | 3 | {{#content}} |
4 | {{! 头部banner}} | 4 | {{! 头部banner}} |
5 | {{#if focus}} | 5 | {{#if focus}} |
6 | + <div class="focus-wrap"> | ||
6 | {{> resources/banner-top}} | 7 | {{> resources/banner-top}} |
8 | + </div> | ||
7 | {{/if}} | 9 | {{/if}} |
8 | 10 | ||
9 | {{! 两个小图}} | 11 | {{! 两个小图}} |
@@ -22,18 +24,18 @@ | @@ -22,18 +24,18 @@ | ||
22 | {{/if}} | 24 | {{/if}} |
23 | 25 | ||
24 | {{!-- 会员专享 --}} | 26 | {{!-- 会员专享 --}} |
25 | - <div class="vip-floor-wrap"> | ||
26 | {{#if vipFloor}} | 27 | {{#if vipFloor}} |
28 | + <div class="vip-floor-wrap"> | ||
27 | {{> resources/vip-floor}} | 29 | {{> resources/vip-floor}} |
28 | - {{/if}} | ||
29 | </div> | 30 | </div> |
31 | + {{/if}} | ||
30 | 32 | ||
31 | {{!-- 断码区 --}} | 33 | {{!-- 断码区 --}} |
32 | - <div class="off-code-area-wrap"> | ||
33 | {{#if offCodeArea}} | 34 | {{#if offCodeArea}} |
35 | + <div class="off-code-area-wrap"> | ||
34 | {{> resources/off-code-area}} | 36 | {{> resources/off-code-area}} |
35 | - {{/if}} | ||
36 | </div> | 37 | </div> |
38 | + {{/if}} | ||
37 | 39 | ||
38 | {{!-- OUTLETS --}} | 40 | {{!-- OUTLETS --}} |
39 | {{#if titleImage}} | 41 | {{#if titleImage}} |
@@ -113,6 +113,10 @@ $.each($listNav.find('li'), function(key, item) { | @@ -113,6 +113,10 @@ $.each($listNav.find('li'), function(key, item) { | ||
113 | $(item).addClass(goodsType[key]); | 113 | $(item).addClass(goodsType[key]); |
114 | }); | 114 | }); |
115 | 115 | ||
116 | +$.each($swiperSize, function(key, item) { | ||
117 | + $(item).addClass(goodsType[key]); | ||
118 | +}); | ||
119 | + | ||
116 | // 判断导航类型 | 120 | // 判断导航类型 |
117 | function judgeType(dom) { | 121 | function judgeType(dom) { |
118 | var navType; | 122 | var navType; |
@@ -531,8 +535,10 @@ $(function() { | @@ -531,8 +535,10 @@ $(function() { | ||
531 | } else { | 535 | } else { |
532 | selector = '.coat'; | 536 | selector = '.coat'; |
533 | } | 537 | } |
534 | - $selectNav = $('#list-nav').find(selector); | 538 | + $selectNav = $listNav.find(selector); |
535 | $selectNav.addClass('active').siblings().removeClass('active'); | 539 | $selectNav.addClass('active').siblings().removeClass('active'); |
540 | + $swiperSize.hide(); | ||
541 | + $swiperSize.filter(selector).show(); | ||
536 | search([{ | 542 | search([{ |
537 | type: 'breakSort', | 543 | type: 'breakSort', |
538 | id: $selectNav.data('id') | 544 | id: $selectNav.data('id') |
@@ -72,10 +72,12 @@ | @@ -72,10 +72,12 @@ | ||
72 | max-height: 320px; | 72 | max-height: 320px; |
73 | } | 73 | } |
74 | 74 | ||
75 | + .focus-wrap, | ||
75 | .vip-floor-wrap, | 76 | .vip-floor-wrap, |
76 | .off-code-area-wrap { | 77 | .off-code-area-wrap { |
77 | .banner-top { | 78 | .banner-top { |
78 | height: 200px; | 79 | height: 200px; |
80 | + overflow: hidden; | ||
79 | } | 81 | } |
80 | } | 82 | } |
81 | 83 |
-
Please register or login to post a comment