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);