From 1780c4ff0abcd2f713eb896ab70315f8cf4caf65 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 5 Jan 2026 11:03:48 +0800 Subject: [PATCH] =?UTF-8?q?Conf(=E5=9C=B0=E5=9B=BE):=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=A4=A9=E5=9C=B0=E5=9B=BE=E5=AE=9A=E4=BD=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=9C=81=E5=B8=82=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chose-city/chose-city.vue | 7 +- pages/cloud/cloud.vue | 59 ++------ pages/cloud/haveFun.vue | 10 +- pages/home/index.vue | 7 +- pages/shop/GoodsCon/index.vue | 17 +-- pages/user/address/AddAddress/index.vue | 132 ++++-------------- pkg-video/views/city.vue | 12 +- pkg-video/views/watch.vue | 15 +- .../views/gift/components/AddressDialog.vue | 105 -------------- utils/common.js | 38 ++++- utils/mapConfig.js | 2 +- v4/views/specialty/specialty.vue | 75 +--------- 12 files changed, 115 insertions(+), 364 deletions(-) diff --git a/pages/chose-city/chose-city.vue b/pages/chose-city/chose-city.vue index 76c2d5f..ce34a9c 100644 --- a/pages/chose-city/chose-city.vue +++ b/pages/chose-city/chose-city.vue @@ -341,10 +341,11 @@ export default { }, async getMapData() { const map = await getLocation() - if (map) { + if (map.length > 1) { const {latitude, longitude} = map[1] - const address = await getCurAddress(latitude, longitude) - this.location = address[1].data.result.ad_info.city + getCurAddress(latitude, longitude, address => { + this.location = address.city + }) } }, init() { diff --git a/pages/cloud/cloud.vue b/pages/cloud/cloud.vue index 2dc2d0c..5b4b5f9 100644 --- a/pages/cloud/cloud.vue +++ b/pages/cloud/cloud.vue @@ -74,7 +74,7 @@