From f8326726fd3d45a50b9b7f457f2e63c92f3786f6 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 4 Jul 2022 08:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manifest.json | 2 +- .../AppMerchantManage/ChooseAddess.vue | 337 ++++++++++++++++++ src/project/xicheng/AppMerchantManage/add.vue | 21 +- 3 files changed, 353 insertions(+), 7 deletions(-) create mode 100644 src/project/xicheng/AppMerchantManage/ChooseAddess.vue diff --git a/src/manifest.json b/src/manifest.json index 86c7a7ad..5a0a5bb0 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -97,7 +97,7 @@ "sdkConfigs": { "maps": { "qqmap": { - "key": "3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY" + "key": "RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S" } } } diff --git a/src/project/xicheng/AppMerchantManage/ChooseAddess.vue b/src/project/xicheng/AppMerchantManage/ChooseAddess.vue new file mode 100644 index 00000000..66f2cb34 --- /dev/null +++ b/src/project/xicheng/AppMerchantManage/ChooseAddess.vue @@ -0,0 +1,337 @@ + + + + + diff --git a/src/project/xicheng/AppMerchantManage/add.vue b/src/project/xicheng/AppMerchantManage/add.vue index e47323fb..82d02737 100644 --- a/src/project/xicheng/AppMerchantManage/add.vue +++ b/src/project/xicheng/AppMerchantManage/add.vue @@ -99,15 +99,24 @@ this.id = query.id this.getInfo() } + + uni.$on('chooseAddress', e => { + this.form.lat = e.lat + this.form.lng = e.lng + }) }, methods: { chooseLocation () { - uni.chooseLocation({ - success: res => { - this.form.lat = res.latitude - this.form.lng = res.longitude - } + // uni.chooseLocation({ + // success: res => { + // this.form.lat = res.latitude + // this.form.lng = res.longitude + // } + // }) + + uni.navigateTo({ + url: './ChooseAddess' }) }, @@ -151,7 +160,7 @@ delta: 1 }) }, 500) - } + } }) } }