门店搜索位置选择
parent
323945a26a
commit
3ab35bdf9b
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
|
|
|
|||
Loading…
Reference in New Issue