<template>
<div class="bottomMenu">
  <div :class="['btnbox',{active:routerName == 'home'}]" @click="$router.push({name:'home'})">
    <van-icon name="gem"  size="25"/>
    <span>首页</span>
  </div>
  <div :class="['btnbox',{active:routerName == 'my'}]" @click="$router.push({name:'my'})">
    <van-icon name="map-marked" size="25"/>
    <span>我的</span>
  </div>
</div>
</template>

<script>
export default {
  name: "bottomMenu",
  computed:{
    routerName(){
      return this.$route.name
    }
  }
}
</script>

<style scoped lang="less">
.bottomMenu{
  height: 89px;
  border-top: 1px solid #F4F5F6;
  display: flex;
  justify-content: space-around;
  align-items: center;
  .btnbox{
    display: flex;
    flex-direction: column;
    color:#75818F;
    span{
      font-size: 13px;
      margin-top: 6px;
    }
  }
  .active{
    color:#6C5DD3;
    font-weight: 600;
    span{
      color:black;

    }
  }
}
</style>