<template>
  <div class="cont">
    <div class="title">
      <div>上课人员</div>
    
    </div>
    <div class="info">
      <div class="item" v-for="(item,index) in list" :key="index">
        <div style="display:flex">
          <div class="stuinfo">
            <div>{{item.name}}</div>
          </div>
        </div>

        <div class="icons">
            <img src="@/static/images/camera.png" @click="cameta(item.memberid)" alt="" class="icon">
            <img src="@/static/images/vol.png" alt="" class="icon" @click="vol(item.memberid)">
        </div>
      </div>

     
    </div>
  </div>
</template>
<style lang="scss" scoped>
.cont {
  width: 316px;
  height: 630px;
  background-color: #fff;
  border-radius: 17px;
  padding: 0 28px;
  position: relative;
  overflow: auto;
  .title {
    padding: 23px 0 11px 0;
    font-size: 13px;
    color: #111;
    line-height: 1;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    .more {
      color: #999999;
      font-size: 11px;
    }
  }
  .info {
    .item {
      display: flex;
      align-content: center;
      justify-content: space-between;
    //   margin-top: 23px;
    height: 80px;
    line-height: 80px;
      font-size: 10px;
      border-bottom: 1px solid #EEEEEE;
      .icons{
        // width: 61px;
        height: 23px;
        .icon{
          width: 25px;
          height: 23px;
          margin-right: 6px;
        }
      }
      .stuinfo {
        margin: auto 0;
        margin-left: 11px;
        color: #111111;
        .lessonname {
          color: #666666;
        }
      }
      .takehour {
        color: #08ae98;
        font-size: 11px;
        margin: auto 0;
        text-align: center;
      }
      > div>img {
        width: 57px;
        height: 57px;
        border-radius: 50%;
      }
    }
  }
  .button {
    position: absolute;
    width: 260px;
    bottom: 28px;
    display: flex;
    justify-content: space-between;
    > div {
      width: 114px;
      height: 23px;
      border-radius: 3px;
      font-size: 10px;
      color: #fff;
      line-height: 23px;
      text-align: center;
    }
    .modify {
      background-color: #08ae98;
    }
    .del {
      background-color: #d12c2e;
    }
  }
}
</style>
<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props:{
    list:{
      type: Array
    }
  },
  setup(prop,context){
    function cameta(id: number){
      context.emit("cameta", id)
    }
    function vol(id: number){
      context.emit("vol", id)
    }
    return {
      cameta,
      vol
    }
  }
});
</script>