|
|
|
|
@ -1,23 +1,10 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="joblist-container">
|
|
|
|
|
<div class="searchbox">
|
|
|
|
|
<!-- <div class="searchbox">
|
|
|
|
|
<div class="w">
|
|
|
|
|
<span
|
|
|
|
|
><router-link to="/list"><h1 class="logo"></h1></router-link
|
|
|
|
|
></span>
|
|
|
|
|
<span>
|
|
|
|
|
<a-input-search
|
|
|
|
|
placeholder="企业/公司"
|
|
|
|
|
enter-button="搜索"
|
|
|
|
|
@keyup.enter="onSearch"
|
|
|
|
|
@search="onSearch"
|
|
|
|
|
@input="resetsearch"
|
|
|
|
|
class="searchinput"
|
|
|
|
|
><i slot="prefix" class="iconfont icon-sousuo"></i
|
|
|
|
|
></a-input-search>
|
|
|
|
|
</span>
|
|
|
|
|
<span></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
<!-- 筛选导航 -->
|
|
|
|
|
<div class="navigation">
|
|
|
|
|
<div class="w">
|
|
|
|
|
@ -100,6 +87,17 @@
|
|
|
|
|
>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<span>
|
|
|
|
|
<a-input
|
|
|
|
|
placeholder="搜索企业/公司"
|
|
|
|
|
@keyup.enter="onSearch"
|
|
|
|
|
@search="onSearch"
|
|
|
|
|
@input="resetsearch"
|
|
|
|
|
class="searchinput"
|
|
|
|
|
><i slot="prefix" class="iconfont icon-sousuo"></i>
|
|
|
|
|
<button slot="suffix">搜索</button>
|
|
|
|
|
</a-input>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 主体部分 -->
|
|
|
|
|
@ -325,36 +323,44 @@ export default {
|
|
|
|
|
// 筛选列表数据处理
|
|
|
|
|
// if(e.city !== undefined){
|
|
|
|
|
if (e.district.length === 0) {
|
|
|
|
|
document.getElementById("city").style.width = 105 + "px";
|
|
|
|
|
document.getElementById("city").style.width = 95 + "px";
|
|
|
|
|
} else {
|
|
|
|
|
const result = e.district.join("");
|
|
|
|
|
console.log(result);
|
|
|
|
|
if (result.length > 6) {
|
|
|
|
|
document.getElementById("city").style.width =
|
|
|
|
|
(result.length + 4) * 18 + "px";
|
|
|
|
|
(result.length + 3) * 18 + "px";
|
|
|
|
|
document.getElementById("city").style.maxWidth = "250px";
|
|
|
|
|
document.querySelector("#city").nextElementSibling.style.width = // 获取下一个兄弟元素s
|
|
|
|
|
(result.length + 4) * 18 + "px";
|
|
|
|
|
} else if (result.length > 4) {
|
|
|
|
|
(result.length + 3) * 18 + "px";
|
|
|
|
|
document.getElementById("city").nextElementSibling.style.maxWidth =
|
|
|
|
|
"250px";
|
|
|
|
|
} else if (result.length > 5) {
|
|
|
|
|
document.getElementById("city").style.width =
|
|
|
|
|
(result.length + 2.6) * 18 + "px";
|
|
|
|
|
document.querySelector("#city").nextElementSibling.style.width =
|
|
|
|
|
(result.length + 2.6) * 18 + "px";
|
|
|
|
|
} else if (result.length > 4) {
|
|
|
|
|
document.getElementById("city").style.width =
|
|
|
|
|
(result.length + 2.4) * 18 + "px";
|
|
|
|
|
document.querySelector("#city").nextElementSibling.style.width =
|
|
|
|
|
(result.length + 2.4) * 18 + "px";
|
|
|
|
|
} else {
|
|
|
|
|
document.getElementById("city").style.width =
|
|
|
|
|
(result.length + 2) * 18 + "px";
|
|
|
|
|
(result.length + 1.5) * 18 + "px";
|
|
|
|
|
document.getElementById("city").style.minWidth = 72 + "px";
|
|
|
|
|
document.querySelector("#city").nextElementSibling.style.width =
|
|
|
|
|
(result.length + 2) * 18 + "px";
|
|
|
|
|
(result.length + 1.5) * 18 + "px";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
// 工价的判断
|
|
|
|
|
if (e.monthlyPayStr.length === 0) {
|
|
|
|
|
document.getElementById("price").style.width = 70 + "px";
|
|
|
|
|
document.getElementById("price").style.width = 60 + "px";
|
|
|
|
|
} else {
|
|
|
|
|
const result = e.monthlyPayStr.join("");
|
|
|
|
|
if (result.length >= 0) {
|
|
|
|
|
document.getElementById("price").style.width = "150px";
|
|
|
|
|
document.getElementById("price").style.width = "140px";
|
|
|
|
|
document.getElementById("price").nextElementSibling.style.width =
|
|
|
|
|
"150px";
|
|
|
|
|
// document.querySelector(".ant-cascader-picker-label").style.width =
|
|
|
|
|
@ -363,7 +369,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
// 年龄筛选长度的判断
|
|
|
|
|
if (e.ageStr.length === 0) {
|
|
|
|
|
document.getElementById("age").style.width = 70 + "px";
|
|
|
|
|
document.getElementById("age").style.width = 60 + "px";
|
|
|
|
|
} else {
|
|
|
|
|
const result = e.ageStr.join("");
|
|
|
|
|
if (result.length >= 0) {
|
|
|
|
|
@ -548,78 +554,34 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
.searchbox {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
// border-bottom: 1px solid #eeefef;
|
|
|
|
|
.w {
|
|
|
|
|
// display: flex;
|
|
|
|
|
// justify-content: space-between;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
height: 100px;
|
|
|
|
|
span {
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
|
|
|
|
.logo {
|
|
|
|
|
width: 424px;
|
|
|
|
|
height: 49px;
|
|
|
|
|
margin-top: 26px;
|
|
|
|
|
margin-right: 60px;
|
|
|
|
|
background: url("../../assets/logo.png") no-repeat;
|
|
|
|
|
background-size: contain;
|
|
|
|
|
}
|
|
|
|
|
span:nth-of-type(2) {
|
|
|
|
|
margin-top: 27px;
|
|
|
|
|
i {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
color: #adadad;
|
|
|
|
|
}
|
|
|
|
|
/deep/ .ant-input {
|
|
|
|
|
width: 446px;
|
|
|
|
|
height: 46px;
|
|
|
|
|
text-indent: 10px;
|
|
|
|
|
border-color: #d9d9d9;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
font-size: 16px !important;
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
|
text-indent: 10px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: #d9d9d9;
|
|
|
|
|
}
|
|
|
|
|
&:focus {
|
|
|
|
|
border-color: #ff6a00;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/ .ant-input-group-addon .ant-btn {
|
|
|
|
|
width: 86px;
|
|
|
|
|
height: 46px;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
background-color: #ff6a00;
|
|
|
|
|
border-color: #ff6a00;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
span:nth-of-type(3) {
|
|
|
|
|
width: 76px;
|
|
|
|
|
height: 76px;
|
|
|
|
|
float: right;
|
|
|
|
|
margin-top: 12px;
|
|
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// .searchbox {
|
|
|
|
|
// background-color: #fff;
|
|
|
|
|
// // border-bottom: 1px solid #eeefef;
|
|
|
|
|
// .w {
|
|
|
|
|
// // display: flex;
|
|
|
|
|
// // justify-content: space-between;
|
|
|
|
|
// overflow: hidden;
|
|
|
|
|
// height: 100px;
|
|
|
|
|
// span {
|
|
|
|
|
// float: left;
|
|
|
|
|
// }
|
|
|
|
|
// .logo {
|
|
|
|
|
// width: 424px;
|
|
|
|
|
// height: 49px;
|
|
|
|
|
// margin-top: 26px;
|
|
|
|
|
// margin-right: 60px;
|
|
|
|
|
// background: url("../../assets/logo.png") no-repeat;
|
|
|
|
|
// background-size: contain;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
/deep/ .navigation {
|
|
|
|
|
// margin-top: -1px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border: 1px solid #f6f6f6;
|
|
|
|
|
height: 50px;
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
height: 72px;
|
|
|
|
|
|
|
|
|
|
// line-height: 100px;
|
|
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
@ -639,8 +601,48 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
> .w {
|
|
|
|
|
height: 72px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
> span {
|
|
|
|
|
margin-top: 14px;
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
color: #adadad;
|
|
|
|
|
}
|
|
|
|
|
.ant-input {
|
|
|
|
|
width: 400px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
text-indent: 20px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid rgba(77, 87, 94, 0.3);
|
|
|
|
|
border-radius: 136px;
|
|
|
|
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.04);
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
|
text-indent: 20px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: #d9d9d9;
|
|
|
|
|
}
|
|
|
|
|
&:focus {
|
|
|
|
|
border-color: #ff6a00;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
button {
|
|
|
|
|
width: 70px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
background: #ff6a00;
|
|
|
|
|
border-color: #ff6a00;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.specialbox {
|
|
|
|
|
position: absolute;
|
|
|
|
|
border-bottom: 1px solid #f6f6f6;
|
|
|
|
|
@ -648,7 +650,7 @@ export default {
|
|
|
|
|
// display: ;
|
|
|
|
|
transition: all 0.4s;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 49px;
|
|
|
|
|
top: 71px;
|
|
|
|
|
width: 100vw;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
z-index: 999;
|
|
|
|
|
@ -672,10 +674,10 @@ export default {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
li {
|
|
|
|
|
// margin-right: 30px;
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #4d575e;
|
|
|
|
|
margin-right: 20px;
|
|
|
|
|
// margin-right: 20px;
|
|
|
|
|
.ant-cascader-picker {
|
|
|
|
|
width: auto;
|
|
|
|
|
position: relative;
|
|
|
|
|
@ -688,7 +690,7 @@ export default {
|
|
|
|
|
transform: translateY(-1px) scale(0.5);
|
|
|
|
|
}
|
|
|
|
|
.ant-cascader-input {
|
|
|
|
|
width: 70px;
|
|
|
|
|
width: 60px;
|
|
|
|
|
// margin-top: -5px;
|
|
|
|
|
// max-width: 150px !important;
|
|
|
|
|
border: none;
|
|
|
|
|
@ -706,7 +708,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
// width: 110px;
|
|
|
|
|
width: 60px;
|
|
|
|
|
// max-width: 150px;
|
|
|
|
|
color: rgb(255, 106, 0) !important;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
@ -729,14 +731,14 @@ export default {
|
|
|
|
|
&::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: -15px;
|
|
|
|
|
// top: -15px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.ant-cascader-picker {
|
|
|
|
|
width: auto;
|
|
|
|
|
position: relative;
|
|
|
|
|
.ant-cascader-input {
|
|
|
|
|
min-width: 105px;
|
|
|
|
|
min-width: 95px;
|
|
|
|
|
&:hover &::placeholder {
|
|
|
|
|
color: #ff6a00;
|
|
|
|
|
}
|
|
|
|
|
@ -761,7 +763,7 @@ export default {
|
|
|
|
|
position: relative;
|
|
|
|
|
div:first-child {
|
|
|
|
|
height: 32px;
|
|
|
|
|
margin-top: 7px;
|
|
|
|
|
margin-top: -2px;
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
color: #4d575ecc;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
@ -783,9 +785,10 @@ export default {
|
|
|
|
|
position: relative;
|
|
|
|
|
color: #8c8d8f;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
margin: 27px 30px 0 25px;
|
|
|
|
|
// color: rgba(78, 88, 95, 0.8);
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
margin-left: 30px;
|
|
|
|
|
// margin-left: 25px;
|
|
|
|
|
a {
|
|
|
|
|
transition: all 0.5s;
|
|
|
|
|
line-height: 16px;
|
|
|
|
|
|