Authored by 梁志锋

update

... ... @@ -40,12 +40,9 @@ $curNav = $navList.children('.focus');
navHammer = new Hammer($navList[0]);
navHammer.on('tap', function(e) {
var $this = $(e.target).closest('li'),
//$('#maybe-like-nav').delegate('li', 'touchstart', function() {
// var $this = $(this),
$goods = $('.goods-list'),
$content;
if ($this.hasClass('focus')) {
return;
}
... ... @@ -64,17 +61,6 @@ navHammer.on('tap', function(e) {
$(document).trigger('scroll'); //Trigger lazyLoad
});
$('.maybe-like p').on('touchstart', function (e) {
search();
});
//srcoll to load more
$(window).scroll(function () {
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH - 50) {
search();
}
});
function search() {
if (loading) {
return;
... ... @@ -135,3 +121,14 @@ function search() {
}
});
}
$('.maybe-like p').on('touchstart', function (e) {
search();
});
//srcoll to load more
$(window).scroll(function () {
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH - 50) {
search();
}
});
\ No newline at end of file
... ...