修改筛选判断
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
popper-style="background: transparent;padding:0;box-shadow: none;border: none;transform: translateX(50px);">
|
popper-style="background: transparent;padding:0;box-shadow: none;border: none;transform: translateX(50px);">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-input class="search-input" v-model="pitchValue['keyword']" placeholder="搜索房源或输入房源ID"
|
<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>
|
</template>
|
||||||
<div class="dis-f al-item pos-r">
|
<div class="dis-f al-item pos-r">
|
||||||
<div class="seach-hiosory-box scrollbar" :class="{ 'seach-history-h': historyShow }">
|
<div class="seach-hiosory-box scrollbar" :class="{ 'seach-history-h': historyShow }">
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</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="">
|
<img src="../../assets/homeImage/seachImg.svg" class="img" alt="">
|
||||||
搜索
|
搜索
|
||||||
</div>
|
</div>
|
||||||
@@ -255,12 +255,20 @@ const handleKeyword = value => {
|
|||||||
|
|
||||||
// pitchValue.value['keyword'] = value
|
// pitchValue.value['keyword'] = value
|
||||||
|
|
||||||
console.log(pitchValue.value['keyword'], "pitchValue.value['keyword']");
|
// console.log(pitchValue.value['keyword'], "pitchValue.value['keyword']");
|
||||||
|
|
||||||
return
|
// return
|
||||||
if (!value) value = pitchValue.value['keyword']
|
// if (!value) pitchValue.value['keyword']
|
||||||
|
// console.log(value, "value");
|
||||||
|
|
||||||
|
// return
|
||||||
|
console.log("pitchValue.value['keyword']", pitchValue.value['keyword']);
|
||||||
router.push(`/seachPage?keyword=${value}`)
|
router.push(`/seachPage?keyword=${value}`)
|
||||||
|
|
||||||
|
if (historyArr.value.indexOf(value) == -1 && value) {
|
||||||
|
historyArr.value.unshift(value)
|
||||||
|
storingHistory()
|
||||||
|
}
|
||||||
// seachList()
|
// seachList()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -336,8 +344,7 @@ const selectOption = (type, value) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.seach-box-bg {
|
.seach-box-bg {
|
||||||
background: #d7d7d7 !important;
|
background: #d7d7d7;
|
||||||
background: inherit;
|
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
-moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
|
-moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
|
||||||
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
|
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.117647058823529);
|
||||||
|
|||||||
Reference in New Issue
Block a user