From c53cc1010161aad0fa95e5e5ea3c57bfb7f37c26 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Fri, 21 Jul 2023 12:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=9B=E9=80=89=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/apartment/seachModule.vue | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/apartment/seachModule.vue b/src/components/apartment/seachModule.vue index b5bb027..0e43d59 100644 --- a/src/components/apartment/seachModule.vue +++ b/src/components/apartment/seachModule.vue @@ -18,7 +18,7 @@ popper-style="background: transparent;padding:0;box-shadow: none;border: none;transform: translateX(50px);">
@@ -43,7 +43,7 @@
-
+
搜索
@@ -252,15 +252,23 @@ const rentInput = () => clearingAmountState = false // 点击历史搜索和热门推荐 const handleKeyword = value => { - + // pitchValue.value['keyword'] = value - console.log(pitchValue.value['keyword'], "pitchValue.value['keyword']"); + // console.log(pitchValue.value['keyword'], "pitchValue.value['keyword']"); - return - if (!value) value = pitchValue.value['keyword'] + // return + // if (!value) pitchValue.value['keyword'] + // console.log(value, "value"); + // return + console.log("pitchValue.value['keyword']", pitchValue.value['keyword']); router.push(`/seachPage?keyword=${value}`) + + if (historyArr.value.indexOf(value) == -1 && value) { + historyArr.value.unshift(value) + storingHistory() + } // seachList() } @@ -336,8 +344,7 @@ const selectOption = (type, value) => { } .seach-box-bg { - background: #d7d7d7 !important; - background: inherit; + background: #d7d7d7; border-radius: 16px; -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529); -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);