Authored by xuqi

lazyload new

... ... @@ -173,6 +173,7 @@ function search(opt) {
data: setting,
success: function(data) {
var noResult = '<p class="no-result">未找到相关搜索结果</p>',
num,
$container;
switch (navType) {
... ... @@ -196,11 +197,15 @@ function search(opt) {
} else {
if (nav.reload) {
$container.html(data);
lazyLoad($container.find('.lazy'));
} else {
num = $container.find('.good-info').length;
$container.append(data);
//lazy good-infos who append in
lazyLoad($container.find('.good-info:gt(' + (num - 1) + ') .lazy'));
}
lazyLoad($container.find('.lazy'));
}
nav.reload = false;
... ...