Authored by Rock Zhang

更新到201512071028静态资源

@@ -4808,13 +4808,13 @@ goodsSwiper = new Swiper('.banner-swiper', { @@ -4808,13 +4808,13 @@ goodsSwiper = new Swiper('.banner-swiper', {
4808 4808
4809 4809
4810 //初始化goods-discount 4810 //初始化goods-discount
4811 -if (0 === $('.goodsDiscount .discount-folder').children().length) { 4811 +if (0 === $discountFolder.children().length) {
4812 $discountFolder.css('display', 'none'); 4812 $discountFolder.css('display', 'none');
4813 $discountArrow.html(''); 4813 $discountArrow.html('');
4814 } 4814 }
4815 4815
4816 //goods-discount下拉按钮点击事件 4816 //goods-discount下拉按钮点击事件
4817 -if (goodsDiscountHammer) { 4817 +if (goodsDiscountHammer && $discountFolder.children().length > 0) {
4818 goodsDiscountHammer.on('tap', function(e) { 4818 goodsDiscountHammer.on('tap', function(e) {
4819 if ($discountFolder.is(':hidden')) { 4819 if ($discountFolder.is(':hidden')) {
4820 $discountArrow.removeClass('icon-down').addClass('icon-up').html(''); 4820 $discountArrow.removeClass('icon-down').addClass('icon-up').html('');
@@ -4823,7 +4823,6 @@ if (goodsDiscountHammer) { @@ -4823,7 +4823,6 @@ if (goodsDiscountHammer) {
4823 $discountArrow.removeClass('icon-up').addClass('icon-down').html(''); 4823 $discountArrow.removeClass('icon-up').addClass('icon-down').html('');
4824 $discountFolder.slideUp(); 4824 $discountFolder.slideUp();
4825 } 4825 }
4826 - return false;  
4827 }); 4826 });
4828 } 4827 }
4829 4828
This diff could not be displayed because it is too large.