Authored by uedxwg

hotrank引入js

@@ -143,6 +143,13 @@ @@ -143,6 +143,13 @@
143 seajs.use('js/index/footer'); 143 seajs.use('js/index/footer');
144 </script> 144 </script>
145 {{/if}} 145 {{/if}}
  146 +{{!-- 热门排行 --}}
  147 +{{#if hotrankPage}}
  148 +<script>
  149 + seajs.use('js/product/newsale/hot-rank');
  150 + seajs.use('js/index/footer');
  151 +</script>
  152 +{{/if}}
146 {{!-- 商品列表 --}} 153 {{!-- 商品列表 --}}
147 {{#if goodListPage}} 154 {{#if goodListPage}}
148 <script> 155 <script>
@@ -82,7 +82,7 @@ class NewsaleController extends AbstractAction @@ -82,7 +82,7 @@ class NewsaleController extends AbstractAction
82 $channel = Helpers::getChannelByCookie(); 82 $channel = Helpers::getChannelByCookie();
83 // 设置一些默认参数 83 // 设置一些默认参数
84 $data = array( 84 $data = array(
85 - 'discountPage' => true, 85 + 'hotrankPage' => true,
86 'headerBanner' => \Product\NewsaleModel::getNewFocus($channel), 86 'headerBanner' => \Product\NewsaleModel::getNewFocus($channel),
87 'showDownloadApp' => true, 87 'showDownloadApp' => true,
88 'pageFooter' => true, 88 'pageFooter' => true,