返回首页样式

main
jn517618 2 years ago
parent 8e5542c4e4
commit cfe0d3bfab
  1. 2
      src/views/energySources/component/header.vue
  2. 2
      src/views/energySourcesProvince/component/header.vue
  3. 17
      src/views/energySourcesProvince/component/pathMap.vue

@ -14,7 +14,7 @@
<div> <div>
{{ temp }} {{ text }} {{ temp }} {{ text }}
</div> </div>
<div @click="$router.replace({ path: `/wel/index` })"> <div @click="$router.replace({ path: `/wel/index` })" style="cursor: pointer;">
<img src="../../../../public/img/energySources/r.png" style="width: 0.2rem;height: 0.2rem;" srcset=""> <img src="../../../../public/img/energySources/r.png" style="width: 0.2rem;height: 0.2rem;" srcset="">
返回首页 返回首页
</div> </div>

@ -14,7 +14,7 @@
<div> <div>
{{temp}} {{text}} {{temp}} {{text}}
</div> </div>
<div @click="$router.replace({path: `/wel/index`})"> <div @click="$router.replace({path: `/wel/index`})" style="cursor: pointer;">
<img src="../../../../public/img/energySources/r.png" style="width: 0.2rem;height: 0.2rem;" srcset=""> <img src="../../../../public/img/energySources/r.png" style="width: 0.2rem;height: 0.2rem;" srcset="">
返回首页 返回首页
</div> </div>

@ -1,6 +1,9 @@
<template> <template>
<div style="position:relative;width:100%;height:100%;"> <div style="position:relative;width:100%;height:100%;">
<div id="container" style="width:100%;height:100%;"></div> <div id="container" style="width:100%;height:100%;"></div>
<!-- <div class="mapsbtn" @click="backMap">
回到原点
</div> -->
<!-- 信息弹框 --> <!-- 信息弹框 -->
<!-- <div v-if="infoShow" class="infoPop"> <!-- <div v-if="infoShow" class="infoPop">
<div class="close_act" @click="infoShow = false" title="关闭">x</div> <div class="close_act" @click="infoShow = false" title="关闭">x</div>
@ -112,7 +115,7 @@ export default {
}, },
// //
backMap() { backMap() {
var point = new BMapGL.Point(118.880278, 35.649947); var point = new BMapGL.Point(112.37558, 25.59342);
this.infoShow = false; this.infoShow = false;
this.baiduMap.centerAndZoom(point, 12); this.baiduMap.centerAndZoom(point, 12);
if (this.polyline) { if (this.polyline) {
@ -698,4 +701,16 @@ export default {
} }
} }
} }
.mapsbtn{
position: absolute;
top: 10px;
right: 20px;
z-index: 999;
width: 60px;
height: 30px;
line-height: 30px;
text-align: center;
background: red;
cursor: pointer;
}
</style> </style>
Loading…
Cancel
Save