diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue index e0335a6cb..9393d5d9d 100644 --- a/src/views/modules/base/community/buildForm.vue +++ b/src/views/modules/base/community/buildForm.vue @@ -372,9 +372,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue index c3d8f4203..13f0437a2 100644 --- a/src/views/modules/base/community/communityForm.vue +++ b/src/views/modules/base/community/communityForm.vue @@ -285,9 +285,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/communityParty/heart/heartForm.vue b/src/views/modules/communityParty/heart/heartForm.vue index 1203f9cf5..093b3e690 100644 --- a/src/views/modules/communityParty/heart/heartForm.vue +++ b/src/views/modules/communityParty/heart/heartForm.vue @@ -1,221 +1,279 @@