123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <el-card class="popular-card">
- <div slot="header" class="popular-header">
- <img src="../../assets/img/agency.png" alt="hot-crowd" class="popular-header-img"/>
- <span class="popular-header-title">评测机构排行榜</span>
- <el-button style="float: right; padding: 3px 0;line-height: 25px" type="text" @click="goToMoreAgency()">more>></el-button>
- </div>
- <div class="popular-list">
- <el-row class="popular-list-item" v-for="item in agencyRank" :key="item.id">
- <el-col :span="19">
- <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)">
- <div style="margin-left: 55px; cursor: pointer;" @click="goToDetail(item.userId)" >
- <div class="list-item-title single-line-title">
- {{item.evaluationAgencyName}}
- </div>
- <div class="list-item-info">
- </div>
- </div>
- </el-col>
- <el-col :span="5">
- <div class="project-people-number">
- {{item.taskCount}}次
- </div>
- </el-col>
- </el-row>
- </div>
- </el-card>
- </template>
- <script>
- import {defaultValue} from '@/js/index.js'
- import Http from '@/js/http.js';
- export default {
- name: 'HotAgency',
- props:['agencyRank'],
- data() {
- return{
- defaultValue: defaultValue,
- }
- },
- methods:{
- goToMoreAgency(){
- this.$router.push({
- name: 'AgencyList',
- });
- },
- goToDetail(userId) {
- this.$router.push({
- name: 'AgencyDetail',
- params: {id: userId, type: 0}
- })
- },
- }
- }
- </script>
- <style lang="less">
- </style>
|