...
|
...
|
@@ -13,7 +13,8 @@ var goodsSwiper, |
|
|
$discountArrow = $('.goodsDiscount .first-item span');
|
|
|
|
|
|
var goodsDiscountEl = document.getElementById('goodsDiscount'),
|
|
|
goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl);
|
|
|
goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl),
|
|
|
$discountFirstItem = $(goodsDiscountEl).find('.first-item');
|
|
|
|
|
|
var $cart = $('.cart-bar');
|
|
|
|
...
|
...
|
@@ -62,9 +63,11 @@ if (0 === $discountFolder.children().length) { |
|
|
if (goodsDiscountHammer && $discountFolder.children().length > 0) {
|
|
|
goodsDiscountHammer.on('tap', function(e) {
|
|
|
if ($discountFolder.is(':hidden')) {
|
|
|
$discountFirstItem.removeClass('short-text');
|
|
|
$discountArrow.removeClass('icon-down').addClass('icon-up').html('');
|
|
|
$discountFolder.slideDown();
|
|
|
} else {
|
|
|
$discountFirstItem.addClass('short-text');
|
|
|
$discountArrow.removeClass('icon-up').addClass('icon-down').html('');
|
|
|
$discountFolder.slideUp();
|
|
|
}
|
...
|
...
|
|