diff --git a/pages/global/search-address.vue b/pages/global/search-address.vue
index 9cfe88a..7a850c6 100644
--- a/pages/global/search-address.vue
+++ b/pages/global/search-address.vue
@@ -12,12 +12,12 @@
历史地址
-
+
-
+
@@ -109,7 +109,13 @@ export default {
});
});
},
- onSelect(item) {
+ onSelect(item, append = false) {
+ if (append) {
+ item = {
+ ...item,
+ address: (item.provinceName || '') + (item.cityName || '') + (item.areaName || '') + item.address,
+ };
+ }
uni.$emit('select-detail', item);
uni.navigateBack();
},
@@ -139,7 +145,7 @@ export default {
areaName: addressComponent.district,
address: addressInfo.address,
};
- this.onSelect(location);
+ this.onSelect(location, true);
},
});
// let location = {
diff --git a/pages/order/add.vue b/pages/order/add.vue
index 4bb0eca..340a384 100644
--- a/pages/order/add.vue
+++ b/pages/order/add.vue
@@ -430,7 +430,7 @@ export default {
cityName: location.cityName,
areaCode: location.areaCode,
areaName: location.areaName,
- address: (location.provinceName || '') + (location.cityName || '') + (location.areaName || '') + (location.address || ''),
+ address: location.address || '',
};
let waypoints = index === 0 ? [station, this.form.waypoints[1]] : [this.form.waypoints[0], station];
this.form = {
--
libgit2 0.21.0