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
6db24c05
Commit
6db24c05
authored
Nov 08, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
c7725f59
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
7 deletions
+42
-7
settings.json
.vscode/settings.json
+1
-1
user.js
src/api/user.js
+2
-0
test.vue
src/pages/login/test.vue
+2
-1
fillIn.vue
src/pages/user/businessLicense/fillIn.vue
+22
-5
request.js
src/utils/request.js
+15
-0
No files found.
.vscode/settings.json
View file @
6db24c05
...
...
@@ -20,7 +20,7 @@
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
},
"[javascript]"
:
{
"editor.defaultFormatter"
:
"
esbenp.prettier-vscode
"
"editor.defaultFormatter"
:
"
vscode.typescript-language-features
"
},
"[typescriptreact]"
:
{
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
...
...
src/api/user.js
View file @
6db24c05
...
...
@@ -23,6 +23,8 @@ export const getUserResumeApi = () => instance.post("/personal/user/resume/get")
// 获取投递列表
export
const
getApplicationListApi
=
params
=>
instance
.
post
(
"/job/getApplicationList"
,
params
);
// 用户申诉
export
const
userAppeal
=
params
=>
instance
.
post
(
"/user/appeal"
,
params
);
// 获取面试列表
export
const
getInterviewListApi
=
params
=>
instance
.
post
(
"/job/getInterviewList"
,
params
);
...
...
src/pages/login/test.vue
View file @
6db24c05
...
...
@@ -10,10 +10,11 @@
<
script
setup
>
import
{
testLogin
,
getSmsCode
,
getLoginUserApi
}
from
"@/api/user"
;
import
{
setToken
}
from
"@/utils/token"
;
import
{
setToken
,
removeToken
}
from
"@/utils/token"
;
getLoginUserApi
;
const
phone
=
ref
(
""
);
const
login
=
async
()
=>
{
removeToken
();
const
a
=
await
getSmsCode
({
username
:
phone
.
value
});
const
loginRes
=
await
testLogin
({
username
:
phone
.
value
,
...
...
src/pages/user/businessLicense/fillIn.vue
View file @
6db24c05
...
...
@@ -49,7 +49,7 @@
</view>
<view
class=
"name"
v-if=
"step === 2"
>
<view
class=
"t1"
>
账户申述
</view>
<textarea
v-model=
"
valu
e"
placeholder=
"请填写申述理由"
/>
<textarea
v-model=
"
appealMessag
e"
placeholder=
"请填写申述理由"
/>
</view>
<view
class=
"image-upload"
v-if=
"step === 3"
>
<view
class=
"t1"
>
营业执照照片
</view>
...
...
@@ -95,7 +95,7 @@ import { ref } from "vue";
import
evn
from
"@/utils/config"
;
import
{
uploadFiles
}
from
"@/utils/fileUpload"
;
import
{
validateForm
}
from
"@/utils/utils"
;
import
{
ocrLicense
,
getLoginUserApi
,
saveBasicInfoApi
}
from
"@/api/user.js"
;
import
{
ocrLicense
,
getLoginUserApi
,
saveBasicInfoApi
,
userAppeal
}
from
"@/api/user.js"
;
import
{
useDefineStore
}
from
"./store"
;
const
pinias
=
useDefineStore
();
const
params
=
reactive
({
...
...
@@ -104,6 +104,7 @@ const params = reactive({
phone
:
""
,
position
:
""
});
const
appealMessage
=
ref
(
null
);
onLoad
(({
steps
})
=>
{
step
.
value
=
steps
*
1
;
});
...
...
@@ -112,7 +113,9 @@ const name = ref("");
const
showPopout
=
ref
(
false
);
onShow
(()
=>
{
getLoginUserApiFn
();
if
(
step
.
value
===
1
)
{
getLoginUserApiFn
();
}
});
function
ocrLicenseFn
(
uri
)
{
return
ocrLicense
({
uri
}).
then
(
res
=>
{
...
...
@@ -168,10 +171,24 @@ const nextStep = () => {
flag
=
saveBasicInfoApiFn
();
break
;
case
2
:
if
(
!
pinias
.
formData
.
creditCode
)
flag
=
true
;
if
(
!
appealMessage
.
value
)
{
flag
=
true
;
}
else
{
userAppeal
({
appealMessage
:
appealMessage
.
value
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
uni
.
showModal
({
title
:
"申诉中"
,
content
:
"您的申述已提交请等待审核"
,
showCancel
:
false
,
confirmText
:
"好的"
});
}
});
}
break
;
case
3
:
wx
.
navigateTo
({
xma
.
navigateTo
({
url
:
`/pages/user/businessLicense/submit`
});
break
;
...
...
src/utils/request.js
View file @
6db24c05
...
...
@@ -65,6 +65,21 @@ instance.interceptors.response.use(
icon
:
"none"
,
duration
:
1900
});
}
else
if
(
code
==
13
)
{
uni
.
showModal
({
title
:
'您的帐号已失效'
,
content
:
'由于您超过1月未登录现已将您的账号禁用您可完成申述后继续使用'
,
showCancel
:
true
,
confirmText
:
'立即申述'
,
success
:
function
(
confirm
)
{
if
(
confirm
.
confirm
)
{
xma
.
navigateTo
({
url
:
'/pages/user/businessLicense/fillIn?steps=2'
})
}
}
});
}
},
error
=>
{
...
...
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