HotAgency.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <el-card class="popular-card">
  3. <div slot="header" class="popular-header">
  4. <img src="../../assets/img/agency.png" alt="hot-crowd" class="popular-header-img"/>
  5. <span class="popular-header-title">评测机构排行榜</span>
  6. <el-button style="float: right; padding: 3px 0;line-height: 25px" type="text" @click="goToMoreAgency()">more>></el-button>
  7. </div>
  8. <div class="popular-list">
  9. <el-row class="popular-list-item" v-for="item in agencyRank" :key="item.id">
  10. <el-col :span="19">
  11. <img :src="item.agencyPhoto==null?defaultValue.image:item.agencyPhoto" alt="logo-project" class="pull-left project-logo-img" style="cursor: pointer" @click="goToDetail(item.userId)">
  12. <div style="margin-left: 55px; cursor: pointer;" @click="goToDetail(item.userId)" >
  13. <div class="list-item-title single-line-title">
  14. {{item.evaluationAgencyName}}
  15. </div>
  16. <div class="list-item-info">
  17. </div>
  18. </div>
  19. </el-col>
  20. <el-col :span="5">
  21. <div class="project-people-number">
  22. {{item.taskCount}}次
  23. </div>
  24. </el-col>
  25. </el-row>
  26. </div>
  27. </el-card>
  28. </template>
  29. <script>
  30. import {defaultValue} from '@/js/index.js'
  31. import Http from '@/js/http.js';
  32. export default {
  33. name: 'HotAgency',
  34. props:['agencyRank'],
  35. data() {
  36. return{
  37. defaultValue: defaultValue,
  38. }
  39. },
  40. methods:{
  41. goToMoreAgency(){
  42. this.$router.push({
  43. name: 'AgencyList',
  44. });
  45. },
  46. goToDetail(userId) {
  47. this.$router.push({
  48. name: 'AgencyDetail',
  49. params: {id: userId, type: 0}
  50. })
  51. },
  52. }
  53. }
  54. </script>
  55. <style lang="less">
  56. </style>