From ca2d2295e954f8b50069ee5a0fcc32e80433fafd Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Tue, 06 Apr 2021 15:40:07 +0800 Subject: [PATCH] 修复地址三级联动的问题 --- plugins/filter/CFilter.vue | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/plugins/filter/CFilter.vue b/plugins/filter/CFilter.vue index c456b4c..84739f4 100644 --- a/plugins/filter/CFilter.vue +++ b/plugins/filter/CFilter.vue @@ -44,6 +44,7 @@ <scroll-view class="c-filter-drawer-list" :scrollY="true" + v-if="drawerDisplay" > <view class="box" @@ -112,6 +113,7 @@ return { filterRes: {}, drawerShow: false, + drawerDisplay: false, // 面板项有已选 itemsFilled: false, // 本次打开是否有改变 @@ -121,6 +123,11 @@ methods: { handleOpen() { this.drawerShow = true; + this.$nextTick(() => { + setTimeout(() => { + this.drawerDisplay = true; + }, 80); + }); }, handleBarChange(name, value) { this.$set(this.filterRes, name, value); @@ -155,6 +162,9 @@ }, handleFinish() { this.drawerShow = false; + this.$nextTick(() => { + this.drawerDisplay = false; + }); // 有项目改变时,发送变化 if (this.itemsChanged) { this.itemsChanged = false; -- Gitblit v1.9.1