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
b7ccf839
Commit
b7ccf839
authored
Oct 25, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
10eb7e7a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
48 deletions
+47
-48
user.js
src/api/user.js
+3
-3
index.vue
src/pages/login/index.vue
+1
-1
test.vue
src/pages/login/test.vue
+2
-3
fillIn.vue
src/pages/user/businessLicense/fillIn.vue
+38
-38
submit.vue
src/pages/user/businessLicense/submit.vue
+2
-2
request.js
src/utils/request.js
+1
-1
No files found.
src/api/user.js
View file @
b7ccf839
import
instance
from
"@/utils/request"
;
import
instance
from
"@/utils/request"
;
// 测试登录
// 测试登录
export
const
testLogin
=
params
=>
instance
.
post
(
"/user/
appUser/
smsLogin"
,
params
);
export
const
testLogin
=
params
=>
instance
.
post
(
"/user/smsLogin"
,
params
);
export
const
getSmsCode
=
params
=>
instance
.
postForm
(
"/
company/
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/appUser/xinhua/mpLogin"
,
params
);
// B端-获取登录用户
// B端-获取登录用户
export
const
getLoginUserApi
=
params
=>
instance
.
post
(
"/
company
/user/getLoginUser"
,
params
);
export
const
getLoginUserApi
=
params
=>
instance
.
post
(
"/
b
/user/getLoginUser"
,
params
);
// 保存用户信息
// 保存用户信息
export
const
saveBasicInfoApi
=
params
=>
instance
.
post
(
"/company/user/saveBasicInfo"
,
params
);
export
const
saveBasicInfoApi
=
params
=>
instance
.
post
(
"/company/user/saveBasicInfo"
,
params
);
...
...
src/pages/login/index.vue
View file @
b7ccf839
...
@@ -35,7 +35,7 @@ const login = () => {
...
@@ -35,7 +35,7 @@ const login = () => {
duration
:
2000
duration
:
2000
});
});
}
}
setToken
(
data
.
data
.
token
);
setToken
(
data
.
data
);
getLoginUserApi
().
then
(
el
=>
{
getLoginUserApi
().
then
(
el
=>
{
if
(
el
.
data
&&
el
.
data
.
status
!==
0
)
{
if
(
el
.
data
&&
el
.
data
.
status
!==
0
)
{
uni
.
switchTab
({
uni
.
switchTab
({
...
...
src/pages/login/test.vue
View file @
b7ccf839
...
@@ -20,11 +20,11 @@ const login = async () => {
...
@@ -20,11 +20,11 @@ const login = async () => {
code
:
"000000"
code
:
"000000"
});
});
if
(
loginRes
.
code
===
200
)
{
if
(
loginRes
.
code
===
200
)
{
setToken
(
loginRes
.
data
.
token
);
setToken
(
loginRes
.
data
);
const
userInfoRes
=
await
getLoginUserApi
();
const
userInfoRes
=
await
getLoginUserApi
();
// 已经判断是否注册过企业
// 已经判断是否注册过企业
if
(
userInfoRes
.
data
.
status
!==
0
)
{
if
(
userInfoRes
.
data
)
{
uni
.
switchTab
({
uni
.
switchTab
({
url
:
"/pages/user/index"
url
:
"/pages/user/index"
});
});
...
@@ -33,7 +33,6 @@ const login = async () => {
...
@@ -33,7 +33,6 @@ const login = async () => {
url
:
"/pages/user/businessLicense/fillIn"
url
:
"/pages/user/businessLicense/fillIn"
});
});
}
}
console
.
log
(
userInfoRes
);
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
loginRes
.
message
title
:
loginRes
.
message
...
...
src/pages/user/businessLicense/fillIn.vue
View file @
b7ccf839
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
<image
src=
"@/static/image/businessLicense/hi.png"
></image>
<image
src=
"@/static/image/businessLicense/hi.png"
></image>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"name"
v-if=
"step === 1"
>
<view
v-if=
"step === 1"
>
<view
class=
"t1"
>
个人信息
</view>
<view
class=
"t1"
>
个人信息
</view>
<div
class=
"content"
>
<div
class=
"content
1
"
>
<div
class=
"item flex-between"
>
<div
class=
"item flex-between"
>
<p
class=
"label"
>
头像
</p>
<p
class=
"label"
>
头像
</p>
<div
class=
"flex-align-center"
@
click=
"chooseImage"
>
<div
class=
"flex-align-center"
@
click=
"chooseImage"
>
...
@@ -33,15 +33,16 @@
...
@@ -33,15 +33,16 @@
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<p
class=
"label"
>
姓名
</p>
<p
class=
"label"
>
姓名
<text
class=
"red"
>
*
</text></p>
<input
type=
"text"
v-model=
"params.realName"
placeholder=
"请输入姓名"
/>
<input
type=
"text"
v-model=
"params.realName"
placeholder=
"请输入姓名"
/>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<p
class=
"label"
>
职位
</p>
<p
class=
"label"
>
职位
<
text
class=
"red"
>
*
</text><
/p>
<input
type=
"text"
v-model=
"params.position"
placeholder=
"请输入职位"
/>
<input
type=
"text"
v-model=
"params.position"
placeholder=
"请输入职位"
/>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<p
class=
"label"
>
电话
</p>
<p
class=
"label"
>
电话
<
text
class=
"red"
>
*
</text><
/p>
<input
type=
"number"
v-model=
"params.phone"
placeholder=
"请输入电话"
/>
<input
type=
"number"
v-model=
"params.phone"
placeholder=
"请输入电话"
/>
</div>
</div>
</div>
</div>
...
@@ -109,12 +110,12 @@ const params = reactive({
...
@@ -109,12 +110,12 @@ const params = reactive({
onLoad
(()
=>
{
onLoad
(()
=>
{
console
.
log
(
uni
);
console
.
log
(
uni
);
});
});
const
step
=
ref
(
1
);
const
step
=
ref
(
0
);
const
name
=
ref
(
""
);
const
name
=
ref
(
""
);
const
showPopout
=
ref
(
fals
e
);
const
showPopout
=
ref
(
tru
e
);
onShow
(()
=>
{
onShow
(()
=>
{
step
.
value
=
1
;
step
.
value
=
0
;
// getLoginUserApiFn();
// getLoginUserApiFn();
});
});
function
ocrLicenseFn
(
uri
)
{
function
ocrLicenseFn
(
uri
)
{
...
@@ -191,36 +192,6 @@ const chooseImage = sourceType => {
...
@@ -191,36 +192,6 @@ const chooseImage = sourceType => {
// padding-top: 54rpx;
// padding-top: 54rpx;
background-color
:
#1f86ff
;
background-color
:
#1f86ff
;
.content
{
flex
:
1
;
padding
:
0
16px
;
.item
{
display
:
flex
;
align-items
:
center
;
// justify-content: space-between;
padding
:
16px
0
;
border-bottom
:
1px
solid
#f3f4f8
;
.label
{
flex
:
0
0
100px
;
font-size
:
12px
;
font-weight
:
500
;
line-height
:
18px
;
color
:
#77818f
;
}
input
{
font-size
:
14px
;
font-weight
:
normal
;
line-height
:
18px
;
color
:
#1b2026
;
}
image
{
width
:
28px
;
height
:
28px
;
border-radius
:
50%
;
}
}
}
}
}
.welcome
{
.welcome
{
padding
:
54rpx
80rpx
0
66rpx
;
padding
:
54rpx
80rpx
0
66rpx
;
...
@@ -247,6 +218,35 @@ const chooseImage = sourceType => {
...
@@ -247,6 +218,35 @@ const chooseImage = sourceType => {
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-top-left-radius
:
80rpx
;
border-top-left-radius
:
80rpx
;
border-top-right-radius
:
80rpx
;
border-top-right-radius
:
80rpx
;
.item
{
display
:
flex
;
align-items
:
center
;
// justify-content: space-between;
padding
:
16px
0
;
border-bottom
:
1px
solid
#f3f4f8
;
.label
{
flex
:
0
0
100px
;
font-size
:
12px
;
font-weight
:
500
;
line-height
:
18px
;
color
:
#77818f
;
.red
{
color
:
red
;
}
}
input
{
font-size
:
14px
;
font-weight
:
normal
;
line-height
:
18px
;
color
:
#1b2026
;
}
image
{
width
:
28px
;
height
:
28px
;
border-radius
:
50%
;
}
}
.t1
{
.t1
{
font-size
:
32rpx
;
font-size
:
32rpx
;
line-height
:
54rpx
;
line-height
:
54rpx
;
...
...
src/pages/user/businessLicense/submit.vue
View file @
b7ccf839
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
{{
formData
.
creditCode
}}
{{
formData
.
creditCode
}}
</view>
</view>
</view>
</view>
<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=
"radio"
shape=
"dot"
inline
>
<wd-radio-group
v-model=
"radio"
shape=
"dot"
inline
>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
}}
}}
</view>
</view>
</wd-calendar>
</wd-calendar>
</view>
</view>
-->
</view>
</view>
<view
class=
"btn-wrap"
>
<view
class=
"btn-wrap"
>
...
...
src/utils/request.js
View file @
b7ccf839
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.
61
: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