From 9f380ae176956086a268bf26f00e0f42aaa63d6e Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Tue, 2 Jul 2024 11:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=88=A4=E6=96=AD=E7=BB=8F?= =?UTF-8?q?=E7=BA=AC=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/detailNursing/detailNursing.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/detailNursing/detailNursing.vue b/pages/detailNursing/detailNursing.vue index 84fb0e9..8e1026c 100644 --- a/pages/detailNursing/detailNursing.vue +++ b/pages/detailNursing/detailNursing.vue @@ -311,6 +311,7 @@ type: 'gcj02', isHighAccuracy: true }).then(res => { + console.log(res) if (res[1]) { this.location.lat = res[1]?.latitude this.location.lng = res[1]?.longitude @@ -420,6 +421,13 @@ clock(files, type) { if (this.isSubmitConfirm) { return + } + if (!this.form.lat || !this.form.lng) { + uni.showToast({ + icon: 'none', + title: '请重新获取定位信息' + }) + return } let title; switch (type) {