4.6新样式

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-05-09 18:27:24 +08:00
parent 1ea3894be8
commit 3e4daeb420
11 changed files with 1062 additions and 563 deletions

View File

@@ -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);