<template>
  <div class="teach-top">
    <span class="back">
      <img src="../../images/left-icon.png">
    </span>
    <div class="tc title">讲师集</div>
    <div class="tc count">290,099,120人学习  23,789,238人关注</div>
  </div>
</template>

<script>

export default {
  data () {
    return {
     
    }
  },
  props:{
      isFixed:{
        default:false,
        type:Boolean
      },
      statusBarHeight:{
        type:Number,
        default:0
      },
  },
  mounted(){
   
    
  },
 
  methods: {

    //跳转
    goToPage(item){
      this.pageBurialPoin({
        menuLevel:1,
        menuCode:'m_home',
        functionCode:'f_recommend',
        actionCode:'c_course',
        labelId:item.id,
        labelvalue:item.name,
      })
      let itemData={
          "title":item.name,
          "imageUrl":"",
          "appModuleInfo":{
              "code":"M200",
              "type":4,
              "name":"课程介绍页",
              "paramFlag":1,
              "paramList":[
                  {
                      "key":"className",
                      "value":"com.picahealth.yunque.activitys.courseplaynew.CourseIntroduceActivity###WeexCourseIntroViewController",
                      "type":4,
                      "seqNo":1
                  },
                  {
                      "key":"courseId",
                      "value":`${item.id}`,
                      "type":1,
                      "seqNo":2
                  }
              ]
          }
      };
      let paramList = this.setEventByModuleCode(itemData);
      rocNative.dispatchEventByModuleCode({
          modeCode: itemData.appModuleInfo.code,
          jsonString: paramList
      })
    },


 

   



    //加载数据
    getData(type){
      let _this = this,
      parm = {
        pageNo:_this.pageNo,
        pageSize:_this.pageSize,
        token:_this.token,
        setEntry: 'headers'
      }

      _this.GET('contents/courses/recommendCourseList',parm).then(function(res){

        if(res.code === '000000'){
          
        
        }else{
         
        }
        
      },function(){
        
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import '../../style/mixin.scss';
@import '../../style/global.scss';
.teach-top{
  width: 100%;
  height: px2rem(185px);
  position: relative;
  @include bis('../../images/headerTop.png');
  .tc{
    text-align: center;
  }
  .back{
    position: absolute;
    left:px2rem(18px);
    top: px2rem(25px);
    display: inline-block;
    width: px2rem(25px);
    height: px2rem(25px);
    img{
      width: 100%;
      height: 100%;

    }
  }
  .title{
    font-size: px2rem(25px);
    color: #fff;
    padding: px2rem(55px) 0 px2rem(8px) 0;
    font-weight: 500
  }
  .count{
    font-size: px2rem(15px);
    line-height: px2rem(21px);
    color: #fff;
  }
}



</style>
