...
|
...
|
@@ -8678,6 +8678,7 @@ var chosePanel = require("js/cart/chose-panel"), |
|
|
|
|
|
var $cartContent = $('.cart-content'),
|
|
|
cartType = $('#cartType').val(),
|
|
|
$cartNav = $('.cart-nav'),
|
|
|
hasShowCartPresellTip = false;
|
|
|
|
|
|
var navHammer,
|
...
|
...
|
@@ -8769,7 +8770,7 @@ if ('advance' === cartType) { |
|
|
$(window).trigger('scroll');
|
|
|
}
|
|
|
|
|
|
if ($('.cart-nav').length > 0) {
|
|
|
if ($cartNav.length > 0) {
|
|
|
navHammer = new Hammer(document.getElementsByClassName('cart-nav')[0]);
|
|
|
navHammer.on('tap', function(e) {
|
|
|
var $this = $(e.target).closest('li');
|
...
|
...
|
@@ -8844,6 +8845,12 @@ $('.chose').on('touchend', function() { |
|
|
chosePanel.show();
|
|
|
});
|
|
|
|
|
|
$cartNav.on('touchstart', 'li', function(e) {
|
|
|
$(this).addClass('bytouch');
|
|
|
}).on('touchend touchcancel', function() {
|
|
|
$cartNav.find('li').removeClass('bytouch');
|
|
|
});
|
|
|
|
|
|
//提前触发lazyload
|
|
|
$(window).scrollTop(1).scrollTop(0);
|
|
|
|
...
|
...
|
|