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 {