个人/中介房源 求房源页面

This commit is contained in:
2023-07-18 16:30:48 +08:00
parent eb1bed2973
commit d1d1bf3e18
14 changed files with 561 additions and 157 deletions

View File

@@ -6,7 +6,8 @@
<img src="../../assets/homeImage/topTitleIcon.svg"
v-show="!checkList.list || (checkList.list && !checkList.list.length)" class="img" alt="">
<div class="none-btn" v-show="(checkList.list && checkList.list.length)"></div>
<span :class="[(checkList.list && checkList.list.length) ? 'none-title' : 'title']">不限</span>
<span :class="[(checkList.list && checkList.list.length) ? 'none-title' : 'title']">不限
</span>
</div>
<div style="padding-top:10px;">
<el-checkbox-group v-model="checkList.list">
@@ -47,6 +48,10 @@ const props = defineProps({
default:()=>{
return ()=>{}
}
},
clearList:{
type:Boolean,
default:true
}
})
let list =reactive([])
@@ -64,7 +69,7 @@ watchEffect(() => {
list.splice(0,list.length)
list.push(...props.list)
// console.log(show)
if(show){
if(show&&props.clearList){
checkList.list=[]
}
})
@@ -75,7 +80,7 @@ watch(()=>checkList.list,(nval,avl)=>{
//取消
let closeBtn=()=>{
checkList.list.splice(0,checkList.list.length)
// checkList.list.splice(0,checkList.list.length)
closeSeach()
}