Authored by unknown

maybe-like loadmore js

... ... @@ -67,7 +67,8 @@ $('.goods-list').delegate('.good-islike', 'touchstart', function(e) {
//srcoll to load more
$(window).scroll(function() {
var num;
var num,
ajaxUrl;
if (end || loading) {
return;
}
... ... @@ -78,11 +79,15 @@ $(window).scroll(function() {
loading = true;
num = $goodList.children('.good-info').length;
if ($('.mobile-wrap').hasClass('.boys-wrap')) {
ajaxUrl = '/index/getmore';
} else {
ajaxUrl = '/girl/getmore';
}
$.ajax({
type: 'GET',
url: '/goods/more',
url: ajaxUrl,
data: {
gender: 0, //性别
page: page + 1
}
}).then(function(data) {
... ...