Authored by ccbikai

Merge branch 'bugfix' into develop

@@ -93,4 +93,4 @@ a { @@ -93,4 +93,4 @@ a {
93 } 93 }
94 94
95 95
96 -@import "layout/header", "layout/footer", "good", "filter", "passport/index", "guang/index", "home/index", "category/index", "product/index", "index/index", "shopping-cart/index"; 96 +@import "layout/header", "layout/footer", "layout/footer_tab", "good", "filter", "passport/index", "guang/index", "home/index", "category/index", "product/index", "index/index", "shopping-cart/index";
  1 +.footer-tab {
  2 + position: fixed;
  3 + left: 0;
  4 + bottom: 0;
  5 + width: 100%;
  6 + height: 100rem / $pxConvertRem;
  7 + padding-top: 20rem / $pxConvertRem;
  8 + box-sizing: border-box;
  9 + background: #fff;
  10 + border-top: 1px solid #b0b0b0;
  11 + z-index: 3;
  12 + .tab-item {
  13 + float: left;
  14 + width: 20%;
  15 + text-align: center;
  16 + color: #b0b0b0;
  17 + &.current {
  18 + color: #5e4b3c;
  19 + }
  20 + }
  21 + .tab-icon {
  22 + font-size: 40rem / $pxConvertRem;
  23 + line-height: 1;
  24 + }
  25 + .tab-name {
  26 + margin-top: 10rem / $pxConvertRem;
  27 + font-size: 20rem / $pxConvertRem;
  28 + line-height: 1;
  29 + }
  30 +}
@@ -15,5 +15,5 @@ @@ -15,5 +15,5 @@
15 <div class="overlay"></div> 15 <div class="overlay"></div>
16 </div> 16 </div>
17 {{> home/side_nav}} 17 {{> home/side_nav}}
18 -{{> layout/footer}}  
19 -{{> layout/download_app}}  
  18 +{{> layout/footer_tab}}
  19 +{{> layout/footer}}
@@ -10,5 +10,5 @@ @@ -10,5 +10,5 @@
10 <div class="overlay"></div> 10 <div class="overlay"></div>
11 </div> 11 </div>
12 {{> home/side_nav}} 12 {{> home/side_nav}}
  13 +{{> layout/footer_tab}}
13 {{> layout/footer}} 14 {{> layout/footer}}
14 -{{> layout/download_app}}  
@@ -21,5 +21,5 @@ @@ -21,5 +21,5 @@
21 <div class="overlay"></div> 21 <div class="overlay"></div>
22 </div> 22 </div>
23 {{> home/side_nav}} 23 {{> home/side_nav}}
  24 +{{> layout/footer_tab}}
24 {{> layout/footer}} 25 {{> layout/footer}}
25 -{{> layout/download_app}}  
@@ -19,5 +19,5 @@ @@ -19,5 +19,5 @@
19 <div class="overlay"></div> 19 <div class="overlay"></div>
20 </div> 20 </div>
21 {{> home/side_nav}} 21 {{> home/side_nav}}
22 -{{> layout/footer}}  
23 -{{> layout/download_app}}  
  22 +{{> layout/footer_tab}}
  23 +{{> layout/footer}}
  1 +{{# showFooterTab}}
  2 +<div class="footer-tab">
  3 + <div class="tab-item {{#if grilsHomePage}}current{{/if}}{{#if boysHomePage}}current{{/if}}{{#if kidsHomePage}}current{{/if}}{{#if lifestyleHomePage}}current{{/if}}">
  4 + <p class="iconfont tab-icon">&#xe611;</p>
  5 + <p class="tab-name">首页</p>
  6 + </div>
  7 + <div class="tab-item {{#if categoryPage}}current{{/if}}">
  8 + <p class="iconfont tab-icon">&#xe611;</p>
  9 + <p class="tab-name">分类</p>
  10 + </div>
  11 + <div class="tab-item {{#if guangHome}}current{{/if}}">
  12 + <p class="iconfont tab-icon">&#xe611;</p>
  13 + <p class="tab-name">逛</p>
  14 + </div>
  15 + <div class="tab-item {{#if shoppingCartPage}}current{{/if}}">
  16 + <p class="iconfont tab-icon">&#xe611;</p>
  17 + <p class="tab-name">购物车</p>
  18 + </div>
  19 + <div class="tab-item {{#if minePage}}current{{/if}}">
  20 + <p class="iconfont tab-icon">&#xe611;</p>
  21 + <p class="tab-name">我的</p>
  22 + </div>
  23 +</div>
  24 +{{/ showFooterTab}}
  25 +
@@ -27,6 +27,7 @@ class BoysController extends AbstractAction @@ -27,6 +27,7 @@ class BoysController extends AbstractAction
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'boysHomePage' => true, 28 'boysHomePage' => true,
29 'showDownloadApp'=>true, 29 'showDownloadApp'=>true,
  30 + 'showFooterTab'=>true,
30 'maybeLike' => true, 31 'maybeLike' => true,
31 'content' => Index\HomeModel::getBoysFloor() 32 'content' => Index\HomeModel::getBoysFloor()
32 )); 33 ));
@@ -27,6 +27,7 @@ class GirlsController extends AbstractAction @@ -27,6 +27,7 @@ class GirlsController extends AbstractAction
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'grilsHomePage' => true, 28 'grilsHomePage' => true,
29 'showDownloadApp'=>true, 29 'showDownloadApp'=>true,
  30 + 'showFooterTab'=>true,
30 'maybeLike' => true, 31 'maybeLike' => true,
31 'content' => Index\HomeModel::getGirlsFloor() 32 'content' => Index\HomeModel::getGirlsFloor()
32 )); 33 ));
@@ -27,6 +27,7 @@ class KidsController extends AbstractAction @@ -27,6 +27,7 @@ class KidsController extends AbstractAction
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'kidsHomePage' => true, 28 'kidsHomePage' => true,
29 'showDownloadApp'=>true, 29 'showDownloadApp'=>true,
  30 + 'showFooterTab'=>true,
30 'maybeLike' => true, 31 'maybeLike' => true,
31 'content' => Index\HomeModel::getKidsFloor() 32 'content' => Index\HomeModel::getKidsFloor()
32 )); 33 ));
@@ -27,6 +27,7 @@ class LifestyleController extends AbstractAction @@ -27,6 +27,7 @@ class LifestyleController extends AbstractAction
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'lifestyleHomePage' => true, 28 'lifestyleHomePage' => true,
29 'showDownloadApp'=>true, 29 'showDownloadApp'=>true,
  30 + 'showFooterTab'=>true,
30 'maybeLike' => true, 31 'maybeLike' => true,
31 'content' => Index\HomeModel::getLifestyleFloor() 32 'content' => Index\HomeModel::getLifestyleFloor()
32 )); 33 ));