From f09e688c1fff4d4b6c60cc328d622d7229c6288e Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 19 Apr 2024 17:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/manage/agv-call-manage.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pages/manage/agv-call-manage.vue b/pages/manage/agv-call-manage.vue index b2884c2..02bdc64 100644 --- a/pages/manage/agv-call-manage.vue +++ b/pages/manage/agv-call-manage.vue @@ -98,11 +98,23 @@ show: false, distanceToTop: -300, distanceToLeft: -300, + windowHeight: '', val1: '' }; }, onLoad (options) { this.title = options.title + uni.getSystemInfo({ + success: (info) => { + this.windowHeight = info.windowHeight + } + }) + const query = uni.createSelectorQuery().in(this) + query + .select('.pop_point_wrap') + .boundingClientRect(data => { + console.log(data) + }).exec() }, created () { this.initArea() @@ -110,8 +122,8 @@ methods: { selectPoint () { this.pointArr.map(el => { - if (val1 === el.device_code || val1 === el.device_name) { - + if (this.val1 === el.device_code || this.val1 === el.device_name) { + console.log(this.val1) } }) }, @@ -138,6 +150,7 @@ query .select(`#site_item_box_${index}`) .boundingClientRect(data => { + console.log(data.top) if (data) { this.distanceToTop = data.top + (data.height / 2) - 9 this.distanceToLeft = data.left