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
a76af8e1
Commit
a76af8e1
authored
Nov 28, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of…
Merge branch 'master' of
https://codeup.aliyun.com/62eb413b37e2c6c98549e0c9/gsh-hr-department/mp-enterprise-people-recruitment-h5
parents
b2c5e4fc
75c0201a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
4 deletions
+23
-4
test.vue
src/pages/login/test.vue
+12
-3
common.scss
src/pages/recommend/releasePostion/common.scss
+3
-0
step4.vue
src/pages/recommend/releasePostion/step4.vue
+7
-1
utils.js
src/utils/utils.js
+1
-0
No files found.
src/pages/login/test.vue
View file @
a76af8e1
...
...
@@ -4,6 +4,12 @@
手机号
<input
type=
"text"
v-model=
"phone"
/>
</p>
<button
@
click=
"getSmsCodeFn"
>
获取验证码
</button>
<p>
验证码
<input
type=
"text"
v-model=
"code"
/>
</p>
<button
@
tap=
"login"
>
登录
</button>
</div>
</
template
>
...
...
@@ -11,14 +17,17 @@
<
script
setup
>
import
{
testLogin
,
getSmsCode
,
getLoginUserApi
}
from
"@/api/user"
;
import
{
setToken
,
removeToken
}
from
"@/utils/token"
;
getLoginUserApi
;
const
phone
=
ref
(
""
);
const
code
=
ref
(
""
);
const
getSmsCodeFn
=
()
=>
{
const
a
=
getSmsCode
({
username
:
phone
.
value
});
};
const
login
=
async
()
=>
{
removeToken
();
const
a
=
await
getSmsCode
({
username
:
phone
.
value
});
const
loginRes
=
await
testLogin
({
username
:
phone
.
value
,
code
:
"000000"
code
:
code
.
value
,
userType
:
"business"
});
if
(
loginRes
.
code
===
200
)
{
setToken
(
loginRes
.
data
);
...
...
src/pages/recommend/releasePostion/common.scss
View file @
a76af8e1
...
...
@@ -20,7 +20,10 @@
}
.content
{
flex-grow
:
1
;
height
:
200rpx
;
padding
:
32rpx
;
padding-bottom
:
100rpx
;
overflow-y
:
auto
;
.form-item
{
padding-top
:
0
;
padding-bottom
:
16rpx
;
...
...
src/pages/recommend/releasePostion/step4.vue
View file @
a76af8e1
...
...
@@ -344,7 +344,13 @@ const next = () => {
if
(
certificateInputValue
.
value
&&
certificateSelectValue
.
value
)
pinias
.
formData
.
professionalCertificates
=
certificateInputValue
.
value
+
"-"
+
certificateSelectValue
.
value
;
console
.
log
(
pinias
.
formData
);
if
(
validateForm
(
pinias
.
formData
,
[
"identityRequirement"
,
"educationRequirement"
],
"post"
))
{
if
(
validateForm
(
pinias
.
formData
,
[
"identityRequirement"
,
"educationRequirement"
,
"maxAgeRequirement"
,
"majorRequirement"
],
"post"
)
)
{
/* uni.redirectTo({
url: "/pages/recommend/releasePostion/step5"
}); */
...
...
src/utils/utils.js
View file @
a76af8e1
...
...
@@ -95,6 +95,7 @@ export const validateForm = (formData, requiredFields, type) => {
jobType
:
"职位类型"
,
position
:
"职位"
,
name
:
"名字"
,
majorRequirement
:
"专业"
,
positionalTitle
:
"专业技术职称"
,
professionalCertificates
:
"职业等级证书"
,
specialCertificates
:
"特种作业证书"
,
...
...
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