添加学校添加不限 样式修改

This commit is contained in:
2023-08-03 17:38:45 +08:00
parent d64eec5ea4
commit 137e63c12d
2 changed files with 53 additions and 33 deletions

View File

@@ -50,7 +50,8 @@
<img src="../assets/homeImage/mapImg.png" class="img" alt="">
地图找房
</div> -->
<div class="tool-btn dis-f jus-x al-item add-btn" :class="{'mg-l-10':routePath==='/'}" style="position: relative;">
<div class="tool-btn dis-f jus-x al-item add-btn" :class="{ 'mg-l-10': routePath === '/' }"
style="position: relative;">
<img src="../../assets/homeImage/addBtn.png" class="img" alt="">
发布房源
<choosing-identity></choosing-identity>
@@ -175,7 +176,7 @@ let seachList = (item) => {
historyArr.data.unshift(seachAllType.keyword)
}
localStorage.setItem('historyArr', JSON.stringify(historyArr.data));
sessionStorage.setItem('houseingPageType',routePath.value === '/needHousing' ? '6' : routePath.value === '/intermediaryHousing' ? '1' : routePath.value === '/personHousing' ? '0' : '0')
sessionStorage.setItem('houseingPageType', routePath.value === '/needHousing' ? '6' : routePath.value === '/intermediaryHousing' ? '1' : routePath.value === '/personHousing' ? '0' : '0')
route.push({
path: '/seachPage',
query: {
@@ -186,7 +187,7 @@ let seachList = (item) => {
}
//设置搜索数据
let setSeachConditions = (type, data,second=null) => {
let setSeachConditions = (type, data, second = null) => {
if (type === 'rent') {
seachAllType['rent_min'] = data.min
seachAllType['rent_max'] = data.max
@@ -204,8 +205,8 @@ let setSeachConditions = (type, data,second=null) => {
if (type === 'location') {
seachAllType.school = ''
}
if(second){
seachAllType[second.type]=second.id
if (second) {
seachAllType[second.type] = second.id
}
// console.log('seachAllType', seachAllType)
// return
@@ -286,7 +287,7 @@ defineExpose({
border-radius: 10px;
}
.btn-qrcode .QR-code{
.btn-qrcode .QR-code {
position: absolute;
width: 100px;
height: 110px;
@@ -444,6 +445,11 @@ defineExpose({
line-height: 48px;
cursor: pointer;
transform: translateX(-3px);
font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
font-weight: 400;
font-style: normal;
font-size: 16px;
color: #000000;
}
.img {
@@ -463,8 +469,9 @@ defineExpose({
margin-left: 20px;
cursor: pointer;
}
.mg-l-10{
margin-left:10px;
.mg-l-10 {
margin-left: 10px;
}
.tool-btn {