<template>
  	<section class="font-style">
        <teacherTop></teacherTop>
        
        <div class="teach-opt">
            <div class="tea-detail">
            
            </div>
            <div class="teach-title">课程教学</div>
            <div class="opt-span">
                <span class="">人气
                    <img src="../../images/sort-d.png">
                </span>
            </div>
            <div class="teach-list">
                <div :class="index%2==1?'list-item mr0':'list-item'" v-for="(item,index) in list">
                    <div class="tea-img">
                        <img src="../../images/552064153@2x.png">
                        <span class="learn-p">477人已学</span>
                    </div>
                    <div class="tea-txt">
                        <p class="tea-name">吴金韵</p>
                        <div class="tea-position">
                            上海复旦大学医学院
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</template>

<script>
import teacherTop from '../../components/teachers/teach-top';
export default {
    components:{
        teacherTop
    },
    data(){
        return {
            list:[{},{},{}]
        }
    },
	mounted(){
        
    },
    computed:{
       
    },
    methods:{

       
    }
}

</script>
<style>
    body{background: #fff}
</style>
<style lang="scss" scoped>
body{background: #fff}
    @import '../../style/mixin';

    .mint-header {
        background-color: rgba($color: #000000, $alpha: 0)
    }
    .font-style {
        width: 100%;
        overflow: hidden;
       
        @include sc(0.6rem, #666);
    }
    .tea-detail{
        height: px2rem(127px);
        position: absolute;
        width: 100%;
        left: 0;
        top:-(px2rem(77px));
        z-index: 10;
         @include bis('../../images/detaiBg.png');
         
    }
    .teach-opt{
        padding:px2rem(26px)  px2rem(15px) px2rem(15px) px2rem(15px);
         position: relative;
        .teach-title{
            font-size: px2rem(18px);
            padding-bottom: px2rem(15px);
            color:#333;
        }
        .teach-list{
            overflow: hidden;
        }
        .opt-span{
            span{
                color:#449284;
                font-size: px2rem(13px);
                display: inline-block;
                vertical-align: middle;
                height: px2rem(15px);
                line-height: px2rem(15px);
                img{
                    display: inline-block;
                    width: px2rem(15px);
                    height: px2rem(15px);
                    vertical-align: middle;
                }
            }
        }
        .list-item{
            width: px2rem(170px);
            margin-right: px2rem(5px);
            margin-top: px2rem(15px);
           
            float: left;
            box-shadow: 0 px2rem(4px) px2rem(6px) RGBA(0, 0, 0, 0.06);
        }
        .mr0{
            margin-right: 0
        }
        .tea-txt{
            padding:px2rem(7px);
        }

        .tea-img{
            width: px2rem(170px);
            height: px2rem(83px);
            position: relative;
           
            img{
                width: 100%;
                height: 100%;
                display: block;
                border-radius: px2rem(3px) px2rem(3px) 0 0 ;
            }
            .learn-p{
                padding-left: px2rem(5px);
                position: absolute;
                width: 100%;
                left:0;
                bottom: 0;
                background: #333;
                background: -webkit-linear-gradient(left, RGBA(0, 0, 0, 0.2),RGBA(0, 0, 0, 0)); 
                background: -o-linear-gradient(right, RGBA(0, 0, 0, 0.2),RGBA(0, 0, 0, 0)); 
                background: -moz-linear-gradient(right, RGBA(0, 0, 0, 0.2),RGBA(0, 0, 0, 0)); 
                background: linear-gradient(to right, RGBA(0, 0, 0, 0.2),RGBA(0, 0, 0, 0)); 
                color:#fff;
                font-size: px2rem(11px);
                height: px2rem(20px);
                line-height: px2rem(20px);
            }
        }
        .tea-name{
            color:#333;
            font-size: px2rem(14px);
            padding: px2rem(7px) 0 px2rem(3px) 0;
        }
        .tea-position{
            height: px2rem(30px);
            font-size: px2rem(12px);
            line-height: px2rem(15px);
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
        }
    }
    .home-header {
        height: px2rem(185px);
        @include bis('../../images/headerTop.png');
        .logo_img{
            height: px2rem(85px);
            width: px2rem(345px);
            text-align: center;
        }
    }
</style>
