<template>
  <div class="sign_box">
    <div class="sign_item" v-for="item in 4" @click="indexs = item">
      <img src="@/assets/images/pic_tabbg@2x.png" v-show="indexs==item" alt="" class="img">
      <img src="@/assets/404_images/404_cloud.png" alt="" class="icon">
      <span>首页</span>
    </div>

  </div>
</template>

<script>
  export default{
    data() {
      return {
        indexs:1
      }
    }
  }
</script>

<style lang="scss" scoped>
  .sign_box{
    padding-left: 52px;
    .sign_item{
      cursor: pointer;
      float: left;
      display: flex;
      height: 60px;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 153px;
      padding-top: 10px;
      box-sizing: border-box;
      .img{
        width: 153px;
        height: 48px;
        position: absolute;
        left: 0;
        bottom: 0;
      }
      .icon{
        position: relative;
        z-index: 1;
        width: 20px;
        height: 20px;
        margin-right: 8px;
      }
      span{
        position: relative;
        z-index: 1;
        color: #fff;
        font-size: 17px;
      }
    }
  }
</style>
