|
@@ -73,18 +73,17 @@
|
|
|
|
|
|
#map {
|
|
|
width: 60%;
|
|
|
- height: calc(100% - 10px);
|
|
|
+ /* height: calc(100% - 10px); */
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
|
|
|
.contentR {
|
|
|
width: calc(40% - 10px);
|
|
|
- /* height: 100%; */
|
|
|
+ /* height: 900px; */
|
|
|
}
|
|
|
|
|
|
.contentBox {
|
|
|
- padding-top: 20px;
|
|
|
- height: 900px;
|
|
|
+ height: 937px;
|
|
|
width: 100%;
|
|
|
display: grid;
|
|
|
grid-template-columns: 1fr 1fr;
|
|
@@ -114,20 +113,23 @@
|
|
|
padding: 20px 0;
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* .mainTab>span:hover {
|
|
|
font-weight: bold;
|
|
|
} */
|
|
|
- .el-tabs__item{
|
|
|
+ .el-tabs__item {
|
|
|
color: #fff;
|
|
|
font-size: 18px;
|
|
|
+ border: none !important;
|
|
|
}
|
|
|
.el-tabs--card>.el-tabs__header .el-tabs__nav {
|
|
|
border: none;
|
|
|
}
|
|
|
- .el-tabs__nav-next, .el-tabs__nav-prev {
|
|
|
+ .el-tabs__nav-next,
|
|
|
+ .el-tabs__nav-prev {
|
|
|
color: #fff;
|
|
|
}
|
|
|
+
|
|
|
.activeTab {
|
|
|
background-color: rgba(0, 0, 0, .4) !important;
|
|
|
font-weight: bold;
|
|
@@ -146,14 +148,16 @@
|
|
|
/* .mainTab>span:hover {
|
|
|
font-weight: bold;
|
|
|
} */
|
|
|
- .el-tabs__item:hover{
|
|
|
+ .el-tabs__item:hover {
|
|
|
color: #fff;
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
+
|
|
|
.el-tabs__item.is-active {
|
|
|
color: #fff;
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
+
|
|
|
.activeTab {
|
|
|
background-color: rgba(0, 0, 0, .4) !important;
|
|
|
font-weight: bold;
|
|
@@ -201,6 +205,7 @@
|
|
|
width: 100%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
+
|
|
|
.tdgyC {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
@@ -218,14 +223,16 @@
|
|
|
box-sizing: border-box;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
+
|
|
|
.ztfwC {
|
|
|
width: 100%;
|
|
|
overflow-y: auto;
|
|
|
-ms-overflow-style: none;
|
|
|
- scrollbar-width: none;
|
|
|
+ scrollbar-width: none;
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
+
|
|
|
.tdgyList {
|
|
|
display: flex;
|
|
|
border-bottom: 1px solid rgba(245, 250, 255, .2);
|
|
@@ -507,11 +514,11 @@
|
|
|
<div class="contentItem">
|
|
|
<!-- <div class="mainTab"><span class="activeTab" @click="switchTab(1)">区位条件</span><span
|
|
|
@click="switchTab(2)">创新优势</span><span @click="switchTab(3)">产业特色</span></div> -->
|
|
|
- <el-tabs v-model="activeName" type="card" @tab-click="switchTab">
|
|
|
- <el-tab-pane label="区位条件" name="1"></el-tab-pane>
|
|
|
- <el-tab-pane label="创新优势" name="2"></el-tab-pane>
|
|
|
- <el-tab-pane label="产业特色" name="3"></el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
+ <el-tabs v-model="activeName" type="card" @tab-click="switchTab">
|
|
|
+ <el-tab-pane label="区位条件" name="1"></el-tab-pane>
|
|
|
+ <el-tab-pane label="创新优势" name="2"></el-tab-pane>
|
|
|
+ <el-tab-pane label="产业特色" name="3"></el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
<div class="main">
|
|
|
<div v-show="this.activeName==='1'">
|
|
|
<li title="15分钟直达江北国际机场,20分钟可抵重庆西部物流园"><img src="image/listcricle.png" />15分钟直达江北国际机场,20分钟可抵重庆西部物流园</li>
|
|
@@ -533,8 +540,10 @@
|
|
|
</el-tab-pane> -->
|
|
|
<div v-show="this.activeName==='3'">
|
|
|
<li title="2023年地区生产总值增长6.7%,居中心城区第一"><img src="image/listcricle.png" />2023年地区生产总值增长6.7%,居中心城区第一</li>
|
|
|
- <li title="加快构建智能终端、软件信息服务、大健康3个1000亿级主导产业体系"><img src="image/listcricle.png" />加快构建智能终端、软件信息服务、大健康3个1000亿级主导产业体系</li>
|
|
|
- <li title="加快构建节能环保、汽车电子2个500亿级特色支柱产业体系"><img src="image/listcricle.png" />加快构建节能环保、汽车电子2个500亿级特色支柱产业体系</li>
|
|
|
+ <li title="加快构建智能终端、软件信息服务、大健康3个1000亿级主导产业体系"><img
|
|
|
+ src="image/listcricle.png" />加快构建智能终端、软件信息服务、大健康3个1000亿级主导产业体系</li>
|
|
|
+ <li title="加快构建节能环保、汽车电子2个500亿级特色支柱产业体系"><img src="image/listcricle.png" />加快构建节能环保、汽车电子2个500亿级特色支柱产业体系
|
|
|
+ </li>
|
|
|
<li title="长嘉汇金融中心"><img src="image/listcricle.png" />长嘉汇金融中心</li>
|
|
|
<li title="国际消费中心城市中心区"><img src="image/listcricle.png" />国际消费中心城市中心区</li>
|
|
|
<li title="重庆脑与智能科学中心"><img src="image/listcricle.png" />重庆脑与智能科学中心</li>
|
|
@@ -558,8 +567,8 @@
|
|
|
<span class="text">园区列表</span>
|
|
|
</div>
|
|
|
<div class="yqlb">
|
|
|
- <div class="mainList" v-for="(tab, index) in this.titleList" @click="golink(`dqfwNews.html?id=${tab.id}`)"
|
|
|
- :key="index"> {{tab.title}}</div>
|
|
|
+ <div class="mainList" v-for="(tab, index) in this.titleList"
|
|
|
+ @click="golink(`dqfwNew.html?id=${tab.id}`)" :key="index"> {{tab.title}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="contentItem" style="background:url(image/tdgybg.png) no-repeat;background-size: 100% 100%;">
|
|
@@ -569,17 +578,17 @@
|
|
|
</div>
|
|
|
<div class="tdgy">
|
|
|
<div class="tdgyC">
|
|
|
- <div :data="contentList" class="tdgyList" v-for="(tab, index) in this.contentList"
|
|
|
- @click="golink('tdcr.html?tdid=' + tab.id)" :key="index">
|
|
|
- <img src="image/listcricle.png" />
|
|
|
- <div class="tdgyContent">
|
|
|
- <div class="tdgyTitle">{{tab.landName}}</div>
|
|
|
- <div class="tdgyDec">{{tab.landArea}}亩 丨 {{tab.landFunction}}</div>
|
|
|
- <div class="tdgyLocation"><i class="el-icon-location"></i>{{tab.addr}}</div>
|
|
|
+ <div :data="contentList" class="tdgyList" v-for="(tab, index) in this.contentList"
|
|
|
+ @click="golink('tdcr.html?tdid=' + tab.id)" :key="index">
|
|
|
+ <img src="image/listcricle.png" />
|
|
|
+ <div class="tdgyContent">
|
|
|
+ <div class="tdgyTitle">{{tab.landName}}</div>
|
|
|
+ <div class="tdgyDec">{{tab.landArea}}亩 丨 {{tab.landFunction}}</div>
|
|
|
+ <div class="tdgyLocation"><i class="el-icon-location"></i>{{tab.addr}}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div class="contentItem" style="background:url(image/ztfwbg.png) no-repeat;background-size: 100% 100%;">
|
|
|
<div class="title">
|
|
@@ -588,16 +597,16 @@
|
|
|
</div>
|
|
|
<div class="ztfw">
|
|
|
<div class="ztfwC">
|
|
|
- <div class="ztfwList" v-for="(tab, index) in this.buildList"
|
|
|
- @click="golink('ztcrdetail.html?ztid=' + tab.id)" :key="index">
|
|
|
- <img src="image/listcricle.png" />
|
|
|
- <div class="tdgyContent">
|
|
|
- <div class="tdgyTitle">{{tab.carrierName}}</div>
|
|
|
- <div class="tdgyDec">{{tab.space}}亩 丨 {{tab.parkData.title}}</div>
|
|
|
+ <div class="ztfwList" v-for="(tab, index) in this.buildList"
|
|
|
+ @click="golink('ztcrdetail.html?ztid=' + tab.id)" :key="index">
|
|
|
+ <img src="image/listcricle.png" />
|
|
|
+ <div class="tdgyContent">
|
|
|
+ <div class="tdgyTitle">{{tab.carrierName}}</div>
|
|
|
+ <div class="tdgyDec">{{tab.space}}亩 丨 {{tab.parkData.title}}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div class="contentItem" style="background:url(image/yqfwbg.png) no-repeat;background-size: 100% 100%;">
|
|
|
<div class="title">
|
|
@@ -654,7 +663,7 @@
|
|
|
methods: {
|
|
|
switchTab(val) {
|
|
|
console.log(val);
|
|
|
-
|
|
|
+
|
|
|
this.activeName = val.name
|
|
|
// const arr = document.querySelectorAll('.mainTab>span')
|
|
|
// arr.forEach(item => {
|
|
@@ -721,12 +730,12 @@
|
|
|
strokeOpacity: 1,
|
|
|
strokeStyle: "dashed",
|
|
|
fillColor: "#4B98F6",
|
|
|
- fillOpacity: 0.3
|
|
|
+ fillOpacity: 0.2
|
|
|
});
|
|
|
// 将多边形添加到地图中
|
|
|
map.addOverlay(polygon);
|
|
|
var allpointList = that.titleList;
|
|
|
- console.log(allpointList)
|
|
|
+
|
|
|
var polygon1, polygon2, polygon3, polygon4, polygon5;
|
|
|
var resultlist = [];
|
|
|
for (var i = 0; i < allpointList.length; i++) {
|
|
@@ -746,11 +755,11 @@
|
|
|
strokeOpacity: 1,
|
|
|
strokeStyle: "solid",
|
|
|
fillColor: "#f76f3a",
|
|
|
- fillOpacity: 1
|
|
|
+ fillOpacity: 0.5
|
|
|
});
|
|
|
|
|
|
polygon1.addEventListener('click', function () {
|
|
|
- window.location.href = 'dqfwNews.html?id=' + allpointList[0].id;
|
|
|
+ window.location.href = 'dqfwNew.html?id=' + allpointList[0].id;
|
|
|
});
|
|
|
map.addOverlay(polygon1);
|
|
|
// 创建多边形
|
|
@@ -760,11 +769,11 @@
|
|
|
strokeOpacity: 1,
|
|
|
strokeStyle: "solid",
|
|
|
fillColor: "#f76f3a",
|
|
|
- fillOpacity: 1
|
|
|
+ fillOpacity: 0.5
|
|
|
});
|
|
|
|
|
|
polygon2.addEventListener('click', function () {
|
|
|
- window.location.href = 'dqfwNews.html?id=' + allpointList[1].id;
|
|
|
+ window.location.href = 'dqfwNew.html?id=' + allpointList[1].id;
|
|
|
});
|
|
|
// 将多边形添加到地图中
|
|
|
map.addOverlay(polygon2);
|
|
@@ -774,11 +783,11 @@
|
|
|
strokeOpacity: 1,
|
|
|
strokeStyle: "solid",
|
|
|
fillColor: "#f76f3a",
|
|
|
- fillOpacity: 1
|
|
|
+ fillOpacity: 0.5
|
|
|
});
|
|
|
|
|
|
polygon3.addEventListener('click', function () {
|
|
|
- window.location.href = 'dqfwNews.html?id=' + allpointList[2].id;
|
|
|
+ window.location.href = 'dqfwNew.html?id=' + allpointList[2].id;
|
|
|
});
|
|
|
map.addOverlay(polygon3);
|
|
|
polygon4 = new BMap.Polygon(resultlist[3], {
|
|
@@ -787,11 +796,11 @@
|
|
|
strokeOpacity: 1,
|
|
|
strokeStyle: "solid",
|
|
|
fillColor: "#f76f3a",
|
|
|
- fillOpacity: 1
|
|
|
+ fillOpacity: 0.5
|
|
|
});
|
|
|
|
|
|
polygon4.addEventListener('click', function () {
|
|
|
- window.location.href = 'dqfwNews.html?id=' + allpointList[3].id;
|
|
|
+ window.location.href = 'dqfwNew.html?id=' + allpointList[3].id;
|
|
|
});
|
|
|
map.addOverlay(polygon4);
|
|
|
polygon5 = new BMap.Polygon(resultlist[4], {
|
|
@@ -800,11 +809,11 @@
|
|
|
strokeOpacity: 1,
|
|
|
strokeStyle: "solid",
|
|
|
fillColor: "#f76f3a",
|
|
|
- fillOpacity: 1
|
|
|
+ fillOpacity: 0.5
|
|
|
});
|
|
|
|
|
|
polygon5.addEventListener('click', function () {
|
|
|
- window.location.href = 'dqfwNews.html?id=' + allpointList[4].id;
|
|
|
+ window.location.href = 'dqfwNew.html?id=' + allpointList[4].id;
|
|
|
});
|
|
|
map.addOverlay(polygon5);
|
|
|
polygon6 = new BMap.Polygon(resultlist[5], {
|
|
@@ -813,11 +822,11 @@
|
|
|
strokeOpacity: 1,
|
|
|
strokeStyle: "solid",
|
|
|
fillColor: "#f76f3a",
|
|
|
- fillOpacity: 1
|
|
|
+ fillOpacity: 0.5
|
|
|
});
|
|
|
|
|
|
polygon6.addEventListener('click', function () {
|
|
|
- window.location.href = 'dqfwNews.html?id=' + allpointList[5].id;
|
|
|
+ window.location.href = 'dqfwNew.html?id=' + allpointList[5].id;
|
|
|
});
|
|
|
map.addOverlay(polygon6);
|
|
|
|
|
@@ -873,13 +882,14 @@
|
|
|
that.buildList = dataList;
|
|
|
}
|
|
|
});
|
|
|
- var height = document.querySelector('.tdgyList')?document.querySelector('.tdgyList').clientHeight:0;
|
|
|
+ var height = document.querySelector('.tdgyList') ? document.querySelector('.tdgyList').clientHeight : 0;
|
|
|
console.log(height);
|
|
|
- if(this.contentList.length){
|
|
|
- this.addKeyFrames(height * this.contentList.length);}
|
|
|
- var height1 = document.querySelector('.ztfwList').clientHeight?document.querySelector('.ztfwList'):0;
|
|
|
+ if (this.contentList.length) {
|
|
|
+ this.addKeyFrames(height * this.contentList.length);
|
|
|
+ }
|
|
|
+ var height1 = document.querySelector('.ztfwList').clientHeight ? document.querySelector('.ztfwList') : 0;
|
|
|
console.log(height1);
|
|
|
- if(this.buildList.length){this.addKey(height1 * this.buildList.length);}
|
|
|
+ if (this.buildList.length) { this.addKey(height1 * this.buildList.length); }
|
|
|
},
|
|
|
addKeyFrames(y) {
|
|
|
console.log(y);
|