bottomMenu.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div class="bottom-btn-box mta-hidden-sm">
  3. <el-menu
  4. :default-active="activeNav"
  5. :class="navClass"
  6. mode="horizontal"
  7. :router="false"
  8. >
  9. <template v-for="(item,index) in footerData" >
  10. <el-menu-item :index="`${item.url}`" >
  11. <nuxt-link :to="item.url"><i></i><span>{{item.name}}</span></nuxt-link>
  12. </el-menu-item>
  13. </template>
  14. </el-menu>
  15. </div>
  16. </template>
  17. <script>
  18. import {mapState, mapGetters} from 'vuex';
  19. export default {
  20. name: 'mtaFooter',
  21. computed: {
  22. activeNav() {
  23. return this.getActiveNav;
  24. },
  25. ...mapGetters(['getActiveNav']),
  26. },
  27. data() {
  28. return {
  29. navClass:'head-nav-up',
  30. footerData: [
  31. {
  32. name: '首页',
  33. url: '/',
  34. },
  35. {
  36. name: '体验中心',
  37. url: '/tiyanCenter',
  38. },
  39. {
  40. name: '电话咨询',
  41. url: 'tel:400-052-2130',
  42. },
  43. {
  44. name: '在线咨询',
  45. url: 'http://p.qiao.baidu.com/cps/chat?siteId=11735491&amp;userId=10530011',
  46. }
  47. ]
  48. }
  49. },
  50. methods: {
  51. },
  52. }
  53. </script>