companyItem.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div class="company-box">
  3. <div class="sub-li" v-for="item in list" :key="item.id" @mouseenter="item.active = true" @mouseleave="item.active = false">
  4. <div class="company-info-top" @click="handleClickEnterprise(item)">
  5. <div class="float-left">
  6. <v-img :src="item.logoUrl" :alt="item.anotherName" :width="40" style="height: 40px;border-radius: 4px;"/>
  7. </div>
  8. <div class="company-info">
  9. <h3 :class="{'default-active': item.active }">{{ item.anotherName }}</h3>
  10. <p>{{ item.financingName }}<span class="mx-2">|</span>{{ item.industryName }}</p>
  11. </div>
  12. </div>
  13. <div class="company-info-bottom">
  14. <v-chip class="mr-2" color="primary" size="x-small" label v-for="(k, i) in welfareList" :key="i">{{ k }}</v-chip>
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script setup>
  20. defineOptions({ name: 'company-item'})
  21. defineProps({
  22. list: Array
  23. })
  24. const welfareList = ['双休', '五险一金', '零食下午茶', '年终奖']
  25. const handleClickEnterprise = (item) => {
  26. window.open(`/enterprise/details/${item.id}?key=briefIntroduction`)
  27. }
  28. </script>
  29. <style scoped lang="scss">
  30. @import url('@/styles/recruit/company.scss');
  31. </style>