修改提交时的逻辑

This commit is contained in:
weipengfei 2023-09-23 15:03:33 +08:00
parent 13f8966ee0
commit 311069828a

View File

@ -250,12 +250,12 @@
}, },
// //
getFn() { getFn() {
if(this.markers[0].latitude==undefined||this.markers[0].latitude==undefined) return this.locationFn();
uni.showLoading({ uni.showLoading({
title: '上传中', title: '上传中',
mask: true mask: true
}) })
this.locationFn() // this.locationFn()
// console.log(this.getDistance(this.markers[0], this.markers[1]))
if ((this.getDistance(this.markers[0], this.markers[1]) >> 0) > 10000) { if ((this.getDistance(this.markers[0], this.markers[1]) >> 0) > 10000) {
return Toast('距离目标位置过远'); return Toast('距离目标位置过远');
} else { } else {