Showing
4 changed files
with
7 additions
and
0 deletions
@@ -5412,6 +5412,7 @@ $('#likeBtn').on('touchstart', function() { | @@ -5412,6 +5412,7 @@ $('#likeBtn').on('touchstart', function() { | ||
5412 | }); | 5412 | }); |
5413 | 5413 | ||
5414 | $('#addtoCart').on('touchstart', function() { | 5414 | $('#addtoCart').on('touchstart', function() { |
5415 | + $('.cart-bar').hide(); | ||
5415 | chosePanel.show(); | 5416 | chosePanel.show(); |
5416 | 5417 | ||
5417 | //统计代码:用于统计用户加入购物车的动作 | 5418 | //统计代码:用于统计用户加入购物车的动作 |
@@ -5462,6 +5463,7 @@ var $chosePanel = $('#chose-panel'), | @@ -5462,6 +5463,7 @@ var $chosePanel = $('#chose-panel'), | ||
5462 | $allChoseItems, | 5463 | $allChoseItems, |
5463 | queryString, | 5464 | queryString, |
5464 | $choseArea, | 5465 | $choseArea, |
5466 | + $cartBar, | ||
5465 | $soonSoldOut = $('.soonSoldOut-tag'), | 5467 | $soonSoldOut = $('.soonSoldOut-tag'), |
5466 | $yohoPage = $('.yoho-page'); | 5468 | $yohoPage = $('.yoho-page'); |
5467 | 5469 | ||
@@ -5482,6 +5484,7 @@ function init() { | @@ -5482,6 +5484,7 @@ function init() { | ||
5482 | $sizeRowList = $('.size-list ul'); | 5484 | $sizeRowList = $('.size-list ul'); |
5483 | $colorRowList = $('.color-list ul'); | 5485 | $colorRowList = $('.color-list ul'); |
5484 | $leftNum = $('#left-num'); | 5486 | $leftNum = $('#left-num'); |
5487 | + $cartBar = $('.cart-bar'); | ||
5485 | curColorIndex = 0; | 5488 | curColorIndex = 0; |
5486 | curSizeIndex = 0; | 5489 | curSizeIndex = 0; |
5487 | isEdit = 0; | 5490 | isEdit = 0; |
@@ -5564,6 +5567,10 @@ function show(html, cb) { | @@ -5564,6 +5567,10 @@ function show(html, cb) { | ||
5564 | function hide() { | 5567 | function hide() { |
5565 | $('.chose-panel').hide(); | 5568 | $('.chose-panel').hide(); |
5566 | innerScroll.enableScroll($choseArea); | 5569 | innerScroll.enableScroll($choseArea); |
5570 | + | ||
5571 | + if ($cartBar.length > 0) { | ||
5572 | + $cartBar.show(); | ||
5573 | + } | ||
5567 | } | 5574 | } |
5568 | 5575 | ||
5569 | //修改加入购物车的文字和背景 | 5576 | //修改加入购物车的文字和背景 |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment