修改筛选判断
This commit is contained in:
parent
0227cf6db2
commit
c53cc10101
@ -18,7 +18,7 @@
|
||||
popper-style="background: transparent;padding:0;box-shadow: none;border: none;transform: translateX(50px);">
|
||||
<template #reference>
|
||||
<el-input class="search-input" v-model="pitchValue['keyword']" placeholder="搜索房源或输入房源ID"
|
||||
@keyup.enter='handleKeyword' style="height:48px;width:460px;"></el-input>
|
||||
@keyup.enter='handleKeyword(pitchValue["keyword"])' style="height:48px;width:460px;"></el-input>
|
||||
</template>
|
||||
<div class="dis-f al-item pos-r">
|
||||
<div class="seach-hiosory-box scrollbar" :class="{ 'seach-history-h': historyShow }">
|
||||
@ -43,7 +43,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</el-popover>
|
||||
<div class="seach-btn dis-f al-item jus-x" @click="handleKeyword">
|
||||
<div class="seach-btn dis-f al-item jus-x" @click="handleKeyword(pitchValue['keyword'])">
|
||||
<img src="../../assets/homeImage/seachImg.svg" class="img" alt="">
|
||||
搜索
|
||||
</div>
|
||||
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user