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 @@