From 90de8397f068d80204e44bd7f389f96e7657b4fb Mon Sep 17 00:00:00 2001 From: ylj20011123 Date: Wed, 12 Nov 2025 16:06:38 +0800 Subject: [PATCH] update --- pages/map/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/map/index.vue b/pages/map/index.vue index b735714..c28e421 100644 --- a/pages/map/index.vue +++ b/pages/map/index.vue @@ -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() },