From 7bdfd2192ffb8a5329276b1988818a0cc0da9de5 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 13 十月 2025 09:39:53 +0800
Subject: [PATCH] 改bug

---
 small-program/App.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/small-program/App.vue b/small-program/App.vue
index a57861a..984b614 100644
--- a/small-program/App.vue
+++ b/small-program/App.vue
@@ -7,7 +7,6 @@
 		},
 		onLaunch: function() {  
 			var that = this;
-			that.getLocaltionBiz() 
 			if (!this.openid || this.openid =='') {
 				uni.login({
 					provider: 'weixin',
@@ -36,6 +35,7 @@
 		},
 		onShow: function() {
 			console.log('App Show')
+			this.getLocaltionBiz() 
 		},
 		onHide: function() {
 			console.log('App Hide')
@@ -46,7 +46,8 @@
 				uni.getLocation({
 					type: 'wgs84',
 					success: (addr) => {
-						const locParam = { latitude: addr.latitude, longitude: addr.longitude ,address:'鑾峰彇鍦板潃澶辫触'};
+						const locParam = { latitude: addr.latitude, longitude: addr.longitude };
+						uni.setStorageSync('address', locParam);
 						var address =null
 						const qqmapsdk = new QQMapWX({
 							 key: '4PXBZ-JLBC7-LCLXG-P2SZX-C4HYE-LDBLQ' //鑵捐鍦板浘鐢宠鐨刱ey锛堝悗缁渶瑕佸叕鍙告彁渚涳紝涓汉寮�鍙戣�呴搴︽湁闄愶級

--
Gitblit v1.9.3