
<template>
  <div class="voteItem" @click="goDetial">
    <svg t="1681219932465" class="img" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3035"><path d="M0 0h1024v1024H0z" fill="#8475EF" p-id="3036"></path><path d="M739.549867 341.333333h-28.433067a14.216533 14.216533 0 0 0-14.2336 14.216534V384c0 7.850667 6.365867 14.216533 14.2336 14.216533 15.701333 0 28.433067 12.7488 28.433067 28.450134v284.450133c0 15.701333-12.731733 28.433067-28.433067 28.433067H312.8832c-15.701333 0-28.433067-12.731733-28.433067-28.433067V426.666667c0-15.701333 12.731733-28.450133 28.433067-28.450134 7.850667 0 14.2336-6.365867 14.2336-14.216533v-28.450133a14.216533 14.216533 0 0 0-14.2336-14.216534h-28.433067a56.8832 56.8832 0 0 0-56.900266 56.8832v341.333334a56.8832 56.8832 0 0 0 56.900266 56.900266h455.099734a56.8832 56.8832 0 0 0 56.900266-56.900266v-341.333334A56.8832 56.8832 0 0 0 739.549867 341.333333zM369.783467 568.900267h284.433066A28.450133 28.450133 0 0 0 682.666667 535.620267 29.44 29.44 0 0 0 652.663467 512h-5.546667a7.1168 7.1168 0 0 1-7.1168-7.1168V284.450133a56.8832 56.8832 0 0 0-56.8832-56.900266h-142.2336a56.8832 56.8832 0 0 0-56.8832 56.900266v220.433067c0 3.925333-3.191467 7.1168-7.1168 7.1168h-5.546667A29.44 29.44 0 0 0 341.333333 535.6032a28.450133 28.450133 0 0 0 28.450134 33.28z m71.099733-256c0-15.7184 12.7488-28.450133 28.450133-28.450134h85.333334c15.701333 0 28.450133 12.731733 28.450133 28.433067v192c0 3.925333-3.191467 7.1168-7.1168 7.1168h-128a7.1168 7.1168 0 0 1-7.1168-7.1168v-192zM479.573333 433.493333c4.369067 4.488533 10.376533 6.997333 16.64 6.9632 6.212267 0.034133 12.1856-2.474667 16.503467-6.9632l52.906667-53.76a20.189867 20.189867 0 0 0-1.4336-29.44 20.189867 20.189867 0 0 0-26.88 1.570134l-41.096534 41.813333-9.386666-9.6768a20.189867 20.189867 0 0 0-27.016534-1.570133 19.9168 19.9168 0 0 0-1.4336 29.303466L479.573333 433.493333z" fill="#FFFFFF" p-id="3037"></path></svg>
    <div class="right">
      <span class="title">{{ params.title }}</span>
      <span class="des">{{ params.content }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "voteItem",
  props:{
    params:{
      default:()=>{}
    }
  },
  methods:{
    goDetial(){
      this.$router.push({name:'voteDetial',query:{id:this.params.id,title:this.params.title,content:this.params.content}})
    },
  },
}
</script>

<style scoped lang="less">
.voteItem{
  width: 327px;
  height: 95px;
  background: #FFFFFF;
  box-shadow: 0px 13px 40px 0px rgba(27,25,86,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  .img{
    width: 60px;
    height: 60px;
    padding: 15px;
    border-radius: 35px;
  }
  .right{
    display: flex;
    flex-direction: column;
    text-align: left;
    .title{
      font-size: 18px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #01040D;
    }
    .des{
      margin-top: 10px;
      display: inline-block;
      white-space: nowrap;

      //display: -webkit-box;
      //　 overflow: hidden;
      //　　text-overflow:ellipsis;
      //　　white-space: nowrap;

      word-break: break-all;
      width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      height: 20px;
      font-size: 13px;
      font-weight: 400;
      color: #75818F;
      text-shadow: 0px 13px 40px rgba(27,25,86,0.06);

    }
  }

}
</style>