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