修改提交时的逻辑
This commit is contained in:
parent
13f8966ee0
commit
311069828a
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user