Merge branch 'bugfix' into develop
Showing
11 changed files
with
66 additions
and
7 deletions
@@ -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"; |
static/sass/layout/_footer_tab.scss
0 → 100644
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 | +} |
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"></p> | ||
5 | + <p class="tab-name">首页</p> | ||
6 | + </div> | ||
7 | + <div class="tab-item {{#if categoryPage}}current{{/if}}"> | ||
8 | + <p class="iconfont tab-icon"></p> | ||
9 | + <p class="tab-name">分类</p> | ||
10 | + </div> | ||
11 | + <div class="tab-item {{#if guangHome}}current{{/if}}"> | ||
12 | + <p class="iconfont tab-icon"></p> | ||
13 | + <p class="tab-name">逛</p> | ||
14 | + </div> | ||
15 | + <div class="tab-item {{#if shoppingCartPage}}current{{/if}}"> | ||
16 | + <p class="iconfont tab-icon"></p> | ||
17 | + <p class="tab-name">购物车</p> | ||
18 | + </div> | ||
19 | + <div class="tab-item {{#if minePage}}current{{/if}}"> | ||
20 | + <p class="iconfont tab-icon"></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 | )); |
-
Please register or login to post a comment