From f6f34486bf90b5762f61e493a26bd3f975728615 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Wed, 8 May 2024 11:33:42 +0800 Subject: [PATCH] =?UTF-8?q?flat=EF=BC=9A=20=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/projectInfo/projectInfo.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/projectInfo/projectInfo.vue b/pages/projectInfo/projectInfo.vue index c605083..0d2c410 100644 --- a/pages/projectInfo/projectInfo.vue +++ b/pages/projectInfo/projectInfo.vue @@ -232,8 +232,8 @@ longitude: 104.397894, covers: [{ //marker标记位置 id: 0, - latitude: 0, - longitude: 0, + latitude: 31.126855, + longitude: 104.397894, // width:30, // height:30, iconPath: '../../static/img/location.png' @@ -323,10 +323,10 @@ smart_address: res.data.data.address }).then((result) => { console.log('result', result) - self.latitude = result.lat; - self.longitude = result.lon; - self.covers[0].latitude = result.lat; - self.covers[0].longitude = result.lon; + self.latitude = result.location.lat; + self.longitude = result.location.lon; + self.covers[0].latitude = result.location.lat; + self.covers[0].longitude = result.location.lon; }) // self.latitude = self.info.lat; // self.longitude = self.info.lon;