<template>
    <div class="hot-teacher">
        <div class="space-between">
            <img class="img" src="../../images/Group21@2x.png"/>
        </div>
        <div class="teacher-item space-between">
            <div class="tea-itemImg">
                <img :src="resourceData.img"/>
            </div>
            <div class="five-text">
                <div class="tea-itemname fw fs30">{{resourceData.name}}</div>
                <div class="five-tag fs28 gray">{{resourceData.motto}}</div>
                <div @click="btn" class="porter-btn white fs22">查看</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
  name: 'YqyFiveMinutes',
  components: {
  },
  watch: {
  },
  props: {
        resourceData: {
            type: Object,
            default:()=>{
                return{
                        img: '../../images/Shape@2x.png',
                        name: '原来高血压',
                        motto: '北京大学人民医院'
                    }
            }
        }
    },
  data () {
    return {
    }
  },
  mounted(){
  },
  methods: {
      fiveMinutesMore(){
          console.log('fiveMinutesMore');
          this.$emit('fiveMinutesMore')
      },
      btn(){
          console.log('btn');
          this.$emit('btn')
      }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import '../../style/mixin.scss';
@import '../../style/global.scss';
.hot-teacher{
    width: 100%;
    background-color: #fff;
    padding: 0 px2rem(15px) px2rem(26px);
    .img{
        width: px2rem(109px);
        height: px2rem(22px);
    }
    .five-more{
        border: 1px solid RGBA(169, 174, 183, 1);
        border-radius: px2rem(9px);
        width: px2rem(40px);
        height: px2rem(16px);
        text-align: center;
        line-height: px2rem(15px);
    }
    .teacher-item{
        width: 100%;
        height: px2rem(65px);
        position: relative;
        margin-top: px2rem(20px);
        background: #F9FAFC;
        &:not(:last-child){
            border-bottom: 1px solid RGBA(240, 240, 240, 1);
        }
        .tea-itemimg{
            width: px2rem(56px);
            height: px2rem(63px);
            border-radius: px2rem(3px);
        }
        .five-text{
            width: px2rem(280px);
            
            position: relative;
        }
        .tea-itemname{
            color: RGBA(102, 102, 102, 1);
            margin: px2rem(10px) 0 px2rem(6px);
        }
        .five-tag{
            width: px2rem(235px);
            height: px2rem(14px);
        }
        .porter-btn{
            width: px2rem(42px);
            height: px2rem(20px);
            background: linear-gradient(to bottom, RGBA(143, 193, 230, 1), RGBA(88, 144, 221, 1));
            border-radius: px2rem(14px);
            text-align: center;
            line-height: px2rem(20px);
            position:absolute;
            right: px2rem(10px);;
            top: 50%;
            margin-top:-(px2rem(10px));
        }
    }
}
</style>
