<template>
  <div class="bottom-btn-box mta-hidden-sm">
      <el-menu
        :default-active="activeNav"
        :class="navClass"
        mode="horizontal"
        :router="false"
      >
        <template v-for="(item,index) in footerData" >
          <el-menu-item :index="`${item.url}`" >
            <a :href="item.url"><i></i><span>{{item.name}}</span></a>
          </el-menu-item>
        </template>
      </el-menu>
  </div>
</template>

<script>
  import {mapState, mapGetters} from 'vuex';

  export default {
    name: 'mtaFooter',
    computed: {
      activeNav() {
        return this.getActiveNav;
      },
      ...mapGetters(['getActiveNav']),
    },
    data() {
      return {
        navClass:'head-nav-up',
        footerData: [
          {
            name: '电话咨询',
            url: 'tel:400-099-0883',
          },
          {
            name: '在线咨询',
            url: 'https://p.qiao.baidu.com/cps/chat?siteId=17851606&userId=39739427&siteToken=0288c259e4ac8be07c4c238fcc91760f',
          }
        ]
      }
    },

    methods: {

    },
  }
</script>
