From 87d0717f78f67cadc9a02628bf045f45b6680a92 Mon Sep 17 00:00:00 2001 From: Gao xiaosong <704041637@qq.com> Date: Sat, 5 Dec 2020 18:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=9C=B0?= =?UTF-8?q?=E5=9D=80checked=E6=A0=BC=E5=BC=8F=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98;=E4=BF=AE=E6=94=B9=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=B8=8D=E5=9B=9E=E6=98=BE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CitySelect.vue | 8 +++++--- manifest.json | 6 ++++-- pages/user/address/AddAddress/index.vue | 2 +- pages/user/address/AddressManagement/index.vue | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/components/CitySelect.vue b/components/CitySelect.vue index d8d8add..8d4e887 100644 --- a/components/CitySelect.vue +++ b/components/CitySelect.vue @@ -107,14 +107,16 @@ export default { }, watch: { items(nextItem) { - console.log(nextItem); this.province = nextItem; + }, + defaultValue(next){ + this.value=next } }, mounted() { console.log(this); - if (this.defaultValue) { - this.value = this.defaultValue; + if (this.value) { + this.value = this.value; } this.province = this.items; }, diff --git a/manifest.json b/manifest.json index f3b15fa..e9f4814 100644 --- a/manifest.json +++ b/manifest.json @@ -20,7 +20,8 @@ "modules" : { "OAuth" : {}, "Payment" : {}, - "Share" : {} + "Share" : {}, + "Geolocation" : {} }, /* 应用发布信息 */ "distribute" : { @@ -74,7 +75,8 @@ "UniversalLinks" : "https://yixiang.co/app/" } }, - "ad" : {} + "ad" : {}, + "geolocation" : {} }, "splashscreen" : { "ios" : { diff --git a/pages/user/address/AddAddress/index.vue b/pages/user/address/AddAddress/index.vue index 394a268..5cea9f8 100644 --- a/pages/user/address/AddAddress/index.vue +++ b/pages/user/address/AddAddress/index.vue @@ -28,7 +28,7 @@ diff --git a/pages/user/address/AddressManagement/index.vue b/pages/user/address/AddressManagement/index.vue index daa5798..2256041 100644 --- a/pages/user/address/AddressManagement/index.vue +++ b/pages/user/address/AddressManagement/index.vue @@ -23,7 +23,7 @@