<style scoped lang="less">
    .index{
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        text-align: center;
        h1{
            height: 150px;
            img{
                height: 100%;
            }
        }
        h2{
            color: #666;
            margin-bottom: 200px;
            p{
                margin: 0 0 50px;
            }
        }
        .ivu-row-flex{
            height: 100%;
        }
    }
</style>
<template>
    <div class="index">
        <Row type="flex" justify="center" align="middle">
            <Col span="24">
                <h1>
                    <img src="../images/logo.png">
                </h1>
                <h2>
                    <p>Welcome to your iView app!</p>
                    <Button @click="handleStart">Start iView</Button>
                    <Button ><router-link to="/login">登录</router-link></Button>
                    <Button ><router-link to="/admin">admin页面</router-link></Button>
                    <Button ><router-link to="/boos">boos页面</router-link></Button>
                </h2>
            </Col>
        </Row>
    </div>
</template>
<script>
    import {setLocalUserMap,setRegisterUserMap} from "../libs/cookieUtil";

    export default {
        methods: {
            handleStart () {
                this.$Modal.info({
                    title: 'Bravo',
                    content: 'Now, enjoy the convenience of iView.'
                });
            }
        },
        mounted(){
            setLocalUserMap()
            setRegisterUserMap()
        }
    }
</script>
