• wangwei's avatar
    团购 添加手机号 · 5cb8b04f
    wangwei authored
         判断如果购买过了以后跳转成功页
    课包 返回列表修改
         自动播放优化处理
         单词卡自适应
         视频按钮修改 添加文字
    系统 切换按钮颜色修改
    5cb8b04f
bottomTab.vue 1.12 KB
<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>