<template>
    <div class="menu">
        <img src="../assets/imgs/home_img_logo.png" alt="" class="logo">
        <span class="user">用户</span>
        <img src="../assets/imgs/home_ic_user.png" alt="" class="user_pic">
        <div class="number">99+</div>
        <img src="../assets/imgs/home_ic_shop.png" alt="" class="car">
        
        <div style="float:right">
            <div v-for="(item,index) in menu_arr" :key="index+200" class="menu_box" @click="now_menu = index" :style="now_menu==index?{color:'#fff'}:{}">{{item}}
                 <div class="bottom_show" v-if="now_menu==index"></div>
            </div>
        </div>
       

    </div>
</template>

<script>
export default {
    data(){
        return{
            menu_arr:['工作台','技术支持','服务超市'],
            now_menu:0,
        }
    }
}
</script>

<style scoped>
.menu{
    width: 100%;
    height: 84px;
    background-color: #0f2683;
    color: #8390ee;
    line-height: 84px;
}
.logo{
    float: left;
    margin: 30px 0 0 40px;
}
.user{
    float: right;
    margin-right: 113px;
    font-size: 16px;
}
.user_pic{
    float: right;
    margin-right: 15px;
    margin-top: 30px;
}
.number{
    float: right;
    margin-right: 43px;
    margin-top: 30px;
    width: 40px;
	height: 22px;
	background-color: #e56600;
    border-radius: 11px;
    color: #fcefd6;
    line-height: 22px;
    text-align: center;
}
.car{
    float: right;
    margin-right: 15px;
    margin-top: 30px;
}
.menu_box{
    float: right;
    width: 185px;
    text-align: center;
    cursor: pointer;
    position: relative;
}
.menu_box:nth-of-type(1){
    margin-right: 52px;
}
.bottom_show{
    width: 24px;
	height: 5px;
	background-color: #e56600;
    border-radius: 3px;
    position: absolute;
    bottom: 0px;
    left: calc(50% - 12px);
}
</style>