From f39ca3c49d26abd10f76fc67506b9c603a13547c Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 17 四月 2026 20:20:30 +0800
Subject: [PATCH] 调接口加页面
---
small-program/store/index.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/small-program/store/index.js b/small-program/store/index.js
index 69f7da1..7912886 100644
--- a/small-program/store/index.js
+++ b/small-program/store/index.js
@@ -20,6 +20,7 @@
latitude: '',
longitude: '',
+ cityId: '',
address:'瀹氫綅涓�'
},
mutations: {
@@ -35,7 +36,7 @@
state.token = val
uni.setStorageSync('token', val);
},
- // 璁剧疆token
+ // 璁剧疆openid
setOpenid(state, val) {
state.openid = val
uni.setStorageSync('openid', val);
@@ -47,9 +48,11 @@
},
// 璁剧疆缁忕含搴�
setPosition(state, obj) {
+ console.log('obj', obj)
state.latitude = obj.latitude
state.longitude = obj.longitude
- state.address = obj.address
+ state.address = obj.address
+ state.cityId = obj.cityId
console.log("鍦板潃璁剧疆瀹屾垚")
},
// 娓呴櫎缂撳瓨鏁版嵁
--
Gitblit v1.9.3