From d3ccf1ca0e991ed821407a0af0399db68ef35866 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Tue, 22 Feb 2022 16:54:18 +0800
Subject: [PATCH] +
---
pages/grabOrders/map.vue | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/pages/grabOrders/map.vue b/pages/grabOrders/map.vue
index 99a4125..0ffc1af 100644
--- a/pages/grabOrders/map.vue
+++ b/pages/grabOrders/map.vue
@@ -126,7 +126,7 @@
ourData: {},
map: null,
domMove: null,
- query :null,
+ query: null,
}
},
methods: {
@@ -433,18 +433,19 @@
// }, 10000)
// }
const _this = this;
- // uni.getSystemInfo({
- // success: (res) => {
- // _this.mapHeight = res.screenHeight - res.statusBarHeight
- // _this.mapHeight = _this.mapHeight
+ uni.getSystemInfo({
+ success: (res) => {
+ // _this.mapHeight = res.screenHeight - res.statusBarHeight
+ _this.mapHeight = res.screenHeight /2
+ _this.mapHeight = _this.mapHeight
- // console.log(res)
- // let info = uni.createSelectorQuery().select("Umain");
- // info.boundingClientRect(function(data) { //data - 各种参数
- // console.log(data.width) // 获取元素宽度
- // }).exec()
- // }
- // })
+ // console.log(res)
+ // let info = uni.createSelectorQuery().select("Umain");
+ // info.boundingClientRect(function(data) { //data - 各种参数
+ // console.log(data.width) // 获取元素宽度
+ // }).exec()
+ }
+ })
// console.log(document.getElementById("Umain"))
// this.checkDomHeightId({
// domName: "getElementById",
--
Gitblit v1.9.3