From 311069828a6c18e7193cfbbb77a24dbed968ebe0 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 23 Sep 2023 15:03:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpkg/property/vehicle.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subpkg/property/vehicle.vue b/subpkg/property/vehicle.vue index 13d65c3..d1ef875 100644 --- a/subpkg/property/vehicle.vue +++ b/subpkg/property/vehicle.vue @@ -250,12 +250,12 @@ }, // 上报位置 getFn() { + if(this.markers[0].latitude==undefined||this.markers[0].latitude==undefined) return this.locationFn(); uni.showLoading({ title: '上传中', mask: true }) - this.locationFn() - // console.log(this.getDistance(this.markers[0], this.markers[1])) + // this.locationFn() if ((this.getDistance(this.markers[0], this.markers[1]) >> 0) > 10000) { return Toast('距离目标位置过远'); } else {