This commit is contained in:
ylj20011123 2025-11-12 16:06:38 +08:00
parent 01b824233c
commit 90de8397f0

View File

@ -128,11 +128,16 @@ export default {
type: "gcj02", type: "gcj02",
altitude: true, altitude: true,
success: (res) => { success: (res) => {
console.log('resresresresres', res);
let seatInfo = { let seatInfo = {
latitude: res.latitude, latitude: res.latitude,
longitude: res.longitude, longitude: res.longitude,
}; };
_this.seatInfo = seatInfo _this.seatInfo = seatInfo
_this.longitude = _this.seatInfo.longitude
_this.latitude = _this.seatInfo.latitude
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo)); uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
_this.getListData() _this.getListData()
}, },
@ -145,6 +150,9 @@ export default {
longitude: 102.553311, longitude: 102.553311,
}; };
_this.seatInfo = seatInfo _this.seatInfo = seatInfo
_this.longitude = _this.seatInfo.longitude
_this.latitude = _this.seatInfo.latitude
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo)); uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
_this.getListData() _this.getListData()
}, },