|
|
|
@@ -2,9 +2,11 @@ |
|
|
|
<template> |
|
|
|
<div class="item_box" @click="goDetail(companyInfo.companyId)"> |
|
|
|
<img class="company_img" :src="formatImg(JSON.parse(companyInfo.logo)[0])" alt="企业图片" /> |
|
|
|
<div class="info_box"> |
|
|
|
<div class="info_box pointer"> |
|
|
|
<div class="title_box"> |
|
|
|
<span class="company_title">{{ companyInfo.companyName }}</span> |
|
|
|
<span class="company_title" :title="companyInfo.companyName"> |
|
|
|
{{ companyInfo.companyName }} |
|
|
|
</span> |
|
|
|
<span |
|
|
|
:class="[ |
|
|
|
'claim_state', |
|
|
|
@@ -18,18 +20,30 @@ |
|
|
|
{{ companyInfo.claimState.text }} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div class="company_info"> |
|
|
|
<div |
|
|
|
class="company_info" |
|
|
|
:title=" |
|
|
|
`法人:${companyInfo.legalPerson};状态:${companyInfo.enterpriseState};注册资本:${companyInfo.registeredCapital};信用代码:${companyInfo.creditCode}` |
|
|
|
" |
|
|
|
> |
|
|
|
<span>法人:{{ companyInfo.legalPerson }}</span> |
|
|
|
<span>状态:{{ companyInfo.enterpriseState }}</span> |
|
|
|
<span>注册资本:{{ companyInfo.registeredCapital }}</span> |
|
|
|
<span>信用代码:{{ companyInfo.creditCode }}</span> |
|
|
|
</div> |
|
|
|
<div class="company_info"> |
|
|
|
<div |
|
|
|
class="company_info" |
|
|
|
:title=" |
|
|
|
`成立日期:${formatDateFun(companyInfo.establishOn, 'YYYY-MM-DD')};行业:${ |
|
|
|
companyInfo.ownerIndustry |
|
|
|
};地址:${companyInfo.businessAddress}` |
|
|
|
" |
|
|
|
> |
|
|
|
<span>成立日期:{{ companyInfo.establishOn | formatDate("YYYY-MM-DD") }}</span> |
|
|
|
<span>行业:{{ companyInfo.ownerIndustry }}</span> |
|
|
|
<span v-if="companyInfo.ownerIndustry">行业:{{ companyInfo.ownerIndustry }}</span> |
|
|
|
<span>地址:{{ companyInfo.businessAddress }}</span> |
|
|
|
</div> |
|
|
|
<div class="advantage_box" v-if="enterpriseLabel.length > 0"> |
|
|
|
<div class="advantage_box" v-if="enterpriseLabel.length > 0" :title="enterpriseLabel"> |
|
|
|
<span v-for="item in enterpriseLabel" :key="item"> |
|
|
|
{{ item }} |
|
|
|
</span> |
|
|
|
@@ -39,6 +53,7 @@ |
|
|
|
'business', |
|
|
|
!enterpriseLabel || enterpriseLabel.length === 0 ? 'two_rows' : 'one_rows', |
|
|
|
]" |
|
|
|
:title="companyInfo && companyInfo.businessScope ? companyInfo.businessScope : ''" |
|
|
|
> |
|
|
|
<template v-if="companyInfo.businessScope"> |
|
|
|
<span>主营业务:</span> |
|
|
|
@@ -52,7 +67,7 @@ |
|
|
|
<script> |
|
|
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) |
|
|
|
//例如:import 《组件名称》 from '《组件路径》'; |
|
|
|
import { formatImg } from "@/utils/common.js"; |
|
|
|
import { formatImg, formatDateFun } from "@/utils/common.js"; |
|
|
|
export default { |
|
|
|
//import引入的组件需要注入到对象中才能使用 |
|
|
|
props: { |
|
|
|
@@ -77,6 +92,7 @@ export default { |
|
|
|
//方法集合 |
|
|
|
methods: { |
|
|
|
formatImg, |
|
|
|
formatDateFun, |
|
|
|
goDetail(companyId) { |
|
|
|
this.$router.push({ |
|
|
|
path: "/company-detail", |
|
|
|
@@ -114,10 +130,13 @@ export default { |
|
|
|
.title_box { |
|
|
|
@include flex(row, flex-start, center, null); |
|
|
|
margin-bottom: 15px; |
|
|
|
width: 100%; |
|
|
|
.company_title { |
|
|
|
max-width: calc(100% - 80px); |
|
|
|
@include font(18px, #334a5f); |
|
|
|
font-weight: 600; |
|
|
|
margin-right: 10px; |
|
|
|
@include text-ellipsis; |
|
|
|
} |
|
|
|
.claim_state { |
|
|
|
@include size(68px, 22px); |