Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -28,7 +28,8 @@
|
|||||||
<div class="title">历史搜索</div>
|
<div class="title">历史搜索</div>
|
||||||
<div class="info-box">
|
<div class="info-box">
|
||||||
<div :class="flexacenter" v-for="(item, i) in historyArr" :key="i"
|
<div :class="flexacenter" v-for="(item, i) in historyArr" :key="i"
|
||||||
class="btn" @click="handleKeyword(item)">{{ item }}
|
class="btn flexacenter" @click="handleKeyword(item)">
|
||||||
|
<div class="flexflex">{{ item }}</div>
|
||||||
<img class="btn-icon" src="../../assets/homeImage/closeIcon.svg"
|
<img class="btn-icon" src="../../assets/homeImage/closeIcon.svg"
|
||||||
@click.stop="deleteSeachVal(i)" alt="">
|
@click.stop="deleteSeachVal(i)" alt="">
|
||||||
<img>
|
<img>
|
||||||
@@ -66,7 +67,7 @@
|
|||||||
<template #reference>
|
<template #reference>
|
||||||
<div class="tool-btn consult-btn flexcenter">
|
<div class="tool-btn consult-btn flexcenter">
|
||||||
<img class="consult-icon" src="@/assets/img/publicImage/consult-icon.png">
|
<img class="consult-icon" src="@/assets/img/publicImage/consult-icon.png">
|
||||||
咨询小助手
|
咨询方同学
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="consult-pop flexacenter">
|
<div class="consult-pop flexacenter">
|
||||||
@@ -318,6 +319,12 @@ const selectOption = (type, value) => {
|
|||||||
emit('handleTransfer', pitchValue)
|
emit('handleTransfer', pitchValue)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//删除历史记录
|
||||||
|
let deleteSeachVal = (i) => {
|
||||||
|
historyArr.value.splice(i, 1)
|
||||||
|
localStorage.setItem('historyArr', JSON.stringify(historyArr.value));
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
* {
|
* {
|
||||||
@@ -737,9 +744,20 @@ const selectOption = (type, value) => {
|
|||||||
margin: 20px 30px 0 0;
|
margin: 20px 30px 0 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
position: relative;
|
||||||
|
&:hover .btn-icon {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-icon {
|
.btn-icon {
|
||||||
margin-left: 5px;
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: -16px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
margin-left: 6px;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<div class="tab-item mg-l-8 flexacenter" v-if="data.gender">
|
<div class="tab-item mg-l-8 flexacenter" v-if="data.gender">
|
||||||
{{ listData.gender[data.gender] }}
|
{{ listData.gender[data.gender] }}
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-item mg-l-8 flexacenter" v-if="data.rentalduration != ''">
|
<div class="tab-item mg-l-8 flexacenter" v-if="data.rentalduration != '' && data.rentalduration != null">
|
||||||
{{ data.rentalduration == 0 ? '租期不限' : listData['rentalduration'][data.rentalduration] }}
|
{{ data.rentalduration == 0 ? '租期不限' : listData['rentalduration'][data.rentalduration] }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,7 @@
|
|||||||
<listBtmPrompt></listBtmPrompt>
|
<listBtmPrompt></listBtmPrompt>
|
||||||
<footerTool></footerTool>
|
<footerTool></footerTool>
|
||||||
</div>
|
</div>
|
||||||
<!-- 右下角咨询 -->
|
|
||||||
<circle-btn></circle-btn>
|
|
||||||
|
|
||||||
<back-to-top></back-to-top>
|
<back-to-top></back-to-top>
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
<footerTool></footerTool>
|
<footerTool></footerTool>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 右下角咨询 -->
|
|
||||||
<circle-btn></circle-btn>
|
|
||||||
<back-to-top></back-to-top>
|
<back-to-top></back-to-top>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -17,9 +17,6 @@
|
|||||||
<footerTool></footerTool>
|
<footerTool></footerTool>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 右下角咨询 -->
|
|
||||||
<circle-btn></circle-btn>
|
|
||||||
|
|
||||||
<back-to-top></back-to-top>
|
<back-to-top></back-to-top>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user