<template>
    <div class="hotTeacher">
        <div class="title">
            {{title}}
        </div>
        <div class="teacherList">
           <div class="teacherItemBox">
                <div class="teacherItem" :key="index" v-for="(item,index) in hotTeachers">
                    <div class="headPic">
                        <img class="teacherItemImg" src="../../images/552064153@2x.png"/>
                    </div>
                    <span class="teacherItemName">{{item.name}}</span>
                </div>
           </div>
        </div>
        
    </div>
</template>

<script>
export default {
    name: 'YqyHotTeacher',

    props: {
        title:{
            type:String,
            default:'云鹊名师'
        },
        hotTeachers: {
            type: Array,
            default:()=>{
                return [
                    {
                        img: '../../images/552064153@2x.png',
                        name: '蒋立新'
                    },
                    {
                        img: '../../images/head-test.png',
                        name: '蒋立新'
                    },
                    {
                       img: '../../images/head-test.png',
                        name: '蒋立新'
                    },
                    {
                        img: '../../images/head-test.png',
                        name: '蒋立新'
                    },
                    {
                        img: '../../images/head-test.png',
                        name: '蒋立新'
                    },
                    {
                        img: '../../images/head-test.png',
                        name: '蒋立新'
                    },
                    {
                        img: '../../images/head-test.png',
                        name: '蒋立新'
                    }
                ]
            }
        }
    },
  data () {
    return {
    }
  },
  mounted(){
  },
  methods: {
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import '../../style/mixin.scss';
.hotTeacher{
    width: 100%;
    background-color: #fff;
    padding: 0 px2rem(15px) px2rem(26px);
    .title{
        font-size: px2rem(18px);
        padding: 0 0 px2rem(21px) px2rem(5px);
        font-weight: bold;
    }
    .teacherList{
        width: 100%;
        overflow: hidden;
        height:  px2rem(75px);
        overflow-x: scroll;
        -webkit-tap-highlight-color:rgba(0,0,0,0);
        outline: 0;
        -webkit-overflow-scrolling : touch;
    }
    .teacherItemBox{
        width: 1100px;
    }
    .teacherItem{
        font-size: px2rem(13px);
        margin: 0 px2rem(19px) 0 0;
        display: inline-block;
       
        position: relative;
        float: left;
        text-align: center;
        .headPic{
            background: #ECECEC;
            width: px2rem(50px);
            height: px2rem(50px);
            border-radius: 50%;
    
        }
        .teacherItemImg{
            width: px2rem(39px);
            height: px2rem(44px);
            margin-top: px2rem(6px);
            border-radius: 50%;
        }
        .teacherItemName{
            color: RGBA(102, 102, 102, 1);
            padding-top: px2rem(5px);
            font-size: px2rem(13px);
            line-height: px2rem(19px);
        }
    }
}
</style>
