aboutus的图片没有自适应与projectdetail页面的样式调整

This commit is contained in:
77 2024-08-15 09:27:07 +08:00
parent d20bb62bd7
commit 2cebc91556
2 changed files with 971 additions and 917 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,274 +1,294 @@
<template> <template>
<div> <div>
<div class="page_ban"> <div class="page_ban">
<div class="img compbg"></div> <div class="img compbg"></div>
<div class="content"> <div class="content">
<div class="page_nav"> <div class="page_nav">
<div class="name"> <div class="name">
<a style="padding: 0;" href="/project">工程资讯</a> <a href="javascript:;">工程详情</a> <a style="padding: 0;" href="/project">工程资讯</a> <a href="javascript:;">工程详情</a>
</div> </div>
<div class="list" style="bottom:-15px"> <div class="list" style="bottom:-15px">
<el-tabs v-model="activeName" > <el-tabs v-model="activeName">
<el-tab-pane label="工程详情" name="first"></el-tab-pane> <el-tab-pane label="工程详情" name="first"></el-tab-pane>
</el-tabs>
</div> </el-tabs>
</div>
</div> </div>
</div> </div>
<div class="Wrapper news_d"> </div>
<div style="display: flex;width: 95%;justify-content: space-between;"> </div>
<div style="width: 30%;background-color:rgb(228,235,241);"> <div class="Wrapper news_d">
<div style="width: 100%;padding-left: 30%;box-sizing: border-box;"> <div style="display: flex;width: 95%;justify-content: space-between;">
<div class="z_xq_cont_top_lt">工程简介</div> <div style="width: 30%;background-color:rgb(228,235,241);">
<div class="z_xq_cont_top_ls"></div> <div style="width: 100%;padding-left: 30%;box-sizing: border-box;">
<!-- <div class="z_xq_cont_top_lc"><img src="https://www.fygroup.cn//skin/images/xqjt.png"></div> --> <div class="z_xq_cont_top_lt">工程简介</div>
<div class="z_xq_cont_top_lx"> <div class="z_xq_cont_top_ls"></div>
<div class="jzmssj">{{area}} <span class="dwi"></span></div> <!-- <div class="z_xq_cont_top_lc"><img src="https://www.fygroup.cn//skin/images/xqjt.png"></div> -->
<div class="jzmsms">工程建筑面积</div> <div class="z_xq_cont_top_lx">
</div> <div class="jzmssj">{{area}} <span class="dwi"></span></div>
<div class="z_xq_cont_top_lx"> <div class="jzmsms">工程建筑面积</div>
<div class="jzmssj">{{ height }} <span class="dwi">M</span></div> </div>
<div class="jzmsms">建筑高度</div> <div class="z_xq_cont_top_lx">
</div> <div class="jzmssj">{{ height }} <span class="dwi">M</span></div>
</div> <div class="jzmsms">建筑高度</div>
</div> </div>
<div style="width: 70%;"> </div>
<div class="content ql-editor" style="text-align: center;"> </div>
<div class="name">{{ name }}</div> <div style="width: 70%;">
<div class="top-box"> <div class="content ql-editor" style="text-align: center;">
<!-- <div class="date">{{time}}</div> --> <div class="name">{{ name }}</div>
</div> <div class="top-box">
<div class="divider"></div> <!-- <div class="date">{{time}}</div> -->
<div class="cont" v-html="content"></div> </div>
</div> <div class="divider"></div>
<div class="cont" v-html="content"></div>
<div class="con"> </div>
</div>
</div> <div class="con">
</div> </div>
</div> </div>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { projectdetail } from '@/api'; import {
export default{ projectdetail
data(){ } from '@/api';
return{ export default {
name:'', data() {
content:'', return {
time:'', name: '',
area:'', content: '',
height:'' time: '',
} area: '',
}, height: ''
methods:{ }
},
methods: {
}, },
mounted(){ mounted() {
projectdetail(this.$route.query).then((res)=>{ projectdetail(this.$route.query).then((res) => {
this.content=res.data.particulars this.content = res.data.particulars
this.name=res.data.name this.name = res.data.name
this.time=res.data.completeTime this.time = res.data.completeTime
this.area=res.data.area this.area = res.data.area
this.height=res.data.height this.height = res.data.height
}) })
}, },
} }
</script> </script>
<style scoped> <style scoped>
.divider { .divider {
width: 100%; width: 100%;
height: 3px; height: 3px;
background-color: #0059a7; background-color: #0059a7;
position: static; position: static;
margin-bottom: 28px; margin-bottom: 28px;
} }
.name {
font-size: 30px; .name {
color: #0007a9; font-size: 30px;
color: rgba(0, 7, 169, .8); color: #0007a9;
line-height: 36px; color: rgba(0, 7, 169, .8);
} line-height: 36px;
.news_d { }
padding: 60px 0 90px;
overflow: hidden; .news_d {
} padding: 60px 0 0px;
.Wrapper { overflow: hidden;
position: relative; }
background-color: #fff;
z-index: 100; .Wrapper {
} position: relative;
/* .news_d .name { background-color: #fff;
z-index: 100;
}
/* .news_d .name {
font-size: 30px; font-size: 30px;
color: #0007a9; color: #0007a9;
color: rgba(0, 7, 169, .8); color: rgba(0, 7, 169, .8);
line-height: 36px; line-height: 36px;
} */ } */
::v-deep .el-tabs__item { ::v-deep .el-tabs__item {
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.8);
border: none; border: none;
} }
::v-deep .el-tabs__nav-wrap::after { ::v-deep .el-tabs__nav-wrap::after {
background-color: transparent; background-color: transparent;
} }
.news_d .con p {
font-size: 14.5px; .news_d .con p {
color: #8e8e95; font-size: 14.5px;
line-height: 26px; color: #8e8e95;
margin-bottom: 26px; line-height: 26px;
text-align: justify; margin-bottom: 26px;
} text-align: justify;
}
.compbg { .compbg {
background-image: url('../assets/images/banner.png'); background-image: url('../assets/images/banner.png');
} }
.page_ban { .page_ban {
height: 404px; height: 404px;
position: relative; position: relative;
text-align: center; text-align: center;
z-index: 101; z-index: 101;
} }
.page_ban .img { .page_ban .img {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-size: cover; background-size: cover;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: -1; z-index: -1;
} }
.top-box{
margin: 16px 0 30px;
}
.date{
font-size: 26px;
color: #dfd4c3;
line-height: 1;
bottom: 20px;
padding: 0 30px;
width: 100%;
}
.page_ban .content {
position: relative;
height: 100%;
}
.content {
width: 86%;
margin: 0 auto;
}
.page_nav { .top-box {
width: 100%; margin: 16px 0 30px;
position: absolute; }
left: 0;
bottom: 0;
}
div,
li {
box-sizing: border-box;
}
.page_nav .name { .date {
float: left;
}
.page_nav .list { font-size: 26px;
position: relative; color: #dfd4c3;
float: right; line-height: 1;
margin-right: -35px;
}
.page_nav a { bottom: 20px;
float: left; padding: 0 30px;
line-height: 76px; width: 100%;
position: relative; }
font-size: 14.5px;
color: white; .page_ban .content {
font-weight: bold; position: relative;
text-decoration: none; height: 100%;
} }
.page_nav .name a { .content {
padding-left: 30px; width: 86%;
/* background: url() no-repeat left 30px; */ margin: 0 auto;
} }
.page_nav .list { .page_nav {
position: relative; width: 100%;
float: right; position: absolute;
margin-right: -35px; left: 0;
} bottom: 0;
}
.page_nav .list a { div,
color: #e7dfd2; li {
color: rgba(231, 223, 210, .7); box-sizing: border-box;
margin-right: 35px; }
}
.page_nav a { .page_nav .name {
float: left; float: left;
line-height: 76px; }
position: relative;
font-size: 14.5px;
color: rgba(255, 255, 255, 0.8); .page_nav .list {
font-weight: bold; position: relative;
} float: right;
.z_xq_cont_top_lt { margin-right: -35px;
font-size: 25px; }
color: #000000;
margin-top: 55px;
font-weight: bold;
}
.z_xq_cont_top_ls {
font-size: 20px;
color: #263d8f;
margin: 20px 0;
}
.z_xq_cont_top_lc {
overflow: hidden;
}
.z_xq_cont_top_lc img {
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
border: 0;
}
.z_xq_cont_top_lx {
height: 88px;
border-left: 1px solid #CCCCCC;
padding-left: 10px;
margin-top: 50px;
}
.z_xq_cont_top_lx .jzmssj {
font-size: 46px;
color: #263d8f;
font-weight: 100;
line-height: 52px;
}
.z_xq_cont_top_lx .jzmssj .dwi {
font-size: 14px;
color: #666666;
}
.cont{
width: 70%;
margin: 0 auto;
}
.cont >>> img{
max-width:500px;
}
.page_nav a {
float: left;
line-height: 76px;
position: relative;
font-size: 14.5px;
color: white;
font-weight: bold;
text-decoration: none;
}
.page_nav .name a {
padding-left: 30px;
/* background: url() no-repeat left 30px; */
}
.page_nav .list {
position: relative;
float: right;
margin-right: -35px;
}
.page_nav .list a {
color: #e7dfd2;
color: rgba(231, 223, 210, .7);
margin-right: 35px;
}
.page_nav a {
float: left;
line-height: 76px;
position: relative;
font-size: 14.5px;
color: rgba(255, 255, 255, 0.8);
font-weight: bold;
}
.z_xq_cont_top_lt {
font-size: 25px;
color: #000000;
margin-top: 55px;
font-weight: bold;
}
.z_xq_cont_top_ls {
font-size: 20px;
color: #263d8f;
margin: 20px 0;
}
.z_xq_cont_top_lc {
overflow: hidden;
}
.z_xq_cont_top_lc img {
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
border: 0;
}
.z_xq_cont_top_lx {
height: 88px;
border-left: 1px solid #CCCCCC;
padding-left: 10px;
margin-top: 50px;
}
.z_xq_cont_top_lx .jzmssj {
font-size: 46px;
color: #263d8f;
font-weight: 100;
line-height: 52px;
}
.z_xq_cont_top_lx .jzmssj .dwi {
font-size: 14px;
color: #666666;
}
.cont {
display: flex;
width: 100%;
}
.cont>>>img {
width: 100%;
}
</style> </style>