update
This commit is contained in:
parent
01b824233c
commit
90de8397f0
@ -128,11 +128,16 @@ export default {
|
||||
type: "gcj02",
|
||||
altitude: true,
|
||||
success: (res) => {
|
||||
console.log('resresresresres', res);
|
||||
let seatInfo = {
|
||||
latitude: res.latitude,
|
||||
longitude: res.longitude,
|
||||
};
|
||||
_this.seatInfo = seatInfo
|
||||
|
||||
_this.longitude = _this.seatInfo.longitude
|
||||
_this.latitude = _this.seatInfo.latitude
|
||||
|
||||
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
|
||||
_this.getListData()
|
||||
},
|
||||
@ -145,6 +150,9 @@ export default {
|
||||
longitude: 102.553311,
|
||||
};
|
||||
_this.seatInfo = seatInfo
|
||||
|
||||
_this.longitude = _this.seatInfo.longitude
|
||||
_this.latitude = _this.seatInfo.latitude
|
||||
uni.setStorageSync("seatInfo", JSON.stringify(seatInfo));
|
||||
_this.getListData()
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user