<template>
    <div class="page">
        <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
            <el-tab-pane label="公司新闻" name="1">
                <div class="item-1">
                   <div class="item" v-for="i in 9">
                    <img src="@/assets/images/15探海神龟.jpg" alt="">
                    <div class="info">
                        <div class="title">新闻名称新闻标题长长的标题</div>
                        <div class="time">2019-3-1</div>
                    </div>
                   </div>
                </div>
            </el-tab-pane>
            <el-tab-pane label="行业动态" name="2">
                <!-- <div class="item-2">
                    <img src="@/assets/images/组 21 拷贝.png" alt="">
                </div> -->
            </el-tab-pane>
            <el-tab-pane label="消防规范" name="3">
                <!-- <div class="item-3">
                    <div class="item" v-for="i in 5">
                        <img src="@/assets/images/15探海神龟.jpg" alt="">
                        <div class="info">
                            <div class="title"></div>
                            <div class="time"></div>
                        </div>
                    </div>
                </div> -->
            </el-tab-pane>
        </el-tabs>
       
    </div>    
          
  </template>
  
  <script>
  export default {
      name: 'Bottom',
      components: {
      },
      data(){
          return{
            activeName: '1'
              
          }
      },
      created(){
          
      },
      
      methods:{
        handleClick(tabsPaneContext,e){
            console.log(tabsPaneContext)
            console.log(e)
        }
         
      }
  }
  </script>
  <style lang="scss" scoped>
    ::v-deep .el-tabs__nav-scroll{
        display: flex;
        justify-content: center;
    }
    ::v-deep .el-tabs__item:hover{
        color: #1D2088;
    }
    ::v-deep .el-tabs__item.is-active{
        color: #1D2088;
    }
    ::v-deep .el-tabs__active-bar{
        background-color: #1D2088;
    }
    .page{
        min-height: 10.75rem;
        .item-1{
            display: flex;
            flex-wrap: wrap;
            padding: 1rem 2.25rem;
            .item{
                width: 4.875rem;
                padding: 0 .125rem;
                margin-bottom: .25rem;
                img{
                    width: 100%;
                    height: 3.6rem;
                }
                .info{
                    border: 1px solid #ccc;
                    margin-top: -4px;
                    height: 1.0625rem;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-around;
                    padding-left: .125rem;
                    .title{
                        width: 100%;
                        background-color: #fff;
                }

                }
                
            }

        }
        .item-2{
            margin-top: 1rem;
           display: flex;
           justify-content: center;
            img{
                width: 13.7125rem;
                height: auto;
            }
        }
        .item-3{
            display: flex;
            flex-wrap: wrap;
            padding: 1rem 2.475rem;
            background-color: #fff;
            /* justify-content: space-between; */
            .item{
                width: 33.3%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                margin-bottom: .375rem;
                img{
                    width: 90%;
                    height: 100%;
                }
                .info{
                    margin-top: .125rem;

                    .title{
                        font-size: .25rem;
                        color: #333333;
                    }
                    .time{
                        font-size: 14px;
                        color: #666666;
                    }
                }
            }
        }
    }
  </style>
  