' + list[i].Intro + '
[详细]')
}
}
if (_outputQty > total) {
$trigger.addClass("loadAll").unbind("click").html("已获取所有的信息");
console.log(_outputQty, total);
}
}
}
});
});
// list-17
$('.list-17').each(function() {
var subWrap = $('
');
var _module = $(this);
// 用于获取坐标
$(this).find('.ul1').css({
'position': 'absolute',
'left': '-9999px'
}).show();
$(this).find('.li1').each(function(n) {
// 将子菜单添加到一个新元素并通过父元素坐标判断其插入位置
var sub = $(this).find('>ul').attr('data-parent', $(this).attr('id'));
sub.appendTo(subWrap);
if ($(this).next().length) {
if ($(this).position().top != $(this).next().position().top) {
$(this).after(subWrap);
subWrap = $('
');
}
} else {
$(this).after(subWrap);
}
});
// 获取坐标后还原
$(this).find('.ul1').css({
'position': 'static',
'left': 'inherit'
}).hide();
var t1;
$(this).find('.li1').hover(function() {
var _this = $(this);
t1 = setTimeout(function() {
$('.ul1[data-parent='+_this.attr('id')+']', _module).show().siblings().hide().parent().show();
_this.addClass('on1').siblings().removeClass('on1');
}, 80);
}, function() {
var _this = $(this);
clearTimeout(t1);
t1 = setTimeout(function() {
$('.ul1[data-parent='+_this.attr('id')+']', _module).show().siblings().hide().parent().hide();
_this.removeClass('on1');
}, 80);
});
var t2;
$(this).find('.subWrap').hover(function() {
clearTimeout(t1);
clearTimeout(t2);
}, function() {
var _this = $(this);
clearTimeout(t2);
t2 = setTimeout(function() {
_this.stop(1,1).hide();
}, 80);
});
$(this).find('.li2').hover(function() {
var _sub = $(this).find('.ul2');
//$(this).css('padding-bottom', _sub.outerHeight()+5).addClass('on2').siblings().removeClass('on2');
$(this).addClass('on2').siblings().removeClass('on2');
_sub.stop(1,1).show();
}, function() {
//$(this).css('padding-bottom', 0).removeClass('on2');
$(this).removeClass('on2');
$(this).find('.ul2').stop(1,1).hide();
});
});
});