From 6e45eafafb05b29cfdb114eff97f38def5417014 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Tue, 28 Mar 2023 00:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=B7=BB=E5=8A=A0=E5=9C=B0=E5=9D=80=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=98=AF=E4=BB=8E=E5=BE=AE=E4=BF=A1=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=BB=91=E5=AE=9A=E7=9A=84=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=EF=BC=8C=E5=88=99=E5=9C=B0=E5=9B=BE=E9=80=89=E7=82=B9=E5=90=8E?= =?UTF-8?q?=E4=B8=8D=E6=9B=B4=E6=96=B0=E6=8E=89=E8=AF=A6=E7=BB=86=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CoreShop/pages/member/address/index/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/address/index/index.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/address/index/index.vue index fe0bb34d..337c3e93 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/member/address/index/index.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/address/index/index.vue @@ -100,6 +100,7 @@ export default { data() { return { + getType: 1, //1手动输入,0从微信获取 id: 0, form: { name: '', @@ -188,7 +189,10 @@ this.region = [location.province, location.district, location.city]; this.form.street = location.name; - this.form.address = location.address; + if (this.getType == 1) { + this.form.address = location.address; + } + console.log("location1:", location); } }, @@ -473,6 +477,7 @@ }, // #ifdef MP-WEIXIN wechatAddress() { + this.getType = 0; let _that = this; wx.chooseAddress({ success: res => {