<template>
        <div class='flex items-center justify-around pb-6 pt-3  rounded-t-2xl bg-font-black shadow-nav text-font-white text-2xs' >
            <div class='flex flex-col items-center' @click="setNav('Home')">
                <app-icon name='icon-lianxiwomen' size='24px' color='#fff'></app-icon>
                <div class='mt-2'>大厅</div>
            </div>
            <div class='flex flex-col items-center relative' @click="goNFT">
                <div class=' absolute -top-12 rounded-full p-4 bg-font-black mx-auto  shadow-nav text-center'>
                    <app-icon name='icon-lianxiwomen' size='34px' color='#fff' ></app-icon>
                </div>
                <div class='mt-8'>发行NFT</div>
            </div>
            <div class='flex flex-col items-center' @click="setNav('Mine')">
                <app-icon name='icon-lianxiwomen' size='24px' color='#fff'></app-icon>
                <div class='mt-2'>我的</div>
            </div>
        </div>
</template>

<script lang="ts">
import Vue from 'vue';

const NavRouter = [
    {
        name:'Home',
        path:'/Home',
        text:'大厅',
        icon:'icon-lianxiwomen'
    }
]
export default Vue.extend({
  name: 'layout_one',
  data(){
      return{
          NavRouter,
          actived:'Home'
      }
  },
  components:{
      'app-icon':()=>import('@/components/common/Icon.vue')
  },
  methods:{
      goNFT(){
          this.$store.commit('app/TOGGLE_OVERLAY')
      },
      setNav(item:any){
          if(this.$route.name != item){
              this.actived = item
              this.$router.push(`/${item}`)
          }
      }
  }
});
</script>

<style lang="less">

</style>
