<template>
  <div class="bigBox">
    <Back :con="name" url="/consultation/consultationServer/consultationDoctorList" class="top"></Back>
    <div class="main">
      <div class="con">

      </div>
      <div class="bot">
        <img src="../../../../assets/images/icon/语音.png" alt="">
        <input type="text">
        <p>+</p>
        <div class="btn">发送</div>
      </div>
    </div>
  </div>
</template>

<script>
// import '../../../../assets/images/icon'
import {consultDoctor} from '../../../../getData/index'
export default {
  data(){
    return{
      name:null,
      id:null
    }
  },
  created(){
    // name
    this.name=this.$route.params.name
    this.id=this.$route.params.id
    console.log(this.id);
    // console.log(this.$route.params.id);
    // console.log(this.$route.params.name);
  },
  methods:{
    async getDoctor(){
      let {data}=await consultDoctor({doctorId:this.id})
      console.log(data);
    } 
  },
  mounted(){
    this.getDoctor()
  }
}
</script>

<style lang="scss" scoped>
  .bigBox{
    width: 100vw;
    height: 100vh;
    background: rgb(244, 244, 244);
    display: flex;
    flex-direction: column;
    .top{
      background: #fff;
    }
    .main{
      flex: 1;
      margin-top: 10px;
      background: #fff;
      .bot{
        display: flex;
        position: fixed;
        bottom: 0px;
        padding-top: 10px;
        padding-bottom: 10px;
        // background: pink;
        // border-top: 1px solid #ededed;
        background: #ededed;
        width: 100%;
        img{
          margin: 0 10px;
        }
        input{
           margin: 0 10px;
        }
        p{
          line-height: 30px;
          margin: 0 10px;
          font-size: 20px;
          font-weight: bold;
        }
        .btn{
         
          // color: rgb( 233,233,233);
          color: #fff;
          background: rgb(48,135,234);
          font-weight: bold;
          padding: 0 14px;
          line-height: 30px;
          border-radius: 4px;
        }
      }
    }
  }
</style>