码迷,mamicode.com
首页 > 其他好文 > 详细

一、底部菜单

时间:2020-04-22 19:41:09      阅读:71      评论:0      收藏:0      [点我收藏+]

标签:port   cti   data   def   color   ice   personal   rom   turn   

一、

<template>
  <div class="main">
    <div class="contant">
      <router-view />
    </div>
    <div class="footer">
      <nav-bar></nav-bar>
    </div>
  </div>
</template>
<script>
import navBar from "../../components/TabBar";

export default {
  components: {
    navBar
  }
};
</script>

二、

<template>
  <nav>
    <router-link
      v-for="(item,key) in nav"
      :key="key"
      :to="item.router"
      active-class="active"
      class="tab"
    >
      <i :class="item.class"></i>
      <span>{{item.desc}}</span>
    </router-link>
  </nav>
  
</template>

<script>
export default {
  data() {
    return {
      nav: [
        {
          router: "/index",
          class: "icon-home",
          desc: "首页"
        },
        {
          router: "/loan_evaluate_list",
          class: "icon-service",
          desc: "服务"
        },
        {
          router: "/loan_list",
          class: "icon-find",
          desc: "发现"
        },
        {
          router: "/loan_list",
          class: "icon-personal",
          desc: "我的"
        }
      ]
    };
  }
};
</script>

 

一、底部菜单

标签:port   cti   data   def   color   ice   personal   rom   turn   

原文地址:https://www.cnblogs.com/fger/p/12754859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!