<template>
    <div class="container">
        <div class="banner">
            <div class="logo fl">
                <img src="../../images/robot_icon.png" alt="朗通logo"/>
                <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-image: url(../../images/bg.jpg);
        background-size: 100% 100%;
        background-repeat: no-repeat;

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

    .banner img {
        display: inline-block;
        margin-top: 10px;
        margin-left: 30px;
    }

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

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

    .logo {
        display: inline-block;
    }

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

    }


</style>