<template>
    <div class="hot-teacher" id="famus-teacher">
        <div class="title">
            {{title}}
        </div>
        <div class="tea-list">
            <div class="tea-listbox">
                <div class="tea-item" :key="index" v-for="(item,index) in hotTeachers">
                    <div class="head-pic">
                        <img class="tea-itemimg" :src="item.avatarImageUrl"/>
                    </div>
                    <span class="tea-itemname">{{item.name}}</span>
                </div>
            </div>
        </div>
        
    </div>
</template>

<script>
export default {
    data(){
        return {
            title:'云鹊名师',
            hotTeachers:[
                {
                    "id": 381,
                    "name": "宣淼01",
                    "avatarImageUrl": "https://test-file.yunqueyi.com/image/jpeg/2018/07/26/20180726162641165-6c6f6a38.jpg",
                    "appImageUrl": "https://test-file.yunqueyi.com/image/jpeg/2018/06/23/20180623152219485-d71ef663.jpg"
                }   
            ],
            pageNo:1,
            pageSize:10
        }
    },
 
    mounted(){
        this.getData();
    },
    methods: {
        getData(){

            let para = {
                pageNo:this.pageNo,
                pageSize:this.pageSize,
            }
            this.GET('contents/HomeLecturer/LecturerInformation', para).then(res => {
                if(res.code == '000000'){

                }
            })
        }
    }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import '../../style/mixin.scss';
.hot-teacher{
    width: 100%;
    background-color: #fff;
    padding: 0 0  px2rem(26px) px2rem(15px);
    .title{
        font-size: px2rem(18px);
        padding: 0 0 px2rem(21px) px2rem(5px);
        font-weight: bold;
    }
    .tea-list{
        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;
    }
    .tea-listbox{
        width: 1100px;
        clear: both;
    }
    .tea-item{
        font-size: px2rem(13px);
        margin: 0 px2rem(19px) 0 0;
        display: inline-block;
       
        position: relative;
        float: left;
        text-align: center;
        .head-pic{
            background: #ECECEC;
            width: px2rem(50px);
            height: px2rem(50px);
            border-radius: 50%;
    
        }
        .tea-itemimg{
            width: px2rem(39px);
            height: px2rem(44px);
            margin-top: px2rem(6px);
            border-radius: 50%;
        }
        .tea-itemname{
            color: RGBA(102, 102, 102, 1);
            padding-top: px2rem(5px);
            font-size: px2rem(13px);
            line-height: px2rem(19px);
        }
    }
}
</style>
