From 26703cd75480d4fdcf39946b5a2e5505a8e07274 Mon Sep 17 00:00:00 2001 From: xjs Date: Thu, 22 May 2025 16:18:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=93=E4=B8=9A=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/login-sub/inviteCode.vue | 15 +- src/pages-sub/components/Slider.vue | 2 +- .../components/input/SearchInput.vue | 4 +- src/pages-sub/home/components/ProgressBar.vue | 2 +- src/pages-sub/home/inputScore/index.vue | 10 +- .../wishesList/components/CustomCheckbox.vue | 22 ++ .../wishesList/components/FilterMajorList.vue | 188 ++++++++++++++++++ .../components/FilterMajorTreeList.vue | 170 ++++++++++++++++ src/pages-sub/home/wishesList/index.vue | 45 ++++- src/pages-sub/ucenter/setting/userInfo.vue | 14 +- src/pages/ucenter/index/index.vue | 2 - src/service/index/api.ts | 1 + 12 files changed, 441 insertions(+), 34 deletions(-) create mode 100644 src/pages-sub/home/wishesList/components/CustomCheckbox.vue create mode 100644 src/pages-sub/home/wishesList/components/FilterMajorList.vue create mode 100644 src/pages-sub/home/wishesList/components/FilterMajorTreeList.vue diff --git a/src/login-sub/inviteCode.vue b/src/login-sub/inviteCode.vue index 9758972..7a3a7ae 100644 --- a/src/login-sub/inviteCode.vue +++ b/src/login-sub/inviteCode.vue @@ -23,8 +23,8 @@ v-model="formData.name" placeholder="请输入姓名" confirm-type="done" - placeholder-style="color:#BABABA;font-size:28rpx;" - class="text-start w-[140rpx]" + placeholder-style="color:#BABABA;font-size:28rpx;text-align:right;" + class="text-right w-[140rpx]" /> @@ -63,8 +63,8 @@ v-model="formData.school" placeholder="请输入您的就读学校" confirm-type="done" - placeholder-style="color:#BABABA;font-size:28rpx;" - class="text-start w-[252rpx]" + placeholder-style="color:#BABABA;font-size:28rpx;text-align:right;" + class="text-right w-[252rpx]" /> @@ -132,6 +132,7 @@ const handleSubmit = () => { inviteCode: formData.value.invitedCode, }).then((resp) => { if (resp.code === 200) { + userStore.setEstimatedAchievement({ init: true }) uni.switchTab({ url: '/pages/home/index/index', }) @@ -150,7 +151,6 @@ const handleInviteCode = () => { verifyInviteCode({ code: formData.value.invitedCode }).then((resp) => { if (resp.code === 200) { invitedCodeFlag.value = resp.result as boolean - userStore.setEstimatedAchievement({ init: true }) } }) } else { @@ -166,11 +166,6 @@ const handleLogout = () => { const instance = getCurrentInstance() onUnload(() => { - console.log( - ' userStore.userInfo.estimatedAchievement.init', - userStore.userInfo.estimatedAchievement.init, - ) - if (!userStore.userInfo.estimatedAchievement.init) { handleLogout() } diff --git a/src/pages-sub/components/Slider.vue b/src/pages-sub/components/Slider.vue index 249caf6..ebd1dac 100644 --- a/src/pages-sub/components/Slider.vue +++ b/src/pages-sub/components/Slider.vue @@ -79,7 +79,7 @@ const props = defineProps({ }, max: { type: Number, - default: 100, + default: 200, }, step: { type: Number, diff --git a/src/pages-sub/components/input/SearchInput.vue b/src/pages-sub/components/input/SearchInput.vue index 87a7edc..853df00 100644 --- a/src/pages-sub/components/input/SearchInput.vue +++ b/src/pages-sub/components/input/SearchInput.vue @@ -1,7 +1,5 @@