Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp-enterprise-people-recruitment-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
mp-enterprise-people-recruitment-h5
Commits
5be71b0e
Commit
5be71b0e
authored
Nov 08, 2024
by
李明环(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推荐简历专业筛选
parent
c0642abf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
106 additions
and
53 deletions
+106
-53
index.vue
src/pages/recommend/index.vue
+106
-53
No files found.
src/pages/recommend/index.vue
View file @
5be71b0e
...
...
@@ -23,6 +23,7 @@
<view
class=
"arrow"
></view>
</wd-picker>
</view>
<view
class=
"filter-other flex-between"
>
<wd-col-picker
label=
"选择地址"
...
...
@@ -36,6 +37,19 @@
>
<view
class=
"item"
>
{{
cityText
}}
<view
class=
"arrow"
></view>
</view>
</wd-col-picker>
<view
class=
"filter-opstion"
>
<wd-col-picker
v-model=
"majorValue"
:columns=
"majorOpstion"
value-key=
"name"
label-key=
"name"
:column-change=
"columnChangeMajor"
@
confirm=
"handleConfirmMajor"
use-default-slot
>
<view
class=
"item"
>
{{
majorText
||
"全部"
}}
<view
class=
"arrow"
></view>
</view>
</wd-col-picker>
</view>
<!--
<view
class=
"item"
>
默认排序
<view
class=
"arrow"
></view>
</view>
-->
<view
class=
"item"
@
click=
"showOtherFilter = true"
>
筛选
<view
class=
"arrow"
></view>
</view>
</view>
...
...
@@ -75,6 +89,7 @@ import jobSeekersCard from "@/components/jobSeekersCard/index.vue";
import
{
getJobListApi
,
getApplicationListApi
,
getRecommendedResumeListApi
,
getPositionListApi
}
from
"@/api/postion"
;
import
{
getTreeListApi
}
from
"@/api/common"
;
import
{
getLoginUserApi
,
companyReviewInfo
}
from
"@/api/user"
;
import
{
getMajorTreeApi
}
from
"@/api/common"
;
import
{
getEumData
,
getEnumText
}
from
"@/utils/utils"
;
import
{
useAsync
}
from
"@/hooks/useAsync"
;
import
_
from
"lodash"
;
...
...
@@ -140,6 +155,7 @@ const getApplicationListParams = ref({
const
getResumeRecommendListParams
=
ref
({
recommend
:
true
,
positionId
:
""
,
major
:
""
,
sex
:
""
,
jobType
:
""
,
provinceCode
:
""
,
...
...
@@ -175,6 +191,7 @@ const resetParams = () => {
recommend
:
true
,
positionId
:
""
,
sex
:
""
,
major
:
""
,
jobType
:
""
,
provinceCode
:
""
,
cityCode
:
""
,
...
...
@@ -321,6 +338,34 @@ const handleConfirmCity = ({ value, selectedItems }) => {
resetPageParams
();
getResumeRecommendList
();
};
/* 专业筛选 */
const
majorValue
=
ref
([]);
const
majorOpstion
=
ref
([]);
const
columnChangeMajor
=
({
selectedItem
,
resolve
,
finish
})
=>
{
if
(
selectedItem
.
children
)
{
resolve
(
selectedItem
.
children
);
}
else
{
finish
();
}
};
const
handleConfirmMajor
=
({
value
})
=>
{
majorText
.
value
=
value
[
1
];
resetPageParams
();
getResumeRecommendListParams
.
value
.
recommend
=
false
;
getResumeRecommendListParams
.
value
.
major
=
value
[
1
];
getResumeRecommendList
();
};
const
majorText
=
ref
(
""
);
getMajorTreeApi
().
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
majorOpstion
.
value
.
push
(
Object
.
keys
(
res
.
data
).
map
(
key
=>
({
name
:
key
,
children
:
res
.
data
[
key
]
}))
);
}
});
// 显示其他筛选
const
showOtherFilter
=
ref
(
false
);
const
filterConfirm
=
data
=>
{
...
...
@@ -373,18 +418,18 @@ onLoad(() => {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
padding-bottom
:
7
px
;
padding-bottom
:
14r
px
;
background-color
:
#ffffff
;
text
{
width
:
140
px
;
height
:
40
px
;
font-size
:
18
px
;
line-height
:
40
px
;
width
:
280r
px
;
height
:
80r
px
;
font-size
:
36r
px
;
line-height
:
80r
px
;
color
:
#1b2026
;
text-align
:
center
;
&
.active
{
position
:
relative
;
font-size
:
18
px
;
font-size
:
36r
px
;
font-weight
:
600
;
background-image
:
url("https://lygsh-image.wjzpgz.com/community/communityActiveTab.png")
;
background-repeat
:
no-repeat
;
...
...
@@ -404,56 +449,64 @@ onLoad(() => {
flex-grow
:
1
;
.filter
{
position
:
relative
;
padding
:
0
16px
0
22
px
;
padding
:
0
32rpx
0
44r
px
;
.filter-opstion
{
max-width
:
115
px
;
max-width
:
230r
px
;
:deep
(
.wd-picker__field
)
{
display
:
flex
;
align-items
:
center
;
}
.t1
{
font-size
:
12
px
;
font-size
:
24r
px
;
font-weight
:
normal
;
line-height
:
18
px
;
line-height
:
36r
px
;
color
:
#77818f
;
}
.t2
{
flex-grow
:
1
;
width
:
50
px
;
width
:
100r
px
;
overflow
:
hidden
;
font-size
:
16
px
;
font-size
:
32r
px
;
font-weight
:
600
;
line-height
:
24
px
;
line-height
:
48r
px
;
color
:
#1b2026
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
.arrow
{
width
:
0
;
height
:
0
;
margin-left
:
10
px
;
margin-left
:
20r
px
;
border-color
:
#c9cdd4
;
border-width
:
4
px
;
transform
:
rotateZ
(
45deg
)
translateY
(
-
2
px
);
border-width
:
8r
px
;
transform
:
rotateZ
(
45deg
)
translateY
(
-
4r
px
);
}
}
}
.filter-other
{
gap
:
8
px
;
gap
:
16r
px
;
.item
{
display
:
flex
;
align-items
:
flex-end
;
padding
:
6px
9px
;
font-size
:
12px
;
/* display: flex;
align-items: flex-end; */
position
:
relative
;
max-width
:
120rpx
;
padding
:
12rpx
18rpx
;
overflow
:
hidden
;
font-size
:
24rpx
;
font-weight
:
normal
;
line-height
:
12
px
;
line-height
:
24r
px
;
color
:
#1f86ff
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
background
:
rgb
(
31
134
255
/
10%
);
.arrow
{
position
:
absolute
;
right
:
6rpx
;
bottom
:
12rpx
;
width
:
0
;
height
:
0
;
margin-left
:
2
px
;
margin-left
:
4r
px
;
border-color
:
#1f86ff
;
border-width
:
2
px
;
border-width
:
4r
px
;
transform
:
rotateZ
(
0deg
);
}
}
...
...
@@ -468,25 +521,25 @@ onLoad(() => {
height
:
100%
;
background-color
:
#000000
66
;
.wrapper
{
padding
:
0
.5px
20
px
;
padding
:
1rpx
40r
px
;
background-color
:
#ffffff
;
.other-view-item
{
margin-top
:
12
px
;
margin-top
:
24r
px
;
label
{
font-size
:
12
px
;
font-size
:
24r
px
;
color
:
#1b2026
;
}
.select-list
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
12
px
;
margin-top
:
12
px
;
gap
:
24r
px
;
margin-top
:
24r
px
;
.select-item
{
padding
:
6px
14
px
;
font-size
:
12
px
;
padding
:
12rpx
28r
px
;
font-size
:
24r
px
;
color
:
#a3a7b3
;
border
:
1
px
solid
#e1e2e6
;
border-radius
:
4
px
;
border
:
2r
px
solid
#e1e2e6
;
border-radius
:
8r
px
;
&
.active
{
color
:
#1f86ff
;
background
:
rgb
(
31
134
255
/
10%
);
...
...
@@ -495,36 +548,36 @@ onLoad(() => {
}
}
:deep
(
.wd-slider
)
{
height
:
18
px
;
padding-top
:
18
px
;
height
:
36r
px
;
padding-top
:
36r
px
;
.wd-slider__button-wrapper
{
width
:
15
px
;
height
:
15
px
;
width
:
30r
px
;
height
:
30r
px
;
.wd-slider__button
{
width
:
15
px
;
height
:
15
px
;
width
:
30r
px
;
height
:
30r
px
;
}
.wd-slider__label
{
bottom
:
18
px
;
width
:
15
px
;
font-size
:
10
px
;
bottom
:
36r
px
;
width
:
30r
px
;
font-size
:
20r
px
;
}
}
.wd-slider__bar-wrapper
{
margin
:
0
20
px
;
margin
:
0
40r
px
;
}
}
}
.button-wrap
{
display
:
flex
;
gap
:
12
px
;
gap
:
24r
px
;
justify-content
:
flex-end
;
padding
:
16
px
0
;
padding
:
32r
px
0
;
div
{
padding
:
5px
12
px
;
font-size
:
14
px
;
padding
:
10rpx
24r
px
;
font-size
:
28r
px
;
color
:
#1f86ff
;
border-radius
:
4
px
;
border-radius
:
8r
px
;
}
.reset
{
color
:
#ffffff
;
...
...
@@ -532,20 +585,20 @@ onLoad(() => {
}
.confirm
{
color
:
#1f86ff
;
border
:
1
px
solid
#1f86ff
;
border
:
2r
px
solid
#1f86ff
;
}
}
}
}
.recommend-list
{
flex-grow
:
1
;
height
:
100
px
;
height
:
200r
px
;
.item
{
padding
:
8px
16
px
;
border-bottom
:
8
px
solid
#f3f4f8
;
padding
:
16rpx
32r
px
;
border-bottom
:
16r
px
solid
#f3f4f8
;
}
.wd-status-tip
{
padding-top
:
140
px
;
padding-top
:
280r
px
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment