Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -173,6 +173,7 @@ function search(opt) { @@ -173,6 +173,7 @@ function search(opt) {
173 data: setting, 173 data: setting,
174 success: function(data) { 174 success: function(data) {
175 var noResult = '<p class="no-result">未找到相关搜索结果</p>', 175 var noResult = '<p class="no-result">未找到相关搜索结果</p>',
  176 + num,
176 $container; 177 $container;
177 178
178 switch (navType) { 179 switch (navType) {
@@ -196,11 +197,15 @@ function search(opt) { @@ -196,11 +197,15 @@ function search(opt) {
196 } else { 197 } else {
197 if (nav.reload) { 198 if (nav.reload) {
198 $container.html(data); 199 $container.html(data);
  200 + lazyLoad($container.find('.lazy'));
199 } else { 201 } else {
  202 + num = $container.find('.good-info').length;
200 $container.append(data); 203 $container.append(data);
  204 +
  205 + //lazy good-infos who append in
  206 + lazyLoad($container.find('.good-info:gt(' + (num - 1) + ') .lazy'));
201 } 207 }
202 208
203 - lazyLoad($container.find('.lazy'));  
204 } 209 }
205 210
206 nav.reload = false; 211 nav.reload = false;
@@ -27,7 +27,7 @@ class BoysController extends AbstractAction @@ -27,7 +27,7 @@ class BoysController extends AbstractAction
27 // 渲染模板并输出 27 // 渲染模板并输出
28 $this->_view->display('index', array( 28 $this->_view->display('index', array(
29 'boysHomePage' => true, 29 'boysHomePage' => true,
30 - 'showFooterTab'=>true, 30 + 'showFooterTab'=> false,
31 'maybeLike' => true, 31 'maybeLike' => true,
32 'content' => Index\HomeModel::getBoysFloor(), 32 'content' => Index\HomeModel::getBoysFloor(),
33 'pageFooter' => true, 33 'pageFooter' => true,
@@ -27,7 +27,7 @@ class GirlsController extends AbstractAction @@ -27,7 +27,7 @@ class GirlsController extends AbstractAction
27 // 渲染模板并输出 27 // 渲染模板并输出
28 $this->_view->display('index', array( 28 $this->_view->display('index', array(
29 'grilsHomePage' => true, 29 'grilsHomePage' => true,
30 - 'showFooterTab'=>true, 30 + 'showFooterTab'=> false,
31 'maybeLike' => true, 31 'maybeLike' => true,
32 'content' => Index\HomeModel::getGirlsFloor(), 32 'content' => Index\HomeModel::getGirlsFloor(),
33 'pageFooter' => true, 33 'pageFooter' => true,
@@ -26,7 +26,7 @@ class KidsController extends AbstractAction @@ -26,7 +26,7 @@ class KidsController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'kidsHomePage' => true, 28 'kidsHomePage' => true,
29 - 'showFooterTab'=>true, 29 + 'showFooterTab'=> false,
30 'maybeLike' => true, 30 'maybeLike' => true,
31 'content' => Index\HomeModel::getKidsFloor(), 31 'content' => Index\HomeModel::getKidsFloor(),
32 'pageFooter' => true, 32 'pageFooter' => true,
@@ -26,7 +26,7 @@ class LifestyleController extends AbstractAction @@ -26,7 +26,7 @@ class LifestyleController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'lifestyleHomePage' => true, 28 'lifestyleHomePage' => true,
29 - 'showFooterTab'=>true, 29 + 'showFooterTab'=> false,
30 'maybeLike' => true, 30 'maybeLike' => true,
31 'content' => Index\HomeModel::getLifestyleFloor(), 31 'content' => Index\HomeModel::getLifestyleFloor(),
32 'pageFooter' => true, 32 'pageFooter' => true,