update
This commit is contained in:
parent
01b824233c
commit
90de8397f0
@ -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()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user