<template>
    <div class="container">
        <div class="banner">
            <div class="logo fl">
                <img  src="../../images/logo.png" alt="朗通logo"/>
                <span class="bannerName">医学知识图谱平台</span>
                <!-- <img class="img-title" src="../../images/title.png"/> -->
            </div>
            <div class="consult fr">
                <span>咨询热线：{{phone}} &nbsp;</span> |
                <span>服务时间：{{workTime}}</span>
                <!-- <span class="toLogin" v-show="route=='/register'">已有账号？<b @click="toLogin">立即登录</b></span> -->
            </div>
        </div>
    </div>
</template>

<script>
  // import '@components/login/login.less';
  export default {
    template: '#banner-template',
    data() {
      return {
        phone: '400-600-1919',
        workTime: '09:00-17:30'
      }
    },
    computed:{
        route(){
            return this.$route.path;
        } 
    },
    methods:{
        toLogin(){
            this.$router.push({path:'/'});
        }
    }
  };
</script>
<style lang="less">
    * {
        margin: 0;
        padding: 0;
    }

    html, body {
        width: 100%;
        height: 100%;
        /* 		background-image:url(/src/images/bg.jpg);
                background-size: 100% 100%;
                background-repeat: no-repeat; */
    }

    .container {
        width: 100%;
        height: 100%;
        background-color: #f3f6fb;
        // background-image: url(../../images/bg.jpg);
        // background-size: 100% 100%;
        // background-repeat: no-repeat;

    .banner {
        height: 60px;
        background: #fff;
        line-height: 60px;
        position: relative;
    }

    .banner img {
        display: inline-block;
        // margin-top: 10px;
        margin-left: 30px;
        position: relative;
        top: 2px;
    }
    .bannerName {
        margin-left: 13px;
        font-size: 14px;
        color: #2871FA;
        letter-spacing: 0;
        font-weight: bold;
    }

    .img-title {
        margin-left: 10px !important;
    }

    .consult {
        margin-right: 30px;
        color: #424243;
        font-size: 14px;
        float: right;
    }

    .logo {
        display: inline-block;
        position: relative;
        left: 13.5%;
    }

    .consult {
        display: inline-block;
    }
    .toLogin{
        margin-left: 10px;
        >b{
            color:#1774f0;
            cursor: pointer;
        }
    }

    }


</style>