Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
4 changed files
with
16 additions
and
6 deletions
@@ -14,6 +14,7 @@ var chosePanel = require('./chose-panel'), | @@ -14,6 +14,7 @@ var chosePanel = require('./chose-panel'), | ||
14 | 14 | ||
15 | var $cartContent = $('.cart-content'), | 15 | var $cartContent = $('.cart-content'), |
16 | cartType = $('#cartType').val(), | 16 | cartType = $('#cartType').val(), |
17 | + $cartNav = $('.cart-nav'), | ||
17 | hasShowCartPresellTip = false; | 18 | hasShowCartPresellTip = false; |
18 | 19 | ||
19 | var navHammer, | 20 | var navHammer, |
@@ -105,7 +106,7 @@ if ('advance' === cartType) { | @@ -105,7 +106,7 @@ if ('advance' === cartType) { | ||
105 | $(window).trigger('scroll'); | 106 | $(window).trigger('scroll'); |
106 | } | 107 | } |
107 | 108 | ||
108 | -if ($('.cart-nav').length > 0) { | 109 | +if ($cartNav.length > 0) { |
109 | navHammer = new Hammer(document.getElementsByClassName('cart-nav')[0]); | 110 | navHammer = new Hammer(document.getElementsByClassName('cart-nav')[0]); |
110 | navHammer.on('tap', function(e) { | 111 | navHammer.on('tap', function(e) { |
111 | var $this = $(e.target).closest('li'); | 112 | var $this = $(e.target).closest('li'); |
@@ -180,5 +181,11 @@ $('.chose').on('touchend', function() { | @@ -180,5 +181,11 @@ $('.chose').on('touchend', function() { | ||
180 | chosePanel.show(); | 181 | chosePanel.show(); |
181 | }); | 182 | }); |
182 | 183 | ||
184 | +$cartNav.on('touchstart', 'li', function(e) { | ||
185 | + $(this).addClass('bytouch'); | ||
186 | +}).on('touchend touchcancel', function() { | ||
187 | + $cartNav.find('li').removeClass('bytouch'); | ||
188 | +}); | ||
189 | + | ||
183 | //提前触发lazyload | 190 | //提前触发lazyload |
184 | $(window).scrollTop(1).scrollTop(0); | 191 | $(window).scrollTop(1).scrollTop(0); |
@@ -31,6 +31,7 @@ | @@ -31,6 +31,7 @@ | ||
31 | } | 31 | } |
32 | 32 | ||
33 | .basic-info { | 33 | .basic-info { |
34 | + // height: 100rem / $pxConvertRem; | ||
34 | overflow: hidden; | 35 | overflow: hidden; |
35 | position: relative; | 36 | position: relative; |
36 | margin-bottom: pxToRem(30px); | 37 | margin-bottom: pxToRem(30px); |
@@ -155,10 +156,12 @@ | @@ -155,10 +156,12 @@ | ||
155 | height: 80rem / $pxConvertRem; | 156 | height: 80rem / $pxConvertRem; |
156 | line-height: 80rem / $pxConvertRem; | 157 | line-height: 80rem / $pxConvertRem; |
157 | padding: 0; | 158 | padding: 0; |
158 | - border: none; | ||
159 | - border-top: 1px solid #e6e6e6; | ||
160 | - border-bottom: 1px solid #e6e6e6; | 159 | + border: 1px solid #e6e6e6; |
161 | text-align: center; | 160 | text-align: center; |
161 | + margin-left: -1px; | ||
162 | + } | ||
163 | + .btn-plus{ | ||
164 | + margin-left: -1px; | ||
162 | } | 165 | } |
163 | 166 | ||
164 | .btn-wrap { | 167 | .btn-wrap { |
@@ -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); |
@@ -684,7 +684,7 @@ class CartModel | @@ -684,7 +684,7 @@ class CartModel | ||
684 | // 缩略图 | 684 | // 缩略图 |
685 | foreach ($val['images_list'] as $image) { | 685 | foreach ($val['images_list'] as $image) { |
686 | $thumbImageList[] = array( | 686 | $thumbImageList[] = array( |
687 | - 'img' => Helpers::getImageUrl($image['image_url'], 80, 106) | 687 | + 'img' => Helpers::getImageUrl($image['image_url'], 60, 60) |
688 | ); | 688 | ); |
689 | } | 689 | } |
690 | 690 |
-
Please register or login to post a comment