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
fffa27b3
Commit
fffa27b3
authored
Nov 01, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
767df028
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
16 deletions
+41
-16
user.js
src/api/user.js
+1
-1
index.vue
src/pages/login/index.vue
+1
-1
index.vue
src/pages/recommend/index.vue
+11
-1
addPost.vue
src/pages/signUp/addPost.vue
+1
-1
submit.vue
src/pages/user/businessLicense/submit.vue
+17
-7
index.vue
src/pages/user/index.vue
+5
-0
index.vue
src/pages/user/myCompany/index.vue
+3
-3
request.js
src/utils/request.js
+2
-2
No files found.
src/api/user.js
View file @
fffa27b3
...
@@ -4,7 +4,7 @@ export const testLogin = params => instance.post("/user/smsLogin", params);
...
@@ -4,7 +4,7 @@ export const testLogin = params => instance.post("/user/smsLogin", params);
export
const
getSmsCode
=
params
=>
instance
.
postForm
(
"/user/getSmsCode"
,
params
);
export
const
getSmsCode
=
params
=>
instance
.
postForm
(
"/user/getSmsCode"
,
params
);
// 新华登录
// 新华登录
export
const
xinhuaMpLogin
=
params
=>
instance
.
post
(
"/user/
appUser/
xinhua/mpLogin"
,
params
);
export
const
xinhuaMpLogin
=
params
=>
instance
.
post
(
"/user/xinhua/mpLogin"
,
params
);
// B端-获取登录用户
// B端-获取登录用户
export
const
getLoginUserApi
=
params
=>
instance
.
post
(
"/b/user/getLoginUser"
,
params
);
export
const
getLoginUserApi
=
params
=>
instance
.
post
(
"/b/user/getLoginUser"
,
params
);
...
...
src/pages/login/index.vue
View file @
fffa27b3
...
@@ -109,7 +109,7 @@ const login = () => {
...
@@ -109,7 +109,7 @@ const login = () => {
background-color
:
#1f86ff
;
background-color
:
#1f86ff
;
}
}
.unit-name
{
.unit-name
{
margin-top
:
2
4
0rpx
;
margin-top
:
2
0
0rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#1b2026
;
color
:
#1b2026
;
...
...
src/pages/recommend/index.vue
View file @
fffa27b3
...
@@ -74,6 +74,7 @@ import { ref } from "vue";
...
@@ -74,6 +74,7 @@ import { ref } from "vue";
import
jobSeekersCard
from
"@/components/jobSeekersCard/index.vue"
;
import
jobSeekersCard
from
"@/components/jobSeekersCard/index.vue"
;
import
{
getJobListApi
,
getApplicationListApi
,
getRecommendedResumeListApi
,
getPositionListApi
}
from
"@/api/postion"
;
import
{
getJobListApi
,
getApplicationListApi
,
getRecommendedResumeListApi
,
getPositionListApi
}
from
"@/api/postion"
;
import
{
getTreeListApi
}
from
"@/api/common"
;
import
{
getTreeListApi
}
from
"@/api/common"
;
import
{
getLoginUserApi
}
from
"@/api/user"
;
import
{
getEumData
,
getEnumText
}
from
"@/utils/utils"
;
import
{
getEumData
,
getEnumText
}
from
"@/utils/utils"
;
import
{
useAsync
}
from
"@/hooks/useAsync"
;
import
{
useAsync
}
from
"@/hooks/useAsync"
;
import
_
from
"lodash"
;
import
_
from
"lodash"
;
...
@@ -306,7 +307,15 @@ const filterConfirm = data => {
...
@@ -306,7 +307,15 @@ const filterConfirm = data => {
resetPageParams
();
resetPageParams
();
getResumeRecommendList
();
getResumeRecommendList
();
};
};
/* 获取用户信息 */
const
getUserInfo
=
async
()
=>
{
const
userRes
=
await
getLoginUserApi
();
// if (!userRes.companyName) {
// xma.navigateTo({
// url: `/pages/user/businessLicense/fillIn?steps=3`
// });
// }
};
onLoad
(()
=>
{
onLoad
(()
=>
{
xma
.
xh
.
getSystemInfo
({
xma
.
xh
.
getSystemInfo
({
success
(
res
)
{
success
(
res
)
{
...
@@ -318,6 +327,7 @@ onLoad(() => {
...
@@ -318,6 +327,7 @@ onLoad(() => {
contentHeight
.
value
=
(
res
.
top
+
res
.
bottom
)
/
2
+
25
+
"px"
;
contentHeight
.
value
=
(
res
.
top
+
res
.
bottom
)
/
2
+
25
+
"px"
;
}
}
});
});
getUserInfo
();
});
});
</
script
>
</
script
>
...
...
src/pages/signUp/addPost.vue
View file @
fffa27b3
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<!-- 职位描述 -->
<!-- 职位描述 -->
<form-row>
<form-row>
<form-item
title=
"职位描述"
:border=
"false"
icon=
""
>
<form-item
title=
"职位描述"
:border=
"false"
icon=
""
>
<textarea
v-model=
"item.positionDesc"
placeholder=
"请输入你的职位描述"
></textarea>
<textarea
maxlength=
"800"
v-model=
"item.positionDesc"
placeholder=
"请输入你的职位描述"
></textarea>
</form-item>
</form-item>
</form-row>
</form-row>
<view
class=
"transverse"
>
<view
class=
"transverse"
>
...
...
src/pages/user/businessLicense/submit.vue
View file @
fffa27b3
...
@@ -27,20 +27,25 @@
...
@@ -27,20 +27,25 @@
<view
class=
"item"
>
<view
class=
"item"
>
<view
class=
"label"
>
是否人资机构
</view>
<view
class=
"label"
>
是否人资机构
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<wd-radio-group
v-model=
"pinias.formData.
licenseValidityPeriod
"
shape=
"dot"
inline
>
<wd-radio-group
v-model=
"pinias.formData.
humanResourcesLicensePath
"
shape=
"dot"
inline
>
<wd-radio
value=
"true
"
>
是
</wd-radio>
<wd-radio
:value=
"pinias.formData.humanResourcesLicensePath
"
>
是
</wd-radio>
<wd-radio
value=
""
>
否
</wd-radio>
<wd-radio
value=
""
>
否
</wd-radio>
</wd-radio-group>
</wd-radio-group>
</view>
</view>
</view>
</view>
<view
class=
"image-upload"
>
<view
class=
"image-upload"
>
<image
<image
v-if=
"pinias.formData.licenseValidityPeriod"
v-if=
"pinias.formData.humanResourcesLicensePath"
:src=
"evn.APP_IMAGE_BASE_API + pinias.formData.humanResourcesLicensePath"
mode=
""
/>
<image
v-else
@
click=
"chooseImage('album')"
@
click=
"chooseImage('album')"
src=
"@/static/image/businessLicense/businessLicenseUpload2.png"
src=
"@/static/image/businessLicense/businessLicenseUpload2.png"
mode=
""
mode=
""
/>
/>
<image
v-else
:src=
"evn.APP_IMAGE_BASE_API + pinias.formData.licenseValidityPeriod"
mode=
""
/>
</view>
</view>
<!--
<view
class=
"item"
>
<!--
<view
class=
"item"
>
<view
class=
"label"
>
有效期
</view>
<view
class=
"label"
>
有效期
</view>
...
@@ -100,7 +105,11 @@
...
@@ -100,7 +105,11 @@
</view>
</view>
<view
<view
class=
"btn flex-between"
class=
"btn flex-between"
@
tap=
"navigateTo(`/pages/user/businessLicense/appeal?name=$
{companyName}
&
companyCreditCode=${companyCreditCode}`)"
@
tap=
"
navigateTo(
`/pages/user/businessLicense/appeal?name=$
{companyName}
&
companyCreditCode=${companyCreditCode}`
)
"
>
>
<view
class=
"text"
>
<view
class=
"text"
>
<view
class=
"t1"
>
申述资质被冒用
</view>
<view
class=
"t1"
>
申述资质被冒用
</view>
...
@@ -118,6 +127,7 @@
...
@@ -118,6 +127,7 @@
<
script
setup
>
<
script
setup
>
import
evn
from
"@/utils/config"
;
import
evn
from
"@/utils/config"
;
import
{
useDefineStore
}
from
"./store"
;
import
{
useDefineStore
}
from
"./store"
;
import
{
uploadFiles
}
from
"@/utils/fileUpload"
;
import
{
ref
}
from
"vue"
;
import
{
ref
}
from
"vue"
;
import
{
registerCompanyApi
,
companyCheck
}
from
"@/api/user"
;
import
{
registerCompanyApi
,
companyCheck
}
from
"@/api/user"
;
...
@@ -140,7 +150,7 @@ const chooseImage = sourceType => {
...
@@ -140,7 +150,7 @@ const chooseImage = sourceType => {
count
:
1
,
count
:
1
,
success
:
async
({
tempFiles
})
=>
{
success
:
async
({
tempFiles
})
=>
{
const
res
=
await
uploadFiles
(
tempFiles
);
const
res
=
await
uploadFiles
(
tempFiles
);
pinias
.
setFormDataKey
(
"
licenseValidityPeriod
"
,
res
[
0
].
key
);
pinias
.
setFormDataKey
(
"
humanResourcesLicensePath
"
,
res
[
0
].
key
);
}
}
});
});
};
};
...
@@ -165,7 +175,7 @@ const submit = () => {
...
@@ -165,7 +175,7 @@ const submit = () => {
}
else
{
}
else
{
show
.
value
=
true
;
show
.
value
=
true
;
// id.value = company.data.id;
// id.value = company.data.id;
companyCreditCode
.
value
=
creditCode
companyCreditCode
.
value
=
creditCode
;
companyName
.
value
=
name
;
companyName
.
value
=
name
;
}
}
}
}
...
...
src/pages/user/index.vue
View file @
fffa27b3
...
@@ -201,6 +201,11 @@ const getUserInfo = async () => {
...
@@ -201,6 +201,11 @@ const getUserInfo = async () => {
name
.
value
=
userRes
.
data
.
companyName
;
name
.
value
=
userRes
.
data
.
companyName
;
id
.
value
=
userRes
.
data
.
companyId
;
id
.
value
=
userRes
.
data
.
companyId
;
}
}
// if (!userRes.companyName) {
// xma.navigateTo({
// url: `/pages/user/businessLicense/fillIn?steps=3`
// });
// }
const
{
status
}
=
userRes
.
data
;
const
{
status
}
=
userRes
.
data
;
switch
(
status
)
{
switch
(
status
)
{
case
0
:
case
0
:
...
...
src/pages/user/myCompany/index.vue
View file @
fffa27b3
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<formItem
title=
"企业名称"
>
<formItem
title=
"企业名称"
>
<input
<input
type=
"text"
type=
"text"
:disabled=
"[1].includes(companyInfo.status)"
:disabled=
"[1
, 0
].includes(companyInfo.status)"
v-model=
"params.companyName"
v-model=
"params.companyName"
placeholder=
"请输入企业名称"
placeholder=
"请输入企业名称"
/>
/>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
@
confirm=
"handleConfirmCity"
@
confirm=
"handleConfirmCity"
use-default-slot
use-default-slot
>
>
<p
:class=
"
{ placeholder: !params.location }"
class="text-single
">
<p
:class=
"
{ placeholder: !params.location }"
style="margin-left: 20rpx
">
{{
params
.
location
||
"请选择公司所在地"
}}
{{
params
.
location
||
"请选择公司所在地"
}}
</p>
</p>
</wd-col-picker>
</wd-col-picker>
...
@@ -309,7 +309,7 @@ const validateForm = (formData, requiredFields) => {
...
@@ -309,7 +309,7 @@ const validateForm = (formData, requiredFields) => {
}
}
textarea
{
textarea
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
343px
;
width
:
100%
;
height
:
136px
;
height
:
136px
;
padding
:
16px
;
padding
:
16px
;
margin-top
:
8px
;
margin-top
:
8px
;
...
...
src/utils/request.js
View file @
fffa27b3
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
{
getToken
,
removeToken
}
from
"@/utils/token"
;
import
{
getToken
,
removeToken
}
from
"@/utils/token"
;
//
const baseURL = "https://lygsh-api.wjzpgz.com/";
const
baseURL
=
"https://lygsh-api.wjzpgz.com/"
;
const
baseURL
=
"http://192.168.11.48:8080/"
;
//
const baseURL = "http://192.168.11.48:8080/";
// 创建一个 axios 实例
// 创建一个 axios 实例
const
instance
=
axios
.
create
({
const
instance
=
axios
.
create
({
baseURL
,
// 设置基础 URL
baseURL
,
// 设置基础 URL
...
...
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