flat: 搜索

This commit is contained in:
Apcallover
2024-05-08 11:33:42 +08:00
parent dc5a3702a9
commit f6f34486bf

View File

@@ -232,8 +232,8 @@
longitude: 104.397894, longitude: 104.397894,
covers: [{ //marker标记位置 covers: [{ //marker标记位置
id: 0, id: 0,
latitude: 0, latitude: 31.126855,
longitude: 0, longitude: 104.397894,
// width:30, // width:30,
// height:30, // height:30,
iconPath: '../../static/img/location.png' iconPath: '../../static/img/location.png'
@@ -323,10 +323,10 @@
smart_address: res.data.data.address smart_address: res.data.data.address
}).then((result) => { }).then((result) => {
console.log('result', result) console.log('result', result)
self.latitude = result.lat; self.latitude = result.location.lat;
self.longitude = result.lon; self.longitude = result.location.lon;
self.covers[0].latitude = result.lat; self.covers[0].latitude = result.location.lat;
self.covers[0].longitude = result.lon; self.covers[0].longitude = result.location.lon;
}) })
// self.latitude = self.info.lat; // self.latitude = self.info.lat;
// self.longitude = self.info.lon; // self.longitude = self.info.lon;