4.6新样式
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div class="dis-f jus-x al-item" style="position: relative; z-index: 333;">
|
||||
<div class="dis-f jus-x al-item" style="position: relative; z-index: 333">
|
||||
<div class="body-maxWidth" :class="{ seachPage: !props.seachPage }">
|
||||
<div class="s-w-100 seach-box-bg">
|
||||
<div class="seach-box">
|
||||
<div class="top-seach dis-f al-item" v-if="props.seachPage">
|
||||
<div style="position: absolute; left: -8px; top: 20px;">
|
||||
<div style="position: absolute; left: -8px; top: 20px">
|
||||
<div class="location-box dis-f jus-x al-item">
|
||||
<img src="../../assets/homeImage/addressImg.png" class="img" alt="" />
|
||||
香港
|
||||
@@ -15,18 +15,17 @@
|
||||
<div class="flexacenter seek-input">
|
||||
<el-popover v-model:visible="historyShow" placement="bottom" :width="560" trigger="click" :show-arrow="false" 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(pitchValue['keyword'])" style="height: 40px; width: 460px;" maxlength="15"></el-input>
|
||||
<el-input class="search-input" v-model="pitchValue['keyword']" placeholder="搜索房源或输入房源ID" @keyup.enter="handleKeyword(pitchValue['keyword'])" style="height: 40px; width: 460px" maxlength="15"></el-input>
|
||||
</template>
|
||||
<div class="dis-f al-item pos-r">
|
||||
<div class="seach-hiosory-box scrollbar">
|
||||
<div class="seach-history-info">
|
||||
<div v-if="historyArr.length != 0" style="margin-bottom: 30px;">
|
||||
<div v-if="historyArr.length != 0" style="margin-bottom: 30px">
|
||||
<div class="title">历史搜索</div>
|
||||
<div class="info-box">
|
||||
<div :class="flexacenter" v-for="(item, i) in historyArr" :key="i" class="btn flexacenter" @click="handleKeyword(item)">
|
||||
<div class="flexflex">{{ item }}</div>
|
||||
<img class="btn-icon" src="../../assets/homeImage/closeIcon.svg" @click.stop="deleteSeachVal(i)" alt="" />
|
||||
<img />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -46,8 +45,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tool-btn dis-f jus-x al-item add-btn" style="position: relative;">
|
||||
<img style="margin-right: 5px;" src="../../assets/homeImage/addBtn.png" class="img" alt="" />
|
||||
<div class="tool-btn dis-f jus-x al-item add-btn" style="position: relative">
|
||||
<img style="margin-right: 5px" src="../../assets/homeImage/addBtn.png" class="img" alt="" />
|
||||
发布房源
|
||||
<choosing-identity></choosing-identity>
|
||||
</div>
|
||||
@@ -75,7 +74,7 @@
|
||||
<!-- 展示的 展开和隐藏按钮 -->
|
||||
<div class="screen-btn flexcenter" v-if="state == 'pack'" @click="state = 'unfold'">
|
||||
<b>筛选</b>
|
||||
<div class="screen-btn-text" style="margin-left: 0;">:学校附近</div>
|
||||
<div class="screen-btn-text" style="margin-left: 0">:学校附近</div>
|
||||
|
|
||||
<div class="screen-btn-text">品牌</div>
|
||||
|
|
||||
@@ -88,35 +87,105 @@
|
||||
</div>
|
||||
|
||||
<div class="option-area flexflex" :class="{ 'option-area-unfold': state == 'unfold' }">
|
||||
<div class="option-left">
|
||||
<div class="option-item flexflex" style="padding-bottom: 10px;">
|
||||
<div class="option-title">学校附近</div>
|
||||
<div class="option-box flexflex flex1">
|
||||
<div class="item flexcenter" :class="{ pitch: 0 == pitchValue['school'] }" @click="selectOption('nearSchool', 0)">不限</div>
|
||||
<div class="item flexcenter" v-for="(item, index) in nearSchoolList" :key="index" :class="{ pitch: item['id'] == pitchValue['school'] }" @click="selectOption('nearSchool', item.id)">{{ item["name"] }}</div>
|
||||
</div>
|
||||
<div class="option-item flexflex" style="padding-bottom: 15px">
|
||||
<div class="option-title">学校附近</div>
|
||||
<div class="option-box flexflex flex1">
|
||||
<div class="school-item flexcenter" :class="{ pitch: 0 == pitchValue['school'] }" @click="selectOption('nearSchool', 0)">不限</div>
|
||||
<div class="school-item flexcenter" v-for="(item, index) in nearSchoolList" :key="index" :class="{ pitch: item['id'] == pitchValue['school'] }" @click="selectOption('nearSchool', item.id)">{{ item["name"] }}</div>
|
||||
</div>
|
||||
<div class="option-item flexflex" style="padding-top: 20px;">
|
||||
<div class="option-title flexacenter">租金</div>
|
||||
<div class="option-box flexacenter flex1 option-input-box">
|
||||
<div class="flex1"><input class="option-input" type="number" v-model="pitchValue['rent_min']" @blur="rentBlur" @input="rentInput" @keyup.enter="rentBlur" /><span style="font-size: 18px;">~</span><input class="option-input" type="number" v-model="pitchValue['rent_max']" @blur="rentBlur" @input="rentInput" @keyup.enter="rentBlur" />HK$/月</div>
|
||||
|
||||
<div class="eliminate flexcenter" @click="clearingAmount" v-if="pitchValue['rent_min'] || pitchValue['rent_max']">
|
||||
<img class="eliminate-icon" src="@/assets/img/publicImage/round-fork.svg" />
|
||||
清除金额
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="option-item flexflex">
|
||||
<div class="option-title">房型</div>
|
||||
<div class="option-box flexflex flex1">
|
||||
<div class="item flexcenter" :class="{ pitch: 0 == pitchValue['roomtype'] }" @click="selectOption('roomType', 0)">不限</div>
|
||||
<div class="item flexcenter" :class="{ pitch: item['id'] == pitchValue['roomtype'] }" v-for="(item, index) in roomTypeList" :key="index" @click="selectOption('roomType', item.id)">{{ item["name"] }}</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="option-right">
|
||||
<div class="option-item flexflex" style="padding-bottom: 15px">
|
||||
<div class="option-title">标签筛选</div>
|
||||
<div class="option-box flexflex flex1">
|
||||
<div class="school-item flexcenter" :class="{ pitch: 0 == pitchValue['school'] }" @click="selectOption('nearSchool', 0)">不限</div>
|
||||
<div class="school-item flexcenter" v-for="(item, index) in nearSchoolList" :key="index" :class="{ pitch: item['id'] == pitchValue['school'] }" @click="selectOption('nearSchool', item.id)">{{ item["name"] }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-item flexflex" :class="{ 'show-eliminate': pitchValue['rent_min'] || pitchValue['rent_max'] }" style="padding-bottom: 23px">
|
||||
<div class="option-title flexacenter">租金</div>
|
||||
<div class="option-box flexacenter option-input-box" style="white-space: nowrap">
|
||||
<div class="flex1"><input class="option-input" type="number" v-model="pitchValue['rent_min']" @blur="rentBlur" @input="rentInput" @keyup.enter="rentBlur" /><span style="font-size: 18px">~</span><input class="option-input" type="number" v-model="pitchValue['rent_max']" @blur="rentBlur" @input="rentInput" @keyup.enter="rentBlur" />HK$/月</div>
|
||||
|
||||
<div class="eliminate flexcenter" @click="clearingAmount" v-if="pitchValue['rent_min'] || pitchValue['rent_max']">
|
||||
<img class="eliminate-icon" src="@/assets/img/publicImage/round-fork.svg" />
|
||||
清除金额
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fill"></div>
|
||||
|
||||
<div class="option-title flexacenter">品牌</div>
|
||||
|
||||
<div class="option-box flexacenter">
|
||||
<el-dropdown trigger="click" popper-class="option-dropdown-box">
|
||||
<div class="option-dropdown flexacenter">
|
||||
<span class="option-dropdown-value ellipsis">{{ brandKey[pitchValue["companyid"]] || "不限" }}</span>
|
||||
<img class="option-dropdown-img" src="@/assets/img/publicImage/arrow-black-down.svg" />
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :class="{ pitch: 0 == pitchValue['companyid'] }" @click="selectOption('brand', 0)">
|
||||
<div class="dropdown-value">不限</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :class="{ pitch: item.id == pitchValue['companyid'] }" v-for="(item, index) in brandList" :key="index" @click="selectOption('brand', item.id)">
|
||||
<div class="dropdown-value">{{ item["name"] }}</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
|
||||
<div class="fill"></div>
|
||||
|
||||
<div class="option-title flexacenter">房型</div>
|
||||
<div class="option-box flexacenter flex1">
|
||||
<el-dropdown trigger="click" popper-class="option-dropdown-box">
|
||||
<div class="option-dropdown flexacenter">
|
||||
<span class="option-dropdown-value ellipsis">{{ roomTypeKey[pitchValue["roomtype"]] || "不限" }}</span>
|
||||
<img class="option-dropdown-img" src="@/assets/img/publicImage/arrow-black-down.svg" />
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :class="{ pitch: 0 == pitchValue['roomtype'] }" @click="selectOption('roomType', 0)">
|
||||
<div class="dropdown-value">不限</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :class="{ pitch: item.id == pitchValue['roomtype'] }" v-for="(item, index) in roomTypeList" :key="index" @click="selectOption('roomType', item.id)">
|
||||
<div class="dropdown-value">{{ item["name"] }}</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
|
||||
<div class="fill"></div>
|
||||
|
||||
<div class="option-title flexacenter">楼型</div>
|
||||
<div class="option-box flexacenter flex1">
|
||||
<el-dropdown trigger="click" popper-class="option-dropdown-box">
|
||||
<div class="option-dropdown flexacenter">
|
||||
<span class="option-dropdown-value ellipsis">{{ roomlistingsKey[pitchValue["roomlistings"]] || "不限" }}</span>
|
||||
<img class="option-dropdown-img" src="@/assets/img/publicImage/arrow-black-down.svg" />
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :class="{ pitch: 0 == pitchValue['roomlistings'] }" @click="selectOption('roomlistings', 0)">
|
||||
<div class="dropdown-value">不限</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :class="{ pitch: item.id == pitchValue['roomlistings'] }" v-for="(item, index) in roomlistingsList" :key="index" @click="selectOption('roomlistings', item.id)">
|
||||
<div class="dropdown-value">{{ item["name"] }}</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</div>
|
||||
<div class="option-right" v-if="false">
|
||||
<div class="option-item flexflex">
|
||||
<div class="option-title flexacenter">品牌</div>
|
||||
<div class="option-box flexacenter flex1">
|
||||
@@ -127,11 +196,11 @@
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :class="{ 'pitch': 0 == pitchValue['companyid'] }" @click="selectOption('brand', 0)">
|
||||
<el-dropdown-item :class="{ pitch: 0 == pitchValue['companyid'] }" @click="selectOption('brand', 0)">
|
||||
<div class="dropdown-value">不限</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :class="{ 'pitch': item.id == pitchValue['companyid'] }" v-for="(item, index) in brandList" :key="index" @click="selectOption('brand', item.id)">
|
||||
<el-dropdown-item :class="{ pitch: item.id == pitchValue['companyid'] }" v-for="(item, index) in brandList" :key="index" @click="selectOption('brand', item.id)">
|
||||
<div class="dropdown-value">{{ item["name"] }}</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
@@ -151,11 +220,11 @@
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :class="{ 'pitch': 0 == pitchValue['roomtype'] }" @click="selectOption('roomType', 0)">
|
||||
<el-dropdown-item :class="{ pitch: 0 == pitchValue['roomtype'] }" @click="selectOption('roomType', 0)">
|
||||
<div class="dropdown-value">不限</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :class="{ 'pitch': item.id == pitchValue['roomtype'] }" v-for="(item, index) in roomTypeList" :key="index" @click="selectOption('roomType', item.id)">
|
||||
<el-dropdown-item :class="{ pitch: item.id == pitchValue['roomtype'] }" v-for="(item, index) in roomTypeList" :key="index" @click="selectOption('roomType', item.id)">
|
||||
<div class="dropdown-value">{{ item["name"] }}</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
@@ -175,11 +244,11 @@
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :class="{ 'pitch': 0 == pitchValue['roomlistings'] }" @click="selectOption('roomlistings', 0)">
|
||||
<el-dropdown-item :class="{ pitch: 0 == pitchValue['roomlistings'] }" @click="selectOption('roomlistings', 0)">
|
||||
<div class="dropdown-value">不限</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :class="{ 'pitch': item.id == pitchValue['roomlistings'] }" v-for="(item, index) in roomlistingsList" :key="index" @click="selectOption('roomlistings', item.id)">
|
||||
<el-dropdown-item :class="{ pitch: item.id == pitchValue['roomlistings'] }" v-for="(item, index) in roomlistingsList" :key="index" @click="selectOption('roomlistings', item.id)">
|
||||
<div class="dropdown-value">{{ item["name"] }}</div>
|
||||
<img class="dropdown-icon" src="@/assets/img/publicImage/tick-green.svg" />
|
||||
</el-dropdown-item>
|
||||
@@ -225,17 +294,17 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, toRefs, computed, watchEffect, reactive, defineProps, nextTick } from "vue"
|
||||
import { useStore } from "vuex"
|
||||
import store from "../../store/index"
|
||||
import { useRoute, useRouter } from "vue-router"
|
||||
import choosingIdentity from "@/components/edit/choosingIdentity.vue"
|
||||
import { ref, toRefs, computed, watchEffect, reactive, defineProps, nextTick } from "vue";
|
||||
import { useStore } from "vuex";
|
||||
import store from "../../store/index";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import choosingIdentity from "@/components/edit/choosingIdentity.vue";
|
||||
|
||||
const usestore = useStore()
|
||||
const { wechat } = toRefs(usestore.state)
|
||||
const router = useRouter()
|
||||
const usestore = useStore();
|
||||
const { wechat } = toRefs(usestore.state);
|
||||
const router = useRouter();
|
||||
|
||||
const route = useRoute()
|
||||
const route = useRoute();
|
||||
|
||||
const props = defineProps({
|
||||
count: {
|
||||
@@ -249,32 +318,32 @@ const props = defineProps({
|
||||
initPitchValue: {
|
||||
type: Object,
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
const emit = defineEmits(["handleTransfer"])
|
||||
const emit = defineEmits(["handleTransfer"]);
|
||||
|
||||
let state = ref("unfold") // 筛选状态 unfold 展开 pack 收起
|
||||
let state = ref("unfold"); // 筛选状态 unfold 展开 pack 收起
|
||||
|
||||
//搜索框
|
||||
let historyShow = ref(false)
|
||||
let setHistoryShow = () => (historyShow.value = historyShow.value) // 修改历史记录框的显示状态 通过input的 焦点状态判断的
|
||||
let historyShow = ref(false);
|
||||
let setHistoryShow = () => (historyShow.value = historyShow.value); // 修改历史记录框的显示状态 通过input的 焦点状态判断的
|
||||
|
||||
let historyArr = ref([]) //历史查找记录
|
||||
let hotArr = reactive({ data: [] })
|
||||
let historyArr = ref([]); //历史查找记录
|
||||
let hotArr = reactive({ data: [] });
|
||||
|
||||
//获取历史搜索记录
|
||||
historyArr.value = JSON.parse(localStorage.getItem("historyArr")) || []
|
||||
historyArr.value = JSON.parse(localStorage.getItem("historyArr")) || [];
|
||||
|
||||
let nearSchoolList = reactive([{ name: "不限", id: 0 }]) //学校附近
|
||||
let nearSchoolList = reactive([{ name: "不限", id: 0 }]); //学校附近
|
||||
|
||||
let roomTypeList = reactive([]) // 房型
|
||||
let roomTypeKey = reactive([]) // 房型 键值对
|
||||
let roomTypeList = reactive([]); // 房型
|
||||
let roomTypeKey = reactive([]); // 房型 键值对
|
||||
|
||||
let roomlistingsList = reactive([]) // 楼型
|
||||
let roomlistingsKey = reactive([]) // 楼型 键值对
|
||||
let roomlistingsList = reactive([]); // 楼型
|
||||
let roomlistingsKey = reactive([]); // 楼型 键值对
|
||||
|
||||
let brandList = reactive([]) // 品牌数据
|
||||
let brandKey = reactive([]) // 品牌数据 键值对
|
||||
let brandList = reactive([]); // 品牌数据
|
||||
let brandKey = reactive([]); // 品牌数据 键值对
|
||||
|
||||
// 筛选条件
|
||||
let pitchValue = ref({
|
||||
@@ -285,102 +354,102 @@ let pitchValue = ref({
|
||||
school: 0,
|
||||
roomlistings: 0,
|
||||
keyword: "",
|
||||
})
|
||||
});
|
||||
|
||||
watchEffect(() => {
|
||||
// nearSchoolList = store.state.apartment.school || []
|
||||
nearSchoolList = store.state.schoolList || []
|
||||
roomTypeList = store.state.apartment.roomtype || []
|
||||
roomTypeKey = store.state.roomTypeKey || {}
|
||||
roomlistingsList = store.state.apartment.roomlistings || []
|
||||
roomlistingsKey = store.state.roomlistingsKey || {}
|
||||
brandList = store.state.apartment.brand || []
|
||||
brandKey = store.state.brandKey || {}
|
||||
hotArr.data = store.state.indexData.hotSearcheWords
|
||||
pitchValue.value = { ...pitchValue.value, ...props.initPitchValue }
|
||||
})
|
||||
nearSchoolList = store.state.schoolList || [];
|
||||
roomTypeList = store.state.apartment.roomtype || [];
|
||||
roomTypeKey = store.state.roomTypeKey || {};
|
||||
roomlistingsList = store.state.apartment.roomlistings || [];
|
||||
roomlistingsKey = store.state.roomlistingsKey || {};
|
||||
brandList = store.state.apartment.brand || [];
|
||||
brandKey = store.state.brandKey || {};
|
||||
hotArr.data = store.state.indexData.hotSearcheWords;
|
||||
pitchValue.value = { ...pitchValue.value, ...props.initPitchValue };
|
||||
});
|
||||
|
||||
if (route.query["companyid"]) {
|
||||
pitchValue.value["companyid"] = route.query["companyid"]
|
||||
state.value = "unfold"
|
||||
pitchValue.value["companyid"] = route.query["companyid"];
|
||||
state.value = "unfold";
|
||||
}
|
||||
|
||||
// 是否点击里 清除金额按钮 因为输入金额后再点击清除按钮是会先请求有金额的列表
|
||||
let clearingAmountState = false
|
||||
let clearingAmountState = false;
|
||||
// 点击清除金额
|
||||
const clearingAmount = () => {
|
||||
clearingAmountState = true
|
||||
pitchValue.value["rent_min"] = null
|
||||
pitchValue.value["rent_max"] = null
|
||||
emit("handleTransfer", pitchValue)
|
||||
}
|
||||
clearingAmountState = true;
|
||||
pitchValue.value["rent_min"] = null;
|
||||
pitchValue.value["rent_max"] = null;
|
||||
emit("handleTransfer", pitchValue);
|
||||
};
|
||||
|
||||
// 金额的失去焦点事件
|
||||
const rentBlur = () => {
|
||||
setTimeout(() => {
|
||||
if (!clearingAmountState) emit("handleTransfer", pitchValue)
|
||||
}, 300)
|
||||
}
|
||||
if (!clearingAmountState) emit("handleTransfer", pitchValue);
|
||||
}, 300);
|
||||
};
|
||||
|
||||
// 搜索框输入中
|
||||
const rentInput = () => (clearingAmountState = false)
|
||||
const rentInput = () => (clearingAmountState = false);
|
||||
|
||||
// 点击历史搜索和热门推荐
|
||||
const handleKeyword = value => {
|
||||
sessionStorage.setItem("houseingPageType", "")
|
||||
router.push(`/seachPage?keyword=${value}`)
|
||||
const handleKeyword = (value) => {
|
||||
sessionStorage.setItem("houseingPageType", "");
|
||||
router.push(`/seachPage?keyword=${value}`);
|
||||
if (historyArr.value.indexOf(value) == -1 && value) {
|
||||
historyArr.value.unshift(value)
|
||||
storingHistory()
|
||||
historyArr.value.unshift(value);
|
||||
storingHistory();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//搜索数据
|
||||
let seachList = () => {
|
||||
if (historyArr.value.indexOf(pitchValue.value["keyword"] && pitchValue.value["keyword"]) == -1) {
|
||||
historyArr.value.unshift(pitchValue.value["keyword"])
|
||||
storingHistory()
|
||||
historyArr.value.unshift(pitchValue.value["keyword"]);
|
||||
storingHistory();
|
||||
}
|
||||
|
||||
historyShow.value = false
|
||||
historyShow.value = false;
|
||||
|
||||
emit("handleTransfer", pitchValue)
|
||||
}
|
||||
emit("handleTransfer", pitchValue);
|
||||
};
|
||||
|
||||
// 存储历史记录 并判断长度
|
||||
const storingHistory = () => {
|
||||
if (historyArr.value.length > 10) historyArr.value = historyArr.value.slice(0, 10)
|
||||
localStorage.setItem("historyArr", JSON.stringify(historyArr.value))
|
||||
}
|
||||
if (historyArr.value.length > 10) historyArr.value = historyArr.value.slice(0, 10);
|
||||
localStorage.setItem("historyArr", JSON.stringify(historyArr.value));
|
||||
};
|
||||
|
||||
// 选择选项
|
||||
const selectOption = (type, value) => {
|
||||
switch (type) {
|
||||
case "nearSchool":
|
||||
pitchValue.value["school"] = value
|
||||
break
|
||||
pitchValue.value["school"] = value;
|
||||
break;
|
||||
case "roomType":
|
||||
pitchValue.value["roomtype"] = value
|
||||
break
|
||||
pitchValue.value["roomtype"] = value;
|
||||
break;
|
||||
case "brand":
|
||||
pitchValue.value["companyid"] = value
|
||||
break
|
||||
pitchValue.value["companyid"] = value;
|
||||
break;
|
||||
case "roomlistings":
|
||||
pitchValue.value["roomlistings"] = value
|
||||
break
|
||||
pitchValue.value["roomlistings"] = value;
|
||||
break;
|
||||
default:
|
||||
break
|
||||
break;
|
||||
}
|
||||
nextTick(() => {
|
||||
emit("handleTransfer", pitchValue)
|
||||
})
|
||||
}
|
||||
emit("handleTransfer", pitchValue);
|
||||
});
|
||||
};
|
||||
|
||||
//删除历史记录
|
||||
let deleteSeachVal = i => {
|
||||
historyArr.value.splice(i, 1)
|
||||
localStorage.setItem("historyArr", JSON.stringify(historyArr.value))
|
||||
}
|
||||
let deleteSeachVal = (i) => {
|
||||
historyArr.value.splice(i, 1);
|
||||
localStorage.setItem("historyArr", JSON.stringify(historyArr.value));
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
* {
|
||||
@@ -449,9 +518,10 @@ let deleteSeachVal = i => {
|
||||
border-radius: 16px;
|
||||
|
||||
.top-seach {
|
||||
padding: 20px;
|
||||
// padding: 20px;
|
||||
position: relative;
|
||||
justify-content: end;
|
||||
padding: 23px 20px 24px;
|
||||
|
||||
.intermediary-btn {
|
||||
background: rgba(241, 245, 247, 1);
|
||||
@@ -636,7 +706,8 @@ let deleteSeachVal = i => {
|
||||
.quantity {
|
||||
color: #555555;
|
||||
font-size: 15px;
|
||||
height: 72px;
|
||||
// height: 72px;
|
||||
height: 64px;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
|
||||
.b {
|
||||
@@ -652,6 +723,7 @@ let deleteSeachVal = i => {
|
||||
overflow: hidden;
|
||||
// height: 0;
|
||||
transition: height 0.25s linear 0s;
|
||||
padding-top: 22px;
|
||||
|
||||
&.option-area-unfold {
|
||||
// height: 335px;
|
||||
@@ -659,101 +731,149 @@ let deleteSeachVal = i => {
|
||||
border-bottom: 1px solid #ebebeb;
|
||||
}
|
||||
|
||||
.option-left,
|
||||
.option-right {
|
||||
width: 600px;
|
||||
// .option-left,
|
||||
// .option-right {
|
||||
// width: 600px;
|
||||
|
||||
&:not(:last-of-type) {
|
||||
border-right: 1px #ebebeb dotted;
|
||||
// &:not(:last-of-type) {
|
||||
// border-right: 1px #ebebeb dotted;
|
||||
// }
|
||||
|
||||
.option-item {
|
||||
// width: 540px;
|
||||
// padding-top: 24px;
|
||||
padding-bottom: 20px;
|
||||
margin: 0 0 0 20px;
|
||||
|
||||
// &:not(:last-of-type) {
|
||||
// border-bottom: 1px #ebebeb dotted;
|
||||
// }
|
||||
|
||||
.option-title {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
width: 61px;
|
||||
padding: 0 2px;
|
||||
line-height: 30px;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
margin-right: 20px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.option-item {
|
||||
// width: 540px;
|
||||
padding-top: 24px;
|
||||
padding-bottom: 20px;
|
||||
margin: 0 30px 0 20px;
|
||||
|
||||
&:not(:last-of-type) {
|
||||
border-bottom: 1px #ebebeb dotted;
|
||||
}
|
||||
|
||||
.option-title {
|
||||
font-size: 14px;
|
||||
color: #b5b5b5;
|
||||
width: 90px;
|
||||
line-height: 30px;
|
||||
&.show-eliminate {
|
||||
.wid22 {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.option-box {
|
||||
flex-wrap: wrap;
|
||||
.option-dropdown {
|
||||
width: 145x;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
padding: 5px 10px;
|
||||
.wid22 {
|
||||
width: 12px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.option-box {
|
||||
flex-wrap: wrap;
|
||||
|
||||
.school-item {
|
||||
padding: 5px 10px;
|
||||
height: 30px;
|
||||
display: flex;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
line-height: 30px;
|
||||
border-radius: 10px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
cursor: pointer;
|
||||
border: 1px solid transparent;
|
||||
background-color: rgba(242, 242, 242, 1);
|
||||
color: #333333;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid rgba(235, 235, 235, 1);
|
||||
}
|
||||
|
||||
&.pitch {
|
||||
background-color: #50e3c2;
|
||||
color: #fff;
|
||||
border: 1px solid #50e3c2;
|
||||
}
|
||||
}
|
||||
|
||||
&.option-input-box {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
line-height: 20px;
|
||||
|
||||
.eliminate {
|
||||
width: 96px;
|
||||
height: 30px;
|
||||
display: flex;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
border-radius: 50px;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
line-height: 30px;
|
||||
border-radius: 10px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
cursor: pointer;
|
||||
color: #7f7f7f;
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
margin-left: 10px;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid rgba(235, 235, 235, 1);
|
||||
}
|
||||
|
||||
&.pitch {
|
||||
color: #50e3c2;
|
||||
border: 1px solid #50e3c2;
|
||||
background: #eefcf9;
|
||||
.eliminate-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
&.option-input-box {
|
||||
font-weight: 400;
|
||||
.option-input {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid rgba(179, 179, 179, 1);
|
||||
border-radius: 10px;
|
||||
// outline: none;
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
line-height: 20px;
|
||||
margin: 0 10px;
|
||||
padding: 10px;
|
||||
|
||||
.eliminate {
|
||||
width: 96px;
|
||||
height: 30px;
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
border-radius: 50px;
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
cursor: pointer;
|
||||
|
||||
.eliminate-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.option-input {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid rgba(179, 179, 179, 1);
|
||||
border-radius: 10px;
|
||||
// outline: none;
|
||||
font-size: 14px;
|
||||
margin: 0 10px;
|
||||
padding: 10px;
|
||||
.option-dropdown {
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
transition: all 0.3s;
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
border-radius: 10px;
|
||||
justify-content: space-between;
|
||||
padding-left: 12px;
|
||||
padding-right: 10px;
|
||||
cursor: pointer;
|
||||
background-color: rgba(246, 246, 246, 0);
|
||||
border: 1px solid rgba(179, 179, 179, 1);
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
.option-dropdown-value {
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.option-dropdown-img {
|
||||
width: 12px;
|
||||
height: 7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
.option-right {
|
||||
padding-top: 18px;
|
||||
@@ -920,7 +1040,8 @@ let deleteSeachVal = i => {
|
||||
border-radius: 65px;
|
||||
overflow: hidden;
|
||||
background-color: #f6f6f6;
|
||||
border: solid 1px var(--el-input-border-color, var(--el-border-color));
|
||||
border: solid 1px rgb(235, 235, 235);
|
||||
height: 40px;
|
||||
|
||||
::v-deep .el-input__wrapper {
|
||||
box-shadow: none;
|
||||
@@ -960,7 +1081,8 @@ let deleteSeachVal = i => {
|
||||
|
||||
<style lang="less">
|
||||
.el-popper.el-dropdown__popper.option-dropdown-box {
|
||||
width: 477px;
|
||||
width: 260px;
|
||||
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
border-radius: 10px;
|
||||
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.188235294117647);
|
||||
|
||||
@@ -1,82 +1,134 @@
|
||||
<template>
|
||||
<div class="item flexflex" @click="goapArtmentDetails">
|
||||
<div class="collect-box flexcenter" @click.stop="handleCollect1(item.uniqid)">
|
||||
<!-- <img v-if="item.iscollect == 0" class="collect-icon" style="width: 30px; height: 30px;" src="@/assets/img/apartmentDetail/collecting-shadows.svg" /> -->
|
||||
<!-- <img v-else class="collect-icon" src="@/assets/img/apartmentDetail/collecting-yellow-shadows.svg" /> -->
|
||||
<img v-if="item.iscollect == 0" class="collect-icon" src="@/assets/img/apartmentDetail/collect.jpg" />
|
||||
<img v-else class="collect-icon" src="@/assets/img/apartmentDetail/collect-star.jpg" />
|
||||
<img class="collect-icon" v-if="item.iscollect == 0" src="@/assets/img/publicImage/collect-icon.svg" />
|
||||
<img class="collect-icon" v-else src="@/assets/img/publicImage/collect-pitch-icon.svg" />
|
||||
<!-- <img v-if="item.iscollect == 0" class="collect-icon" src="@/assets/img/apartmentDetail/collect.jpg" /> -->
|
||||
<!-- <img v-else class="collect-icon" src="@/assets/img/apartmentDetail/collect-star.jpg" /> -->
|
||||
</div>
|
||||
<img class="img" v-lazy="item['image']" @load="loadload" />
|
||||
<div class="title">{{ item["title"] }}</div>
|
||||
<div class="img-box">
|
||||
<img class="gter-select" src="@/assets/img/publicImage/gter-select.png" />
|
||||
<div class="name flexflex">iRent佐敦一期公寓</div>
|
||||
<img class="img" v-lazy="item['image']" @load="loadload" />
|
||||
<div class="apartment-introduce flexacenter">
|
||||
<div class="remark-on flexacenter">
|
||||
<img class="fang-icon" src="https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-d_Zwocn3qqsgFptxhcq_cQnrld6YjDgwVBq_D-81qNDQyOQ~~" />
|
||||
方同学点评
|
||||
</div>
|
||||
<div class="remark-text flex1 ellipsis">交通和生活都非常便利,房间整洁完善交通和生活都非常便利,房间整洁完善交通和生活都非常便利,房间整洁完善</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="label-list flexacenter">
|
||||
<div class="label-item flexacenter blue">
|
||||
<img class="safety-icon" src="@/assets/img/publicImage/safety-icon.png" />
|
||||
实地考察
|
||||
</div>
|
||||
<div class="label-item flexacenter violet">费用全包</div>
|
||||
<div class="label-item flexacenter red">费用全包</div>
|
||||
<div class="label-item flexacenter">费用全包</div>
|
||||
<div class="label-item flexacenter">费用全包</div>
|
||||
<div class="label-item flexacenter">费用全包</div>
|
||||
<div class="label-item flexacenter">费用全包</div>
|
||||
</div>
|
||||
<!-- <div class="title">{{ item["title"] }}</div>
|
||||
<div class="hint">{{ item["propaganda"] }}</div>
|
||||
<div class="tab-box flexflex" v-if="item['tags']">
|
||||
<div class="tab-item flexcenter" v-for="(it, index) in item['tags'].split(',')" :key="index">{{ it }}</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="location flexacenter" v-if="item['address']">
|
||||
<img class="location-icon" src="@/assets/img/publicImage/location-icon.png" />
|
||||
<div class="ellipsis">{{ item["address"] }}</div>
|
||||
<span class="area-distance" v-if="pitchValue?.school && item['distance']">{{ Math.round(item["distance"] * 10) / 10 }}km</span>
|
||||
</div>
|
||||
|
||||
<div class="type-list" v-if="item['roomlist']">
|
||||
<div class="type-item flexacenter" v-for="(it, index) in item['roomlist']" :key="index">
|
||||
<div class="type-name flex1 ellipsis">{{ it["name"] }}</div>
|
||||
<div class="type-data flexacenter">
|
||||
<div class="unit">HK$</div>
|
||||
<div class="price">{{ it["price"] }}</div>
|
||||
/月
|
||||
<div class="distance flexflex">
|
||||
<div class="figure flexacenter">
|
||||
距离
|
||||
<div class="school">城大</div>
|
||||
<div class="mile">1.3km</div>
|
||||
</div>
|
||||
<!-- <span class="area-distance">1.36km</span> -->
|
||||
<div class="vehicle-list flex1 flexflex">
|
||||
<div class="vehicle-item flexacenter" v-for="item in 3" :key="index">
|
||||
<img class="vehicle-icon" src="@/assets/img/publicImage/walk-icon.png" />
|
||||
42min
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="type-quantity flexacenter">
|
||||
|
||||
<div class="collect-type flexacenter">
|
||||
<div class="collect flexacenter flex1">
|
||||
<img class="flame-icon" src="@/assets/img/publicImage/flame-icon.png" />
|
||||
近15天36人收藏
|
||||
</div>
|
||||
<div class="house-type flexacenter">
|
||||
共8个房型
|
||||
<img class="icon" src="@/assets/img/publicImage/arrow-return.svg" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="type-list" v-if="item['roomlist']">
|
||||
<div class="type-item flexacenter" v-for="(it, index) in item['roomlist']" :key="index">
|
||||
<div class="type-name flex1 ellipsis">{{ it["name"] }}</div>
|
||||
<div class="price flexflex">
|
||||
<div class="type-data flexacenter">
|
||||
<div class="unit">HK$</div>
|
||||
<div class="price">{{ it["price"] }}</div>
|
||||
/月
|
||||
</div>
|
||||
<div class="original-price">HK$8600/月</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="type-quantity flexacenter">
|
||||
共
|
||||
<div class="type-quantity-number">{{ item["roomnum"] }}</div>
|
||||
个房型
|
||||
<img class="black-arrow" src="@/assets/img/publicImage/black-arrow.svg" />
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue"
|
||||
import { useRoute, useRouter } from "vue-router"
|
||||
import { redirectToExternalWebsite } from "@/utils/util.js"
|
||||
const router = useRouter()
|
||||
import { ref } from "vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { redirectToExternalWebsite } from "@/utils/util.js";
|
||||
const router = useRouter();
|
||||
|
||||
const props = defineProps({
|
||||
item: Object,
|
||||
pitchValue: Object,
|
||||
masonryInstance: Object,
|
||||
})
|
||||
});
|
||||
|
||||
const emit = defineEmits(["handlecollect"])
|
||||
const emit = defineEmits(["handlecollect"]);
|
||||
|
||||
const goapArtmentDetails = () => {
|
||||
let url = `/apartmentDetail?uniqid=${props["item"].uniqid}`
|
||||
if (props?.pitchValue?.school) url += `&school=${props.pitchValue["school"]}`
|
||||
let url = `/apartmentDetail?uniqid=${props["item"].uniqid}`;
|
||||
if (props?.pitchValue?.school) url += `&school=${props.pitchValue["school"]}`;
|
||||
|
||||
redirectToExternalWebsite(url)
|
||||
}
|
||||
redirectToExternalWebsite(url);
|
||||
};
|
||||
|
||||
// 点击收藏后传过父组件
|
||||
const handleCollect1 = uniqid => emit("handlecollect", uniqid)
|
||||
const handleCollect1 = (uniqid) => emit("handlecollect", uniqid);
|
||||
const loadload = () => {
|
||||
props.masonryInstance && props.masonryInstance.reloadItems()
|
||||
props.masonryInstance && props.masonryInstance.layout()
|
||||
}
|
||||
props.masonryInstance && props.masonryInstance.reloadItems();
|
||||
props.masonryInstance && props.masonryInstance.layout();
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.item {
|
||||
// width: 386px;
|
||||
width: 288.75px;
|
||||
width: 385px;
|
||||
// width: 288.75px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
border-radius: 20px;
|
||||
-moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.156862745098039);
|
||||
-webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.156862745098039);
|
||||
// border-radius: 20px;
|
||||
border-radius: 24px;
|
||||
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.156862745098039);
|
||||
flex-direction: column;
|
||||
padding: 10px 10px 0;
|
||||
padding-top: 7px;
|
||||
padding-bottom: 16px;
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
height: fit-content;
|
||||
@@ -89,29 +141,131 @@ const loadload = () => {
|
||||
}
|
||||
|
||||
.collect-box {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
// background: #447eb3;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
|
||||
.collect-icon {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
|
||||
width: 16px;
|
||||
height: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.img {
|
||||
// width: 366px;
|
||||
width: 268.75px;
|
||||
// height: 244px;
|
||||
.img-box {
|
||||
position: relative;
|
||||
border-radius: 16px;
|
||||
margin-bottom: 12px;
|
||||
// object-fit: cover;
|
||||
overflow: hidden;
|
||||
margin: 0 7px 16px;
|
||||
|
||||
.gter-select {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 158px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.name {
|
||||
height: 32px;
|
||||
background-color: rgba(255, 255, 255, 0.847058823529412);
|
||||
border: 1px solid rgba(255, 255, 255, 1);
|
||||
border-radius: 16px;
|
||||
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 20px;
|
||||
color: #000000;
|
||||
padding: 0 25px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.img {
|
||||
// width: 366px;
|
||||
// width: 268.75px;
|
||||
width: 371px;
|
||||
// height: 244px;
|
||||
// object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.apartment-introduce {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: rgba(0, 0, 0, 0.63921568627451);
|
||||
color: #ffffff;
|
||||
font-size: 13px;
|
||||
padding-left: 6px;
|
||||
padding-right: 17px;
|
||||
|
||||
.remark-on {
|
||||
font-size: 13px;
|
||||
color: #d7d7d7;
|
||||
margin-right: 6px;
|
||||
|
||||
.fang-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.remark-text {
|
||||
width: 247px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.label-list {
|
||||
flex-wrap: wrap;
|
||||
margin: 0 12px 7px;
|
||||
.label-item {
|
||||
color: #555555;
|
||||
text-align: center;
|
||||
height: 22px;
|
||||
background-color: rgba(235, 235, 235, 1);
|
||||
border-radius: 8px;
|
||||
padding: 0 8px;
|
||||
font-size: 13px;
|
||||
width: fit-content;
|
||||
margin-bottom: 8px;
|
||||
margin-right: 10px;
|
||||
|
||||
&.blue {
|
||||
color: #ffffff;
|
||||
background-color: rgba(98, 177, 255, 1);
|
||||
}
|
||||
|
||||
&.violet {
|
||||
color: #ffffff;
|
||||
background-color: rgba(128, 128, 255, 1);
|
||||
}
|
||||
|
||||
&.red {
|
||||
color: #ffffff;
|
||||
background-color: rgba(249, 93, 93, 1);
|
||||
}
|
||||
|
||||
.safety-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
@@ -160,8 +314,82 @@ const loadload = () => {
|
||||
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
margin-bottom: 10px;
|
||||
padding-left: 6px;
|
||||
margin: 0 12px 9px;
|
||||
// margin-bottom: 9px;
|
||||
// padding-left: 6px;
|
||||
}
|
||||
|
||||
.distance {
|
||||
padding: 0 12px 12px 29px;
|
||||
border-bottom: 1px dashed #d7d7d7;
|
||||
.figure {
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
text-align: right;
|
||||
line-height: 26px;
|
||||
margin-right: 5px;
|
||||
|
||||
.school {
|
||||
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.mile {
|
||||
font-size: 14px;
|
||||
color: #50e3c2;
|
||||
}
|
||||
}
|
||||
|
||||
.vehicle-list {
|
||||
flex-wrap: wrap;
|
||||
|
||||
.vehicle-item {
|
||||
height: 22px;
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
border: 1px solid rgba(127, 127, 127, 1);
|
||||
border-radius: 30px;
|
||||
font-size: 12px;
|
||||
color: #333333;
|
||||
padding: 0 8px;
|
||||
margin-right: 6px;
|
||||
|
||||
.vehicle-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.collect-type {
|
||||
margin: 0 12px;
|
||||
height: 52px;
|
||||
.collect {
|
||||
.flame-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
font-size: 13px;
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
.house-type {
|
||||
font-size: 13px;
|
||||
color: #555555;
|
||||
|
||||
.icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.type-list {
|
||||
@@ -170,8 +398,7 @@ const loadload = () => {
|
||||
background: rgba(246, 246, 246, 1);
|
||||
border-radius: 12px;
|
||||
padding: 0 10px;
|
||||
margin: 0 6px;
|
||||
|
||||
margin: 0 12px;
|
||||
.type-item {
|
||||
height: 54px;
|
||||
|
||||
@@ -185,23 +412,45 @@ const loadload = () => {
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
.type-data {
|
||||
.unit {
|
||||
font-family: "Arial-Black", "Arial Black", sans-serif;
|
||||
font-weight: 900;
|
||||
color: #000000;
|
||||
}
|
||||
.price {
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
.type-data {
|
||||
.unit {
|
||||
font-family: "Arial-Black", "Arial Black", sans-serif;
|
||||
font-weight: 900;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.price {
|
||||
font-family: "Arial-Black", "Arial Black", sans-serif;
|
||||
font-weight: 900;
|
||||
font-size: 18px;
|
||||
color: #f95d5d;
|
||||
margin: 0 5px;
|
||||
}
|
||||
.price {
|
||||
font-family: "Arial-Black", "Arial Black", sans-serif;
|
||||
font-weight: 900;
|
||||
font-size: 18px;
|
||||
color: #f95d5d;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
font-size: 13px;
|
||||
color: #555555;
|
||||
font-size: 13px;
|
||||
color: #555555;
|
||||
}
|
||||
.original-price {
|
||||
text-align: right;
|
||||
font-size: 13px;
|
||||
color: #7f7f7f;
|
||||
position: relative;
|
||||
width: max-content;
|
||||
&::after {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: -4px;
|
||||
transform: translateY(-50%);
|
||||
content: "";
|
||||
width: calc(100% + 6px);
|
||||
height: 1px;
|
||||
display: block;
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user