diff --git a/static/js/product/newsale/discount.js b/static/js/product/newsale/discount.js index 7e46f0e..7e518e3 100644 --- a/static/js/product/newsale/discount.js +++ b/static/js/product/newsale/discount.js @@ -217,7 +217,7 @@ function search(opt) { lazyLoad($('.lazy')); filter.registerCbFn(search); -loading.initLoadingMask(); +// loading.initLoadingMask(); //导航栏点击逻辑说明: //1.点击非active项时切换active状态 @@ -323,4 +323,7 @@ $(window).scroll(function() { search(); } } -}); \ No newline at end of file +}); + +//初始请求最新第一页数据 +search(); diff --git a/static/js/product/newsale/newarrival.js b/static/js/product/newsale/newarrival.js index 0da0a5e..4cc7e31 100644 --- a/static/js/product/newsale/newarrival.js +++ b/static/js/product/newsale/newarrival.js @@ -244,7 +244,7 @@ function search(opt) { lazyLoad($('.lazy')); filter.registerCbFn(search); -loading.initLoadingMask(); +// loading.initLoadingMask(); //导航栏点击逻辑说明: //1.点击非active项时切换active状态 @@ -337,4 +337,7 @@ $(window).scroll(function() { search(); } } -}); \ No newline at end of file +}); + +//初始请求最新第一页数据 +search(); diff --git a/template/m.yohobuy.com/actions/category/brand/index.phtml b/template/m.yohobuy.com/actions/category/brand/index.phtml index 34f8cdb..e6a979d 100644 --- a/template/m.yohobuy.com/actions/category/brand/index.phtml +++ b/template/m.yohobuy.com/actions/category/brand/index.phtml @@ -83,4 +83,5 @@ </div> </div> </div> -{{> layout/footer}} \ No newline at end of file +{{> layout/footer}} +{{> layout/download_app}} \ No newline at end of file diff --git a/template/m.yohobuy.com/actions/category/class/index.phtml b/template/m.yohobuy.com/actions/category/class/index.phtml index 4cd6680..96fd65f 100644 --- a/template/m.yohobuy.com/actions/category/class/index.phtml +++ b/template/m.yohobuy.com/actions/category/class/index.phtml @@ -40,4 +40,5 @@ </div> {{/ category}} </div> -{{> layout/footer}} \ No newline at end of file +{{> layout/footer}} +{{> layout/download_app}} \ No newline at end of file diff --git a/template/m.yohobuy.com/actions/product/index/index.phtml b/template/m.yohobuy.com/actions/product/index/index.phtml index d5e8890..1186baa 100644 --- a/template/m.yohobuy.com/actions/product/index/index.phtml +++ b/template/m.yohobuy.com/actions/product/index/index.phtml @@ -2,4 +2,5 @@ <div class="good-list-page yoho-page"> {{> product/list}} </div> -{{> layout/footer}} \ No newline at end of file +{{> layout/footer}} +{{> layout/download_app}} \ No newline at end of file diff --git a/template/m.yohobuy.com/actions/product/newsale/new.phtml b/template/m.yohobuy.com/actions/product/newsale/new.phtml index 8ed702c..aefceb6 100644 --- a/template/m.yohobuy.com/actions/product/newsale/new.phtml +++ b/template/m.yohobuy.com/actions/product/newsale/new.phtml @@ -83,4 +83,5 @@ {{/if}} </div> -{{> layout/footer}} \ No newline at end of file +{{> layout/footer}} +{{> layout/download_app}} \ No newline at end of file diff --git a/template/m.yohobuy.com/actions/product/newsale/sale.phtml b/template/m.yohobuy.com/actions/product/newsale/sale.phtml index 7325d6b..2d7e316 100644 --- a/template/m.yohobuy.com/actions/product/newsale/sale.phtml +++ b/template/m.yohobuy.com/actions/product/newsale/sale.phtml @@ -94,4 +94,5 @@ {{/if}} </div> -{{> layout/footer}} \ No newline at end of file +{{> layout/footer}} +{{> layout/download_app}} \ No newline at end of file diff --git a/template/m.yohobuy.com/partials/layout/use.phtml b/template/m.yohobuy.com/partials/layout/use.phtml index 54683a2..24a1cbb 100644 --- a/template/m.yohobuy.com/partials/layout/use.phtml +++ b/template/m.yohobuy.com/partials/layout/use.phtml @@ -122,6 +122,7 @@ {{#if newArrivalPage}} <script> seajs.use('js/product/newsale/newarrival'); + seajs.use('js/index/footer'); </script> {{/if}} @@ -129,6 +130,7 @@ {{#if discountPage}} <script> seajs.use('js/product/newsale/discount'); + seajs.use('js/index/footer'); </script> {{/if}} @@ -136,6 +138,7 @@ {{#if goodListPage}} <script> seajs.use('js/product/list'); + seajs.use('js/index/footer'); </script> {{/if}} @@ -150,6 +153,7 @@ {{#if categoryPage}} <script> seajs.use('js/category/index'); + seajs.use('js/index/footer'); </script> {{/if}} @@ -157,6 +161,7 @@ {{#if brandPage}} <script> seajs.use('js/category/brand'); + seajs.use('js/index/footer'); </script> {{/if}} diff --git a/yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php b/yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php index 92b94b6..d5559a2 100644 --- a/yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php +++ b/yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php @@ -26,10 +26,6 @@ class NewsaleController extends AbstractAction $data = array(); $data['newArrivalPage'] = true; $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel); - $goodsList = \Product\NewsaleModel::getNewProducts($channel, 60); - if (!empty($goodsList)) { - $data += $goodsList; - } // 设置一些筛选的默认参数 $data += array( 'showDownloadApp'=>true, @@ -60,10 +56,6 @@ class NewsaleController extends AbstractAction $data = array(); $data['discountPage'] = true; $data['headerBanner'] = \Product\NewsaleModel::getNewFocus($channel); - $goodsList = \Product\NewsaleModel::getSaleProducts($channel, 60); - if (!empty($goodsList)) { - $data += $goodsList; - } // 设置一些筛选的默认参数 $data += array( 'showDownloadApp'=>true,