From c4309024f629d93763757bc09f2d2521bbf57e17 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Mon, 11 Nov 2024 13:45:29 +0800
Subject: [PATCH] 样式优化
---
src/views/companyInfo/components/box/fireSource.vue | 81 ++++++++++++++++++++++++++++++++++++----
1 files changed, 73 insertions(+), 8 deletions(-)
diff --git a/src/views/companyInfo/components/box/fireSource.vue b/src/views/companyInfo/components/box/fireSource.vue
index b17f2f2..1005209 100644
--- a/src/views/companyInfo/components/box/fireSource.vue
+++ b/src/views/companyInfo/components/box/fireSource.vue
@@ -11,6 +11,8 @@
<script setup>
import publicContent from './publicContent.vue'
import { getAssetsFile } from 'utils/utils'
+import { getfirmInfoDetail } from '@/api/indParkInfo'
+
let data = reactive({
companyInfo: {}
})
@@ -55,15 +57,41 @@
}
])
+let rescueTeamList = ref([
+ {
+ id: 5,
+ name: 'rescuePerName',
+ title: '姓名',
+ content: '',
+ },
+ {
+ id: 6,
+ name: 'rescuePerPhone',
+ title: '联系电话',
+ content: '',
+ }
+])
+
onMounted(() => {
data.companyInfo = JSON.parse(localStorage.getItem('companyInfo'))
- console.log(data.companyInfo)
- companyInfoList.value.forEach(item => {
- data.companyInfo[item.name] && (item.content = data.companyInfo[item.name])
-
- })
+ getDetail()
})
+
+function getDetail() {
+ getfirmInfoDetail({
+ id: data.companyInfo.id
+ }).then(res => {
+ data.companyInfo = res.data.data
+ companyInfoList.value.forEach(item => {
+ data.companyInfo[item.name] && (item.content = data.companyInfo[item.name])
+ })
+ rescueTeamList.value.forEach(item => {
+ data.companyInfo[item.name] && (item.content = data.companyInfo[item.name])
+ })
+ }).catch(err => {
+ })
+}
</script>
@@ -72,7 +100,6 @@
<div class="data-content w100 h100">
<div class="content-firmIntro">
- <!-- <div>{{ data.companyInfo.firmIntro }}</div> -->
<span> {{ data.companyInfo.firmIntro }}</span>
</div>
@@ -89,9 +116,31 @@
</div>
</div>
+ <div class="company-info">
+ <div class="" style="text-align: center;margin-top: 10px;">救援队伍</div>
+ <div class="company-info-item" v-for="item in rescueTeamList" :key="item.id">
+ <el-row>
+ <el-col :span="8">
+ <div class="company-info-title">{{ item.title }}</div>
+ </el-col>
+ <el-col :span="16">
+ <div class="company-info-content">{{ item.content }}</div>
+ </el-col>
+ </el-row>
+ </div>
+ </div>
+
<div class="company-info-image">
- <img :src="data.companyInfo.image_urls" alt="">
- <!-- {{ "图片" }} -->
+ <div class="" style="text-align: center;margin-top: 10px;">企业图片</div>
+ <!-- <img :src="data.companyInfo.image_urls" alt=""> -->
+ <el-image style="width: 100px; height: 100px" :src="data.companyInfo.image_urls" :zoom-rate="1.2" :max-scale="7"
+ :min-scale="0.2" :preview-src-list="[data.companyInfo.image_urls]" :initial-index="4" fit="cover">
+ <template #error>
+ <div class="image-slot">
+ <el-icon><icon-picture /></el-icon>
+ </div>
+ </template>
+ </el-image>
</div>
@@ -134,11 +183,27 @@
}
+.company-info-jydw {
+ margin-top: 10px;
+ border-top: #dfdcdc 2px solid;
+}
+
+.company-info-jydw div {
+ text-align: center;
+ margin-top: 10px;
+}
+
+.company-info-jydw ul li {
+ // text-align: center;
+ // margin-top: 10px;
+}
+
.company-info-image {
margin-top: 20px;
width: 100%;
height: 200px;
// background-color: pink;
+ border-top: #dfdcdc 2px solid;
text-align: center;
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3