From b405b88862ab7b855010bd31644b6d6032ed0f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 15 Sep 2025 08:48:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=A9=E4=B8=9A=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=98=BE=E7=A4=BA=E6=A8=A1=E5=9D=97=E7=9A=84=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index c95ae492..e7cb764f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1071,7 +1071,7 @@ export default { this.switchCategory(id); this.showDropdown = false; }, - + // 获取当前位置 obtainLocation() { // 显示加载提示 @@ -1079,10 +1079,10 @@ export default { title: '定位中...', mask: true }); - + // 清除旧的位置缓存 uni.removeStorageSync('location'); - + // 重新获取位置信息 try { this.getUserLocation(); @@ -1132,7 +1132,7 @@ export default { } }, onShow() { - this.showNav = uni.getStorageSync("is_worker") + this.showNav = uni.getStorageSync("userId") ? uni.getStorageSync("is_worker") : false this.flag = false this.bottomPageNum = 1 console.log('当前页面展示的城市信息', this.currentCity)