<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
  export default {
    name: 'App',
    data() {
      return {
        doctorInfo:{}
      }
    },
    methods: {
      goPage(path) {
        this.$router.push(path)
      },
      getData(){
        this.$api.getAccountInfo().then(res=>{
          if(!res.data.code){
            // if(res.data.data.role=="1"){
            //   this.goPage("/docindex")
            // }else{
            //   this.goPage("/patindex")
            // }
            localStorage.setItem("authinfo",JSON.stringify(res.data.data))
          }
        })
      }
    },
    created(){
      this.getData()
    }
  }

</script>

<style lang="scss">
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }

  .container {
    width: 100%;
    border: 1px solid #fff;
    height: 100vh;
    background: #EFEFEF;

    .content {
      width: 100%;
      /* border: 1px solid #fff; */
      margin: auto;
      /* height: 85%; */
      margin-top: 3rem;
      margin-bottom: 1rem;
      padding-bottom: 2rem;

      .title {
        font-size: 1.2rem;
        height: 1rem;
        padding: 1rem;
        font-weight: bold;
        color: #fff;
      }

      position: relative;
      z-index:10;
      overflow: scroll-y;

      .loginForm {
        width: 84%;
        margin: auto;
        margin-top: 6rem;
        .mint-field {
          border: 1px solid #ccc;
          border-radius: 50px;
          margin-top: 1rem;
          height: 3.2rem;
        }

        .mint-cell {
          min-height: 2.12rem;
        }
      }
    }
  }

  .csbtn {
    width: 70%;
    height: 3.5rem;
    line-height: 3.5rem;
    border-radius: 5px;
    margin: auto;
    margin-top: 20rem;
    background: #0570F2;
    font-weight: bold;
    color: white;
    font-size: 1.4rem;
  }

  .jbbtn {
    width: 70%;
    height: 3.2rem;
    line-height: 3.2rem;
    border-radius: 5px;
    margin: auto;
    margin-top: 2rem;
    background-image: linear-gradient(to right, #23E0FD, #0173F0);
    font-weight: bold;
    color: white;
    font-size: 1.4rem;
  }

  .bgimg {
    width: 100%;
    height: 10rem;
    position: absolute;
    background-image: url("./assets/images/commonbg.png");
    background-size: 100% 100%;
  }

  .pickerConfirm{
    width:100%;
    height: 40px;
    line-height: 40px;
    color:#26a2ff;
  }

  .sexPicker{
    position: fixed;
    width: 100%;
    z-index: 10;
    bottom:0;
    background: #fff;
  }

  .searchInput{
    border-radius: 1rem;
  }

</style>
