Authored by hf

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

... ... @@ -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;
... ...
... ... @@ -27,7 +27,7 @@ class BoysController extends AbstractAction
// 渲染模板并输出
$this->_view->display('index', array(
'boysHomePage' => true,
'showFooterTab'=>true,
'showFooterTab'=> false,
'maybeLike' => true,
'content' => Index\HomeModel::getBoysFloor(),
'pageFooter' => true,
... ...
... ... @@ -27,7 +27,7 @@ class GirlsController extends AbstractAction
// 渲染模板并输出
$this->_view->display('index', array(
'grilsHomePage' => true,
'showFooterTab'=>true,
'showFooterTab'=> false,
'maybeLike' => true,
'content' => Index\HomeModel::getGirlsFloor(),
'pageFooter' => true,
... ...
... ... @@ -26,7 +26,7 @@ class KidsController extends AbstractAction
// 渲染模板并输出
$this->_view->display('index', array(
'kidsHomePage' => true,
'showFooterTab'=>true,
'showFooterTab'=> false,
'maybeLike' => true,
'content' => Index\HomeModel::getKidsFloor(),
'pageFooter' => true,
... ...
... ... @@ -26,7 +26,7 @@ class LifestyleController extends AbstractAction
// 渲染模板并输出
$this->_view->display('index', array(
'lifestyleHomePage' => true,
'showFooterTab'=>true,
'showFooterTab'=> false,
'maybeLike' => true,
'content' => Index\HomeModel::getLifestyleFloor(),
'pageFooter' => true,
... ...