From 1164d9cd459f8beb1fd149b8270d791d4993964f Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Thu, 19 Mar 2026 14:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9F=8E=E5=B8=82=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/city/city.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/city/city.vue b/src/pages/city/city.vue index 2ce3974..038efb1 100644 --- a/src/pages/city/city.vue +++ b/src/pages/city/city.vue @@ -20,7 +20,7 @@ 当前定位 - + {{ city || LOCATION_DEFAULT_CITY }} @@ -98,6 +98,16 @@ // uni.setStorageSync(LOCATION_LNG_KEY, item.longitude) uni.setStorageSync(LOCATION_CITY_KEY, item.name) router.navigateBack() + }, + + /** + * 初始化默认城市 + */ + handleInitDefaultCity: () => { + City.handleChooseCity({ + id: 0, + city: '嘉兴市' + }) } }