Commit 1a797923 authored by zhangyanni's avatar zhangyanni

地图

parent 9694fe29
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
<secondMap :isShowOther="isShowSecond"></secondMap> <secondMap :isShowOther="isShowSecond"></secondMap>
</div> </div>
<div id="thirdScreen" style="width:100%;height:100%;" v-if="isShowThird"> <div id="thirdScreen" style="width:100%;height:100%;" v-if="isShowThird">
<thirdScreen :isShow="isShowThird"></thirdScreen> <thirdScreen :isShow="isShowThird" @hidePage="hidePage"></thirdScreen>
</div> </div>
</section> </section>
<div class="buttonWrap" v-show="isShowOther"> <div class="buttonWrap" v-show="isShowPage">
<p :class="currentScreen==1?'activeP':''" @click="handleToWhich(1)"></p> <p :class="currentScreen==1?'activeP':''" @click="handleToWhich(1)"></p>
<p :class="currentScreen==2?'activeP':''" @click="handleToWhich(2)"></p> <p :class="currentScreen==2?'activeP':''" @click="handleToWhich(2)"></p>
<p :class="currentScreen==3?'activeP':''" @click="handleToWhich(3)"></p> <p :class="currentScreen==3?'activeP':''" @click="handleToWhich(3)"></p>
...@@ -56,7 +56,8 @@ ...@@ -56,7 +56,8 @@
isShowThird:false, isShowThird:false,
isShowForth:false, isShowForth:false,
isShowFifth:false, isShowFifth:false,
currentScreen:1 currentScreen:1,
isShowPage:false
} }
...@@ -66,6 +67,7 @@ ...@@ -66,6 +67,7 @@
handleTo(type){ handleTo(type){
this.isShowFirst = false; this.isShowFirst = false;
this.isShowOther = true; this.isShowOther = true;
this.isShowPage = true;
this.isShowSecond = true; this.isShowSecond = true;
this.isWhich = type; this.isWhich = type;
}, },
...@@ -93,6 +95,10 @@ ...@@ -93,6 +95,10 @@
this.isShowForth = false; this.isShowForth = false;
this.isShowFifth = true; this.isShowFifth = true;
} }
},
hidePage(data){
this.isShowPage = !data;
} }
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
<div> <div>
<div id="projectNum"></div> <div id="projectNum"></div>
<p>项目数量</p> <p @click="handleMap">项目数量</p>
</div> </div>
<div> <div>
<div id="infoKnowledge"></div> <div id="infoKnowledge"></div>
...@@ -58,15 +58,25 @@ ...@@ -58,15 +58,25 @@
<p>品牌</p> <p>品牌</p>
</div> </div>
</div> </div>
<div class="worldMap" v-if="isShowWorldMap">
<worldMap></worldMap>
</div>
<div class="closeButton" v-show="isShowWorldMap">
<i class="iconfont icon-cuowu" @click="handleClose"></i>
</div>
</div> </div>
</template> </template>
<script> <script>
import echarts from 'echarts'; import echarts from 'echarts';
import '../../../public/js/techbook'; import '../../../public/js/techbook';
import worldMap from './worldMap';
export default { export default {
name: "thirdScreen", name: "thirdScreen",
props:['isShow'], props:['isShow'],
components:{
worldMap
},
data(){ data(){
return{ return{
currentIndex:1, currentIndex:1,
...@@ -404,6 +414,7 @@ ...@@ -404,6 +414,7 @@
data: [187430,99233,125490] data: [187430,99233,125490]
} }
], ],
isShowWorldMap:false
} }
}, },
...@@ -491,6 +502,16 @@ ...@@ -491,6 +502,16 @@
mapChart.style.height = '200px'; mapChart.style.height = '200px';
echartIndustry = echarts.init(mapChart,'techbook'); echartIndustry = echarts.init(mapChart,'techbook');
echartIndustry.setOption(this.platformEchartsOption, true); echartIndustry.setOption(this.platformEchartsOption, true);
},
//查看地图
handleMap(){
this.isShowWorldMap = true;
this.$emit("hidePage",true);
},
handleClose(){
this.isShowWorldMap = false;
} }
}, },
mounted(){ mounted(){
...@@ -506,6 +527,7 @@ ...@@ -506,6 +527,7 @@
background-size: 100%; background-size: 100%;
color: #fff; color: #fff;
padding-top: 50px; padding-top: 50px;
position: relative;
&>p{ &>p{
font-size: 30px; font-size: 30px;
} }
...@@ -575,5 +597,22 @@ ...@@ -575,5 +597,22 @@
} }
} }
} }
.worldMap{
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.closeButton{
position: absolute;
right: 20px;
top: 20px;
cursor: pointer;
.icon-cuowu:before{
color: #D8D8D8;
font-size: 25px;
}
}
} }
</style> </style>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment