Header.vue 1.05 KB
Newer Older
fukai committed
1 2
<template>
    <div class="self-header">
fukai committed
3
        <h2 class="self_header_label">新一代银行国际结算系统</h2>
4 5 6
        <div class="user-operate">
            <span @click="logout">退出登录</span>
        </div>
fukai committed
7 8 9 10 11
    </div>
</template>

<script>
export default {
12 13 14 15 16 17
    methods: {
        logout() {
            this.$store.commit("UserContext/setLogout");
            this.$router.push("/login");
        }
    }
fukai committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
}
</script>

<style>
 
    .self-header{
        height: 100%;
        /* background-color: #eeeeee; */
        /* margin-bottom: 5px; */
        background-image: url("../../assets/head_bg.png");
    }
    .self-header h2{
        margin: 0;
        padding: 0;
    }
    .self_header_label{
        color: antiquewhite;
        /* margin-top: 10px !important; */
        position: relative;
        top:15px;
        left:2em;
    }
40 41 42 43 44 45 46 47 48 49 50
    .user-operate{
        position: absolute;
        right: 20px;
        color: #FFF;
    }
    .user-operate span{
        cursor: pointer;
    }
    .user-operate span:hover{
        color: #e6a23c;
    }
fukai committed
51
</style>