<template>
  <div id="talk">
    <el-col :span="24" class="list" @click.native="$router.push({ path: '/talkDetail', query: { id: data.id } })">
      <el-col :span="20" class="title">
        <p class="textOver tit"><span class="dian"></span>{{ data.title }}</p>
        <p class="textOver"><span class="dian"></span>地址:{{ data.address }}</p>
        <p class="textOver"><span class="dian"></span>宣讲方:{{ data.corpname }}</p>
      </el-col>
      <el-col :span="4" class="date">{{ data.time }}</el-col>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'talk',
  props: {
    data: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.textOver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dian {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #4f4f4f;
  border-radius: 90px;
  margin: 5px 8px;
}
.title {
  padding: 10px 0;
}
.title p {
  font-size: 16px;
  color: #4f4f4f;
}
.date {
  font-size: 14px;
  color: #323131;
  text-align: right;
  padding: 10px 0;
}
.list:hover {
  cursor: pointer;
}
</style>
