footer-bar.php
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
use yii\helpers\Url;
?>
<style>
.toolbar .toolbar-inner {
background: #fff;
}
.toolbar .toolbar-inner a.active {
color: #dd2727;
background: #fff;
}
.toolbar .toolbar-inner .badge {
color: #fff;
background: #dd2727;
}
.toolbar .toolbar-inner .iconfont {
font-size:22px;
}
</style>
<div class="toolbar tabbar tabbar-labels toolbar-fixed">
<div class="toolbar-inner" style="border: 0; padding: 0;">
<a href="<?=Url::toRoute(['/order'])?>" class="tab-link <?php if('order' == $label):?>active<?php endif;?> home-link">
<i class="icon iconfont <?=(''==$label) ? 'icon-home-fill' : 'icon-home'?>"></i>
<span class="tabbar-label">首页</span>
</a>
<!--
<a href="<?=Url::toRoute(['/cat'])?>" class="tab-link <?php if('cat' == $label):?>active<?php endif;?> cat-link">
<i class="icon iconfont <?=('cat'==$label) ? 'icon-search-list-fill' : 'icon-search-list'?>"></i>
<span class="tabbar-label">搜索</span>
</a>
<a href="<?=Url::toRoute('/cart')?>" class="tab-link <?php if('cart' == $label):?>active<?php endif;?> cart-link">
<i class="icon iconfont <?=('cart'==$label) ? 'icon-cart-fill' : 'icon-cart'?>">
<span class="badge">0</span>
</i>
<span class="tabbar-label">购物车</span>
</a>
-->
<a href="<?=Url::toRoute(['/user'])?>" class="tab-link <?php if('user' == $label):?>active<?php endif;?> user-link">
<i class="icon iconfont <?=('user'==$label) ? 'icon-my-fill' : 'icon-my'?>"></i>
<span class="tabbar-label">我</span>
</a>
</div>
</div>