From 67a06624933b79e64b3c787f84844eabd216c9bf Mon Sep 17 00:00:00 2001 From: xjs Date: Fri, 28 Mar 2025 18:10:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=96=E5=8A=A8=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages-sub/home/autoFill/index.vue | 1 + src/pages-sub/home/components/FilterMenu.vue | 8 + .../home/wishesList/components/SortMajor.vue | 1 - src/pages-sub/home/wishesList/temp.vue | 7 + src/pages-sub/home/wishesList/wishesList.vue | 166 ++++++++++++------ src/pages-sub/ucenter/wishList/wishList.vue | 13 +- src/pages.json | 4 + src/service/index/api.ts | 4 + src/types/uni-pages.d.ts | 1 + 9 files changed, 145 insertions(+), 60 deletions(-) create mode 100644 src/pages-sub/home/wishesList/temp.vue diff --git a/src/pages-sub/home/autoFill/index.vue b/src/pages-sub/home/autoFill/index.vue index fe0cc7d..8338459 100644 --- a/src/pages-sub/home/autoFill/index.vue +++ b/src/pages-sub/home/autoFill/index.vue @@ -82,6 +82,7 @@ const show = ref(false) const badgeValue = ref(1) const close = () => { + filterMenuRef.value.clearForm() show.value = false } diff --git a/src/pages-sub/home/components/FilterMenu.vue b/src/pages-sub/home/components/FilterMenu.vue index f30a062..943a549 100644 --- a/src/pages-sub/home/components/FilterMenu.vue +++ b/src/pages-sub/home/components/FilterMenu.vue @@ -140,8 +140,16 @@ const handleConfirm = () => { } } +const clearForm = () => { + defaultCollegeFeature.value = [] + defaultUniType.value = [] + defaultNature.value = [] + defaultRegion.value = [] +} + defineExpose({ handleConfirm, + clearForm, }) diff --git a/src/pages-sub/home/wishesList/components/SortMajor.vue b/src/pages-sub/home/wishesList/components/SortMajor.vue index 41ee505..b52aebc 100644 --- a/src/pages-sub/home/wishesList/components/SortMajor.vue +++ b/src/pages-sub/home/wishesList/components/SortMajor.vue @@ -26,7 +26,6 @@ - {{ score }} diff --git a/src/pages-sub/home/wishesList/temp.vue b/src/pages-sub/home/wishesList/temp.vue new file mode 100644 index 0000000..ea1ae39 --- /dev/null +++ b/src/pages-sub/home/wishesList/temp.vue @@ -0,0 +1,7 @@ + + + diff --git a/src/pages-sub/home/wishesList/wishesList.vue b/src/pages-sub/home/wishesList/wishesList.vue index 166f3d0..cdf6263 100644 --- a/src/pages-sub/home/wishesList/wishesList.vue +++ b/src/pages-sub/home/wishesList/wishesList.vue @@ -8,9 +8,8 @@ diff --git a/src/pages-sub/ucenter/wishList/wishList.vue b/src/pages-sub/ucenter/wishList/wishList.vue index 60b068c..13f7acb 100644 --- a/src/pages-sub/ucenter/wishList/wishList.vue +++ b/src/pages-sub/ucenter/wishList/wishList.vue @@ -7,12 +7,13 @@