From 3ab35bdf9b1807259df2e464adc747808cf8f194 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Sat, 25 Nov 2023 17:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E6=90=9C=E7=B4=A2=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/realstore/search/search.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pages/plugins/realstore/search/search.vue b/pages/plugins/realstore/search/search.vue index 899d86f3..3640cb39 100644 --- a/pages/plugins/realstore/search/search.vue +++ b/pages/plugins/realstore/search/search.vue @@ -97,6 +97,15 @@ export default { onShow() { // 用户位置初始化 this.user_location_init(); + // 先解绑自定义事件 + uni.$off('refresh'); + // 监听自定义事件并进行页面刷新操作 +     uni.$on('refresh', (data) => { + // 初始位置数据 +         if((data.location_success || false) == true) { + this.user_location_init(); +         } +     }); }, // 下拉刷新