BrandCard.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <el-card class="test-card">
  3. <div slot="header" class="clearfix test-card-header">
  4. <span>入驻品牌机构</span>
  5. <a class="pull-right" style="color: rgba(0, 118, 203, 1); cursor: pointer" @click="goToMoreAgency()">more>></a>
  6. </div>
  7. <div style="height: 96px">
  8. <el-row :gutter="15">
  9. <el-col v-for="item in residentAgencyList" :key="item.id" :span="6" style="height: 50px">
  10. <img :src="item.agencyPhoto" :alt="item.evaluationAgencyName" style="width: 100%;height: 100%; cursor: pointer;" @click="goToDetail(item.userId)"/>
  11. </el-col>
  12. </el-row>
  13. </div>
  14. </el-card>
  15. </template>
  16. <script>
  17. export default {
  18. name: "BrandCard",
  19. props:['residentAgencyList'],
  20. methods:{
  21. goToMoreAgency(){
  22. this.$router.push({
  23. name: 'AgencyResidentList',
  24. });
  25. },
  26. goToDetail(userId) {
  27. this.$router.push({
  28. name: 'AgencyDetail',
  29. params: {id: userId, type: 1}
  30. })
  31. },
  32. }
  33. }
  34. </script>
  35. <style lang="less">
  36. </style>