...
|
...
|
@@ -13,7 +13,7 @@ var $navLi = $('#order-nav > li'), |
|
|
|
|
|
var $curContainer = $orderContainer.children('.orders').first();//保存当前显示的order-container
|
|
|
|
|
|
var navHammer;
|
|
|
var navHammer, orderHammer;
|
|
|
|
|
|
lazyLoad();
|
|
|
|
...
|
...
|
@@ -33,4 +33,20 @@ navHammer.on('tap', function(e) { |
|
|
|
|
|
$curContainer.addClass('hide');
|
|
|
$curContainer = $orderContainer.children(':eq(' + index + ')').removeClass('hide');
|
|
|
});
|
|
|
|
|
|
orderHammer = new Hammer(document.getElementById('order-container'));
|
|
|
orderHammer.on('tap', function(e) {
|
|
|
var $cur = $(e.target),
|
|
|
$order,
|
|
|
url;
|
|
|
|
|
|
if ($cur.closest('.locHref').length > 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$order = $cur.closest('.order');
|
|
|
url = $order.data('href');
|
|
|
|
|
|
location.href = url;
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|