|
|
|
@ -311,6 +311,7 @@
|
|
|
|
type: 'gcj02',
|
|
|
|
type: 'gcj02',
|
|
|
|
isHighAccuracy: true
|
|
|
|
isHighAccuracy: true
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
if (res[1]) {
|
|
|
|
if (res[1]) {
|
|
|
|
this.location.lat = res[1]?.latitude
|
|
|
|
this.location.lat = res[1]?.latitude
|
|
|
|
this.location.lng = res[1]?.longitude
|
|
|
|
this.location.lng = res[1]?.longitude
|
|
|
|
@ -420,6 +421,13 @@
|
|
|
|
clock(files, type) {
|
|
|
|
clock(files, type) {
|
|
|
|
if (this.isSubmitConfirm) {
|
|
|
|
if (this.isSubmitConfirm) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.form.lat || !this.form.lng) {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
icon: 'none',
|
|
|
|
|
|
|
|
title: '请重新获取定位信息'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let title;
|
|
|
|
let title;
|
|
|
|
switch (type) {
|
|
|
|
switch (type) {
|
|
|
|
|