<template>
  <el-card class="popular-card">
    <div slot="header" class="popular-header">
      <img src="../../assets/img/popularTask.png" alt="popular-project" class="popular-header-img"/>
      <span class="popular-header-title">热门任务</span>
      <el-button style="float: right; padding: 3px 0" type="text" class="pull-right"  @click="goToMore()">more>></el-button>
    </div>
    <div class="popular-list">
      <el-row class="popular-list-item" v-for="item in hotCrowdTaskVOs" :key="item.id">
        <el-col :span="19">
          <img src="../../assets/img/logo-blue.png" alt="logo-project" class="pull-left project-logo-img">
          <div style="margin-left: 55px">
            <div class="list-item-title">
              {{item.title}}
            </div>
            <div class="list-item-info">
              {{item.description}}
            </div>
          </div>
        </el-col>
        <el-col :span="5">
          <div class="project-people-number">
            {{item.acceptedCount}}人
          </div>
        </el-col>
      </el-row>
    </div>
  </el-card>
</template>

<script>
  import Http from '@/js/http.js';
  import Apis from '@/js/api.js';
  import {notify} from "../../constants";
  export default {
    name: 'PopularTask',
    props:['hotCrowdTaskVOs'],
      methods:{
          goToMore(){
              console.log("goToMoreTask");
              this.$router.push({
                  name: 'PopularProjectAndTaskList',
                  params: {type: "task"}
              })
          },
      }
  }
</script>

<style lang="less">

</style>
