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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
<div class="bottom-tab">
<div :class="{actived:$route.name === 'index',left:true}" @click="toUrl('index')">
<i class="iconfont icon-zhuye"></i>
<br>
首页
</div>
<div :class="{actived:$route.name === 'mine'}" @click="toUrl('mine')">
<i class="iconfont icon-wode"></i>
<br>
我的
</div>
</div>
</template>
<script>
export default {
name: "bottomTab",
data(){return{}},
methods:{
toUrl(data){
this.$router.push({name:data})
}
}
}
</script>
<style scoped lang="less">
@import "../../util/public";
.bottom-tab{
width: 375*@toVw;
height: 48*@toVw;
position: fixed;
left: 0;
bottom: 0;
box-shadow:0px -1px 2px 0px rgba(204,204,204,0.5);
padding: 0 6*@toVw;
display: flex;
font-size:10px;
font-family:PingFang-SC-Medium;
text-align: center;
font-weight:normal;
color:#ccc;
line-height:14px;
z-index: 30;
background: white;
&>div{
width: 50%;
}
.left{
border-right: 1px solid #eeeeee;
}
.actived{
color: #6EB1FF;
}
}
</style>