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: '嘉兴市' + }) } }