Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy
Showing
4 changed files
with
13 additions
and
17 deletions
@@ -180,16 +180,5 @@ $('.chose').on('touchend', function() { | @@ -180,16 +180,5 @@ $('.chose').on('touchend', function() { | ||
180 | chosePanel.show(); | 180 | chosePanel.show(); |
181 | }); | 181 | }); |
182 | 182 | ||
183 | -function notAllowScroll() { | ||
184 | - var docH = $(document).height(), | ||
185 | - winH = $(window).height(); | ||
186 | - | ||
187 | - if (docH - winH <= 10) { | ||
188 | - $('body').css('overflow', 'hidden'); | ||
189 | - } | ||
190 | -} | ||
191 | - | ||
192 | -notAllowScroll(); | ||
193 | - | ||
194 | //提前触发lazyload | 183 | //提前触发lazyload |
195 | $(window).scrollTop(1).scrollTop(0); | 184 | $(window).scrollTop(1).scrollTop(0); |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | padding: pxToRem(30px) 0 pxToRem(20px); | 16 | padding: pxToRem(30px) 0 pxToRem(20px); |
17 | width: 100%; | 17 | width: 100%; |
18 | height: pxToRem(252px); | 18 | height: pxToRem(252px); |
19 | - overflow: hidden; | 19 | + // overflow: hidden; |
20 | 20 | ||
21 | .swiper-slide { | 21 | .swiper-slide { |
22 | padding: 0 pxToRem(10px); | 22 | padding: 0 pxToRem(10px); |
1 | -<div class="cart-goods"> | ||
2 | - {{# goods}} | ||
3 | - {{> cart/good}} | ||
4 | - {{/ goods}} | ||
5 | -</div> | 1 | +{{#if goods}} |
2 | + <div class="cart-goods"> | ||
3 | + {{# goods}} | ||
4 | + {{> cart/good}} | ||
5 | + {{/ goods}} | ||
6 | + </div> | ||
7 | +{{/if}} | ||
6 | 8 | ||
7 | {{#if notValidGoods}} | 9 | {{#if notValidGoods}} |
8 | <div class="invalid-goods"> | 10 | <div class="invalid-goods"> |
-
Please register or login to post a comment