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,23 +61,12 @@ 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;
}
loading = true;
//num = $goodList.find('.good-info').length;
$.ajax({
type: 'GET',
... ... @@ -134,4 +120,15 @@ function search() {
loading = false;
}
});
}
\ No newline at end of file
}
$('.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
... ...