|
@@ -2,44 +2,47 @@
|
|
|
<div class="home">
|
|
<div class="home">
|
|
|
<div class="company">
|
|
<div class="company">
|
|
|
<div class="company-left">
|
|
<div class="company-left">
|
|
|
- <item-title title="公司介绍" :topath="'/publicity'"></item-title>
|
|
|
|
|
- <div class="font">
|
|
|
|
|
- 台州市添利节能科技有限公司是专注于电镀行业节能减排尖端设备研发和 技术服务的企业,多年来为国内多家电镀企业进行技术改造,截止2021年1月
|
|
|
|
|
- 累计节水量达到200多万吨,节水经济效益1.17亿元,平均节水效率45%。
|
|
|
|
|
|
|
+ <item-title title="公司介绍" :topath="'/about'"></item-title>
|
|
|
|
|
+ <div class="font" v-html="main.content">
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="company-right">
|
|
|
|
|
+ <div class="imgBox">
|
|
|
|
|
+ <img class="img" :src="main.coverimage" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="company-right"><img src="" /></div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div class="home-body">
|
|
<div class="home-body">
|
|
|
<div class="new-pic">
|
|
<div class="new-pic">
|
|
|
- <el-carousel :interval="4000" height="450px" indicator-position="none">
|
|
|
|
|
- <el-carousel-item v-for="(item, index) in showNew" :key="index" @click="navTo('/news/detail?id=' + item.id)">
|
|
|
|
|
- <img :src="item.img" />
|
|
|
|
|
|
|
+ <el-carousel :interval="4000" height="320px" indicator-position="none">
|
|
|
|
|
+ <el-carousel-item v-for="(item, index) in showNew" :key="index" >
|
|
|
|
|
+ <img :src="item.coverimage" @click="navTo('/news/datatile?id='+ item.id)"/>
|
|
|
<div class="title clamp hand">{{ item.title }}</div>
|
|
<div class="title clamp hand">{{ item.title }}</div>
|
|
|
</el-carousel-item>
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
</el-carousel>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="case">
|
|
<div class="case">
|
|
|
- <item-title title="案例展示" :topath="'/publicity'"></item-title>
|
|
|
|
|
|
|
+ <item-title title="案例展示" :topath="'/product'"></item-title>
|
|
|
<div class="item-wrapper">
|
|
<div class="item-wrapper">
|
|
|
- <div class="new-item hand" v-for="item in openNews" :key="item.id" @click="navTo('/publicity/detail?id=' + item.id)">
|
|
|
|
|
|
|
+ <div class="new-item hand" v-for="item in openNews" :key="item.id" @click="navTo('/product/detail?id='+ item.id)">
|
|
|
<div class="title clamp ">
|
|
<div class="title clamp ">
|
|
|
<span></span>
|
|
<span></span>
|
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="time">{{ item.release_time ? item.release_time : item.add_time | time }}</div>
|
|
|
|
|
|
|
+ <div class="time">{{ item.time }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="news">
|
|
<div class="news">
|
|
|
<item-title title="新闻动态" :topath="'/news'"></item-title>
|
|
<item-title title="新闻动态" :topath="'/news'"></item-title>
|
|
|
<div class="item-wrapper">
|
|
<div class="item-wrapper">
|
|
|
- <div class="new-item hand" v-for="item in redNews" :key="item.id" @click="navTo('/news/detail?id=' + item.id)">
|
|
|
|
|
|
|
+ <div class="new-item hand" v-for="item in redNews" :key="item.id" @click="navTo('/news/datatile?id='+ item.id)">
|
|
|
<div class="title clamp">
|
|
<div class="title clamp">
|
|
|
<span></span>
|
|
<span></span>
|
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="time">{{ item.release_time ? item.release_time : item.add_time | time }}</div>
|
|
|
|
|
|
|
+ <div class="time">{{ item.time }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -135,7 +138,9 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import ItemTitle from './homeChild/ItemTitle.vue';
|
|
import ItemTitle from './homeChild/ItemTitle.vue';
|
|
|
-import { loadIndexs, aboutList, machine, companies, formBaoCun } from '@/api/index';
|
|
|
|
|
|
|
+import { loadIndexs, aboutList, machine, companies, formBaoCun,caseslist,storylist } from '@/api/index';
|
|
|
|
|
+import { getTime } from '../assets/js/time.js'
|
|
|
|
|
+import { aboutInfo } from '@/api/product.js'
|
|
|
import MyOverlay from '@/components/MyOverlay.vue';
|
|
import MyOverlay from '@/components/MyOverlay.vue';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -144,14 +149,15 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- openNews: [],
|
|
|
|
|
- redNews: [],
|
|
|
|
|
- showNew: [{}, {}],
|
|
|
|
|
|
|
+ main:'',//公司介绍
|
|
|
|
|
+ openNews: [],//案例展示
|
|
|
|
|
+ redNews: [],//新闻展示
|
|
|
|
|
+ showNew: [{title:'111'},{title:'222'}],
|
|
|
map: null, //保存地图
|
|
map: null, //保存地图
|
|
|
// 公司列表
|
|
// 公司列表
|
|
|
companyList: [],
|
|
companyList: [],
|
|
|
// 默认层级
|
|
// 默认层级
|
|
|
- zoomActive: 12,
|
|
|
|
|
|
|
+ zoomActive: 9,
|
|
|
machineList: {} // 设备总体信息
|
|
machineList: {} // 设备总体信息
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -163,6 +169,26 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
// 加载初始数据
|
|
// 加载初始数据
|
|
|
loadData(){
|
|
loadData(){
|
|
|
|
|
+ //公司介绍
|
|
|
|
|
+ aboutInfo({},7).then(e => {
|
|
|
|
|
+ this.main = e.data;
|
|
|
|
|
+ })
|
|
|
|
|
+ //新闻展示
|
|
|
|
|
+ storylist({page:1,limit:7}).then(e => {
|
|
|
|
|
+ e.data.list.forEach(data => {
|
|
|
|
|
+ data.time = getTime(data.createtime)
|
|
|
|
|
+ })
|
|
|
|
|
+ this.redNews = e.data.list
|
|
|
|
|
+ this.showNew = e.data.list
|
|
|
|
|
+ })
|
|
|
|
|
+ //案例展示
|
|
|
|
|
+ caseslist({page:1,limit:7}).then(e =>{
|
|
|
|
|
+ e.data.list.forEach(data => {
|
|
|
|
|
+ data.time = getTime(data.createtime)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ this.openNews = e.data.list
|
|
|
|
|
+ })
|
|
|
companies().then(e => {
|
|
companies().then(e => {
|
|
|
this.companyList = e.data.map(e => {
|
|
this.companyList = e.data.map(e => {
|
|
|
// 初始化弹窗显示隐藏
|
|
// 初始化弹窗显示隐藏
|
|
@@ -187,13 +213,13 @@ export default {
|
|
|
})
|
|
})
|
|
|
machine({}, 0).then(res => {
|
|
machine({}, 0).then(res => {
|
|
|
this.machineList = res.data;
|
|
this.machineList = res.data;
|
|
|
- console.log(res);
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 保存处理公司数据
|
|
// 保存处理公司数据
|
|
|
setCompanyData() {
|
|
setCompanyData() {
|
|
|
let obj = this;
|
|
let obj = this;
|
|
|
- console.log(this.companyList, 55);
|
|
|
|
|
|
|
+
|
|
|
for (let i = 0; i < this.companyList.length; i++) {
|
|
for (let i = 0; i < this.companyList.length; i++) {
|
|
|
let data = this.companyList[i];
|
|
let data = this.companyList[i];
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -236,6 +262,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ navTo(url) {
|
|
|
|
|
+ this.$router.push(url);
|
|
|
|
|
+ },
|
|
|
// 显示数据
|
|
// 显示数据
|
|
|
infoWindowOpen(item) {
|
|
infoWindowOpen(item) {
|
|
|
item.alertShow = true;
|
|
item.alertShow = true;
|
|
@@ -244,7 +273,7 @@ export default {
|
|
|
init({ BMap, map }) {
|
|
init({ BMap, map }) {
|
|
|
this.map = map;
|
|
this.map = map;
|
|
|
// 初始化地图,设置中心点坐标
|
|
// 初始化地图,设置中心点坐标
|
|
|
- var point = new BMap.Point(121.434817, 28.653649);
|
|
|
|
|
|
|
+ var point = new BMap.Point(121.434817, 29.653849);
|
|
|
map.centerAndZoom(point, this.zoomActive);
|
|
map.centerAndZoom(point, this.zoomActive);
|
|
|
// this.setMarker();
|
|
// this.setMarker();
|
|
|
// 添加鼠标滚动缩放
|
|
// 添加鼠标滚动缩放
|
|
@@ -256,16 +285,15 @@ export default {
|
|
|
|
|
|
|
|
<style lang="scss" spcode>
|
|
<style lang="scss" spcode>
|
|
|
.company {
|
|
.company {
|
|
|
- max-width: 1920px;
|
|
|
|
|
- min-width: 1080px;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: start;
|
|
justify-content: start;
|
|
|
- padding: 50px 75px 70px 50px;
|
|
|
|
|
|
|
+ padding: 50px 0 50px;
|
|
|
.company-left {
|
|
.company-left {
|
|
|
- padding-top: 20px;
|
|
|
|
|
max-width: 50%;
|
|
max-width: 50%;
|
|
|
min-width: 25%;
|
|
min-width: 25%;
|
|
|
- height: 414px;
|
|
|
|
|
|
|
+ // height: 414px;
|
|
|
.font {
|
|
.font {
|
|
|
margin-top: 37px;
|
|
margin-top: 37px;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -276,32 +304,53 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.company-right {
|
|
.company-right {
|
|
|
- margin-left: 60px;
|
|
|
|
|
|
|
+ margin-left: 20px;
|
|
|
width: 50%;
|
|
width: 50%;
|
|
|
- height: 410px;
|
|
|
|
|
- background: #55aaff;
|
|
|
|
|
|
|
+ padding-top: 30%;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ height: 0;
|
|
|
|
|
+ .imgBox {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ .img {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.home-body {
|
|
.home-body {
|
|
|
- max-width: 1920px;
|
|
|
|
|
- min-width: 1080px;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- padding: 20px;
|
|
|
|
|
.new-pic {
|
|
.new-pic {
|
|
|
- width: 600px;
|
|
|
|
|
- height: 450px;
|
|
|
|
|
|
|
+ // max-width: 550px;
|
|
|
|
|
+ // min-width: 400px;
|
|
|
|
|
+ width: 380px;;
|
|
|
|
|
+ height: 350px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
img {
|
|
img {
|
|
|
- width: 600px;
|
|
|
|
|
- height: 450px;
|
|
|
|
|
|
|
+ // max-width: 550px;
|
|
|
|
|
+ // min-width: 400px;
|
|
|
|
|
+ width: 380px;
|
|
|
|
|
+ height: 320px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.title {
|
|
.title {
|
|
|
- width: 600px;
|
|
|
|
|
- height: 80px;
|
|
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ // max-width: 550px;
|
|
|
|
|
+ // min-width: 400px;
|
|
|
|
|
+ padding: 0 10px;
|
|
|
|
|
+ width: 380px;
|
|
|
|
|
+ height: 60px;
|
|
|
background: #d2d3d3;
|
|
background: #d2d3d3;
|
|
|
opacity: 0.8;
|
|
opacity: 0.8;
|
|
|
- line-height: 55px;
|
|
|
|
|
|
|
+ line-height: 60px;
|
|
|
font-size: 24px;
|
|
font-size: 24px;
|
|
|
font-family: inpinheiti;
|
|
font-family: inpinheiti;
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
@@ -311,14 +360,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.case {
|
|
.case {
|
|
|
- width: 33%;
|
|
|
|
|
- height: 450px;
|
|
|
|
|
|
|
+ width: 32%;
|
|
|
|
|
+ height: 350px;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
|
}
|
|
}
|
|
|
.news {
|
|
.news {
|
|
|
- width: 33%;
|
|
|
|
|
- height: 450px;
|
|
|
|
|
|
|
+ width: 32%;
|
|
|
|
|
+ height: 350px;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
|
}
|
|
}
|
|
@@ -338,31 +387,33 @@ export default {
|
|
|
padding: 20px 15px 0 13px;
|
|
padding: 20px 15px 0 13px;
|
|
|
|
|
|
|
|
.new-item {
|
|
.new-item {
|
|
|
|
|
+ width: 100%;;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
margin-bottom: 17px;
|
|
margin-bottom: 17px;
|
|
|
&:hover {
|
|
&:hover {
|
|
|
span {
|
|
span {
|
|
|
- background: red;
|
|
|
|
|
|
|
+ border-color: #0165B5;
|
|
|
}
|
|
}
|
|
|
.title {
|
|
.title {
|
|
|
- color: red;
|
|
|
|
|
|
|
+ color: #0165B5;
|
|
|
}
|
|
}
|
|
|
.time {
|
|
.time {
|
|
|
- color: red;
|
|
|
|
|
|
|
+ color: #0165B5;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
span {
|
|
span {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
- width: 8px;
|
|
|
|
|
- height: 8px;
|
|
|
|
|
- background: #d8d8d8;
|
|
|
|
|
- // border-radius: 50%;
|
|
|
|
|
- transform: rotate(45deg);
|
|
|
|
|
margin-right: 8px;
|
|
margin-right: 8px;
|
|
|
|
|
+ width: 5px;
|
|
|
|
|
+ height: 5px;
|
|
|
|
|
+ border-left: 1px solid #d8d8d8;
|
|
|
|
|
+ border-bottom: 1px solid #d8d8d8;
|
|
|
|
|
+ -webkit-transform: translate(0,-50%) rotate(-135deg);
|
|
|
|
|
+ transform: translate(0,-50%) rotate(-135deg);
|
|
|
}
|
|
}
|
|
|
.title {
|
|
.title {
|
|
|
- width: 400px;
|
|
|
|
|
|
|
+
|
|
|
height: 14px;
|
|
height: 14px;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
@@ -373,6 +424,7 @@ export default {
|
|
|
// }
|
|
// }
|
|
|
}
|
|
}
|
|
|
.time {
|
|
.time {
|
|
|
|
|
+ min-width: 80px;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
@@ -410,9 +462,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.mapBox{
|
|
.mapBox{
|
|
|
|
|
+ max-width: 1200px;
|
|
|
|
|
+ min-width: 1080px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- padding-top: 33.33%;
|
|
|
|
|
- margin: 15px;
|
|
|
|
|
|
|
+ padding-top: 50%;
|
|
|
|
|
+ margin: 15px auto 35px;
|
|
|
}
|
|
}
|
|
|
.sjkb_box {
|
|
.sjkb_box {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -442,30 +496,34 @@ export default {
|
|
|
line-height: 1;
|
|
line-height: 1;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
&:last-of-type {
|
|
&:last-of-type {
|
|
|
margin-right: 0;
|
|
margin-right: 0;
|
|
|
// padding-right: 20px;
|
|
// padding-right: 20px;
|
|
|
}
|
|
}
|
|
|
.iconMapTop{
|
|
.iconMapTop{
|
|
|
- width: 80px;
|
|
|
|
|
- height: 80px;
|
|
|
|
|
|
|
+ width: 70px;
|
|
|
|
|
+ height: 70px;
|
|
|
}
|
|
}
|
|
|
// align-items: center;
|
|
// align-items: center;
|
|
|
.shebeitji_box {
|
|
.shebeitji_box {
|
|
|
|
|
+ margin-left: 5px;
|
|
|
padding-right: 20px;
|
|
padding-right: 20px;
|
|
|
- padding-top: 8px;
|
|
|
|
|
|
|
+ // padding-top: 8px;
|
|
|
// border-right: 1px solid #f0f0f0;
|
|
// border-right: 1px solid #f0f0f0;
|
|
|
text-align: left;
|
|
text-align: left;
|
|
|
.sjkb_title {
|
|
.sjkb_title {
|
|
|
- font-size: 24px;
|
|
|
|
|
|
|
+ font-size: 18px;
|
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: #101010;
|
|
color: #101010;
|
|
|
}
|
|
}
|
|
|
.sjkb_content {
|
|
.sjkb_content {
|
|
|
|
|
+ margin-top: 10px;
|
|
|
text-align: left;
|
|
text-align: left;
|
|
|
.sjkb_now {
|
|
.sjkb_now {
|
|
|
- font-size: 40px;
|
|
|
|
|
|
|
+ font-size: 20px;
|
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: #101010;
|
|
color: #101010;
|