<template>
  <div id="daohang">
    <el-row>
      <el-col :span="24" class="top">
        <el-col :span="20" class="topTit">
          <span>{{ title }}</span>
        </el-col>
      </el-col>
      <el-col :span="24" class="info">
        <el-col :span="24" class="phone">
          <p class="tit"><i class="el-icon-phone"></i>咨询电话：</p>
          <p class="haoma">0431-84657570</p>
        </el-col>
        <el-col :span="24" class="btn">
          <el-col :span="8" class="list" v-for="(item, index) in list" :key="index">
            <el-link :underline="false" target="_blank" @click="clickUrl(item.title)">
              <el-image style="width:55px;height:55px;border-radius: 10px;" :src="item.pic"></el-image>
              <P>{{ item.title }}</P>
            </el-link>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'daohang',
  props: {
    list: null,
  },
  components: {},
  data: () => ({
    title: '快速导航',
  }),
  created() {},
  computed: {},
  methods: {
    clickUrl(title) {
      this.$emit('onsave', { title });
    },
  },
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.textOver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top {
  height: 39px;
  line-height: 39px;
  border-bottom: 1px solid #ccc;
}
.top .topTit span {
  display: inline-block;
  width: 110px;
  height: 39px;
  line-height: 39px;
  text-align: center;
  color: #000;
  font-size: 16px;
  border-bottom: 1px solid #176ebb;
}
.phone {
  padding: 15px 20px;
}
.phone .tit {
  font-size: 20px;
}
.phone .haoma {
  font-size: 20px;
  color: #176ebb;
  padding: 10px 0px;
}
.list {
  text-align: center;
  padding: 10px 0;
}
</style>
