Commit b63863b4 authored by liwei's avatar liwei

修改了大屏显示bug

parent 9b6ad313
...@@ -17,7 +17,7 @@ import AMapLoader from "@amap/amap-jsapi-loader"; ...@@ -17,7 +17,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<div class="btn btn3" @click="heatBtnClick(3)"><p>返回首页</p></div> <div class="btn btn3" @click="heatBtnClick(3)"><p>返回首页</p></div>
<div class="btn btn4" @click="heatBtnClick(4)"><p>返回上一级</p></div> <div class="btn btn4" @click="heatBtnClick(4)"><p>返回上一级</p></div>
</div> </div>
<div v-show="mapLevel === 1"> <div v-if="mapLevel === 1">
<div class="leftLayer" id="leftLayer"> <div class="leftLayer" id="leftLayer">
<div class="blockStyle" style="height: 18%"> <div class="blockStyle" style="height: 18%">
<div class="titleStyle"><p>室外温度</p></div> <div class="titleStyle"><p>室外温度</p></div>
...@@ -317,7 +317,7 @@ import AMapLoader from "@amap/amap-jsapi-loader"; ...@@ -317,7 +317,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</ul> </ul>
</div> </div>
</div> </div>
<div v-show="mapLevel === 2"> <div v-else-if="mapLevel === 2">
<div class="secondLeftLayer"> <div class="secondLeftLayer">
<div class="secondLeftLayer_one"> <div class="secondLeftLayer_one">
<div style="width: 100%"> <div style="width: 100%">
...@@ -438,7 +438,7 @@ import AMapLoader from "@amap/amap-jsapi-loader"; ...@@ -438,7 +438,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</vue3ScrollSeamless> </vue3ScrollSeamless>
</div> </div>
</div> </div>
<div v-show="mapLevel === 3"> <div v-else>
<div class="thirdLeftLayer"> <div class="thirdLeftLayer">
<div class="thirdLeftLayer_one" ref="myContainer"> <div class="thirdLeftLayer_one" ref="myContainer">
<div class="title_row"> <div class="title_row">
...@@ -1161,12 +1161,12 @@ export default defineComponent({ ...@@ -1161,12 +1161,12 @@ export default defineComponent({
if (markerId.includes("marker3")) { if (markerId.includes("marker3")) {
console.log('3333333333333333333333333333333333333333333333333333333333333333',stationId) console.log('3333333333333333333333333333333333333333333333333333333333333333',stationId)
console.log('3333333333333333333333333333333333333333333333333333333333333333',centerId) console.log('3333333333333333333333333333333333333333333333333333333333333333',centerId)
_this.markerThree = { // _this.markerThree = {
// map: map, // // map: map,
stationId: stationId, // stationId: stationId,
supplyId: centerId, // supplyId: centerId,
// index: index, // // index: index,
}; // };
_this.thirdLevelPageFun2() // 第三级页面方法 _this.thirdLevelPageFun2() // 第三级页面方法
} }
}); });
...@@ -3199,6 +3199,8 @@ export default defineComponent({ ...@@ -3199,6 +3199,8 @@ export default defineComponent({
getDivDialogWidth() { getDivDialogWidth() {
console.log('22222222222222222222222222222222222222',window.innerWidth) console.log('22222222222222222222222222222222222222',window.innerWidth)
console.log('22222222222222222222222222222222222222',window.innerHeight) console.log('22222222222222222222222222222222222222',window.innerHeight)
console.log('this.mapLevel:',this.mapLevel)
// this.mapLevel = 3
this.divDialogWidth = window.innerWidth *0.9; // 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条 this.divDialogWidth = window.innerWidth *0.9; // 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
this.divDialogHeight = window.innerHeight *0.8; // 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条 this.divDialogHeight = window.innerHeight *0.8; // 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
}, },
......
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