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
f6eb04e5
Commit
f6eb04e5
authored
Oct 30, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
招聘会
parent
a61f8e84
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
51 additions
and
17 deletions
+51
-17
settings.json
.vscode/settings.json
+1
-1
article.js
src/api/article.js
+1
-1
user.js
src/api/user.js
+4
-0
form-item.vue
src/components/form/form-item.vue
+1
-0
index.vue
src/pages/articleDetails/index.vue
+38
-12
addPost.vue
src/pages/signUp/addPost.vue
+0
-0
index.vue
src/pages/signUp/index.vue
+4
-2
utils.js
src/utils/utils.js
+2
-1
No files found.
.vscode/settings.json
View file @
f6eb04e5
...
...
@@ -8,7 +8,7 @@
"files.eol"
:
"
\n
"
,
"typescript.tsdk"
:
"node_modules/typescript/lib"
,
"[vue]"
:
{
"editor.defaultFormatter"
:
"
esbenp.prettier-vscode
"
"editor.defaultFormatter"
:
"
octref.vetur
"
},
"[typescript]"
:
{
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
...
...
src/api/article.js
View file @
f6eb04e5
...
...
@@ -8,7 +8,7 @@ export const getArticleDetailApi = id => instance.post(`/article/detail/${id}`);
export
const
getArticleTypesApi
=
type
=>
instance
.
post
(
`/article/category/list/
${
type
}
`
);
//招聘会报名状态
export
const
registerStatus
=
articleId
=>
instance
.
post
(
`/
jobFair/register/status
/
${
articleId
}
`
);
export
const
registerStatus
=
articleId
=>
instance
.
post
(
`/
article/jobFair/check
/
${
articleId
}
`
);
// 参加招聘会
...
...
src/api/user.js
View file @
f6eb04e5
...
...
@@ -49,6 +49,10 @@ export const companyReviewInfo = params => instance.post("/b/company/review/info
export
const
companyReviewUpdate
=
params
=>
instance
.
post
(
"/b/company/review/update"
,
params
);
//职位列表
export
const
positionList
=
params
=>
instance
.
post
(
"/b/position/list"
,
params
);
//批量创建岗位
export
const
positionAddList
=
params
=>
instance
.
post
(
"/b/position/addList"
,
params
);
//批量更新职位
export
const
positionuUdateList
=
params
=>
instance
.
post
(
"/b/position/updateList"
,
params
);
//根据id获取反馈信息
export
const
feedbackById
=
params
=>
instance
.
post
(
`/feedback/
${
params
}
`
);
src/components/form/form-item.vue
View file @
f6eb04e5
...
...
@@ -39,6 +39,7 @@ const iconPath = new URL(`../../static/image/icon/${props.icon}.png`, import.met
font-size
:
32rpx
;
font-weight
:
600
;
line-height
:
36rpx
;
white-space
:
nowrap
;
}
.icon
{
position
:
absolute
;
...
...
src/pages/articleDetails/index.vue
View file @
f6eb04e5
...
...
@@ -26,10 +26,14 @@
placeholder
safeAreaInsetBottom
>
<wd-button
@
tap=
"next"
:disabled=
"data.bmStutas || !data.bm"
round=
"false"
class=
"foot-btn"
>
{{
<
!--
<
wd-button
@
tap=
"next"
:disabled=
"data.bmStutas || !data.bm"
round=
"false"
class=
"foot-btn"
>
{{
!
data
.
bmStutas
&&
data
.
bm
?
"立即报名"
:
data
.
bmStutas
?
"已报名"
:
"报名结束"
}}
</wd-button>
-->
<wd-button
@
tap=
"next"
:disabled=
"!data.bm"
round=
"false"
class=
"foot-btn"
>
{{
data
.
bm
?
"立即报名"
:
"报名结束"
}}
</wd-button>
</wd-tabbar>
<wd-action-sheet
v-model=
"show"
:actions=
"actions"
@
close=
"close"
@
select=
"select"
/>
</div>
</
template
>
...
...
@@ -39,6 +43,15 @@ import evn from "@/utils/config.js";
import
{
ref
}
from
"vue"
;
import
dayjs
from
"dayjs"
;
const
data
=
ref
({});
const
show
=
ref
(
false
);
const
actions
=
ref
([
{
name
:
"更新岗位"
},
{
name
:
"新增岗位"
}
]);
let
articleId
=
ref
(
null
);
onLoad
(({
id
})
=>
{
articleId
.
value
=
id
;
...
...
@@ -53,12 +66,27 @@ onLoad(({ id }) => {
data
.
value
.
bm
=
false
;
}
registerStatus
(
id
).
then
(
Res
=>
{
data
.
value
.
bmStutas
=
Res
.
data
;
});
//
registerStatus(id).then(Res => {
//
data.value.bmStutas = Res.data;
//
});
});
console
.
log
(
"data.value"
,
data
.
value
.
bm
,
data
.
value
.
bmStutas
);
});
function
showActions
()
{}
function
close
()
{
show
.
value
=
false
;
}
function
select
({
item
,
index
})
{
if
(
index
==
0
)
{
xma
.
navigateTo
({
url
:
`/pages/signUp/addPost?articleId=
${
articleId
.
value
}
&type=update`
});
}
else
{
xma
.
navigateTo
({
url
:
`/pages/signUp/addPost?articleId=
${
articleId
.
value
}
&type=add`
});
}
}
onShow
(()
=>
{
const
currentTime
=
Date
.
now
();
getArticleDetailApi
(
articleId
.
value
).
then
(
res
=>
{
...
...
@@ -71,16 +99,14 @@ onShow(() => {
data
.
value
.
bm
=
false
;
}
registerStatus
(
articleId
.
value
).
then
(
Res
=>
{
data
.
value
.
bmStutas
=
Res
.
data
;
});
//
registerStatus(articleId.value).then(Res => {
//
data.value.bmStutas = Res.data;
//
});
});
});
const
form
=
ref
();
function
next
()
{
xma
.
navigateTo
({
url
:
`/pages/signUp/index?articleId=
${
articleId
.
value
}
`
});
show
.
value
=
true
;
}
</
script
>
...
...
src/pages/signUp/addPost.vue
View file @
f6eb04e5
This diff is collapsed.
Click to expand it.
src/pages/signUp/index.vue
View file @
f6eb04e5
...
...
@@ -38,14 +38,16 @@ import { getCompanyInfoApi } from "@/api/user";
import
{
useStore
}
from
"./store"
;
const
pinias
=
useStore
();
const
enterpriseInformation
=
ref
({});
onLoad
(
options
=>
{
const
articleIds
=
ref
(
""
);
onLoad
(({
articleId
})
=>
{
articleIds
.
value
=
articleId
;
getCompanyInfoApi
().
then
(
res
=>
{
enterpriseInformation
.
value
=
res
.
data
;
});
});
const
next
=
()
=>
{
uni
.
navigateTo
({
url
:
"/pages/signUp/addPost"
url
:
`/pages/signUp/addPost?articleId=
${
articleIds
.
value
}
`
});
};
</
script
>
...
...
src/utils/utils.js
View file @
f6eb04e5
...
...
@@ -71,6 +71,7 @@ export const formatTimestamp = (timestamp, formatString = "YYYY-MM-DD hh:mm:ss")
export
const
validateForm
=
(
formData
,
requiredFields
)
=>
{
const
phoneRegex
=
/^1
[
3-9
]\d{9}
$/
;
// 正则表达式匹配中国大陆手机号码
for
(
const
field
of
requiredFields
)
{
const
fieldValue
=
formData
[
field
];
if
(
field
===
"contactPhone"
||
field
===
"phone"
)
{
if
(
!
formData
[
field
]
||
!
phoneRegex
.
test
(
formData
[
field
]))
{
uni
.
showToast
({
...
...
@@ -80,7 +81,7 @@ export const validateForm = (formData, requiredFields) => {
});
return
false
;
}
}
else
if
(
!
formData
[
field
]
)
{
}
else
if
(
fieldValue
===
null
||
fieldValue
===
undefined
||
fieldValue
===
""
)
{
console
.
log
(
field
);
uni
.
showToast
({
...
...
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