From 4ef16728f968e2152e72b2aed2ef1807ef46d6df Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Sat, 1 Aug 2020 17:17:37 +0800 Subject: [PATCH] 8.1 --- components/mine/address-active/index.vue | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/components/mine/address-active/index.vue b/components/mine/address-active/index.vue index 7602cb2..c83b578 100644 --- a/components/mine/address-active/index.vue +++ b/components/mine/address-active/index.vue @@ -7,12 +7,12 @@ - - - + + + @@ -80,6 +80,16 @@ export default { confirmBtn() { this.info ? this.editAddress() : this.addAddress(); }, + chooseArea() { + uni.chooseLocation({ + success: function (res) { + console.log('位置名称:' + res.name); + console.log('详细地址:' + res.address); + console.log('纬度:' + res.latitude); + console.log('经度:' + res.longitude); + } + }); + }, // 验证 validateValue() { if(this.$u.test.isEmpty(this.name)) {