Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4b9392e2
authored
Jun 04, 2020
by
lishengfu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of gitlab.corp.qinqinxiaobao.com:frontend_vue/qqxb-self-service
parents
0e75b93f
0a7a72ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
src/servicesImpl/employee/employeeImpl.ts
src/utils/method.ts
src/views/SelectIdentity.vue
src/servicesImpl/employee/employeeImpl.ts
View file @
4b9392e2
...
...
@@ -44,7 +44,7 @@ class EmployeeService implements EmployeeInterface {
*/
public
async
getUserInfo
(
params
:
any
):
Promise
<
any
>
{
const
url
=
urls
.
userInfoUrl
+
`/userAuthDetails`
;
return
request
.
post
(
url
,
params
,
this
.
header
)
return
request
.
post
(
url
,
params
,
this
.
header
,
true
)
}
/**
...
...
src/utils/method.ts
View file @
4b9392e2
...
...
@@ -26,9 +26,9 @@ class Request {
* @param params 请求参数
* @param headers 请求头信息
*/
public
post
(
url
:
string
,
params
:
any
=
{},
headers
:
any
=
{})
{
public
post
(
url
:
string
,
params
:
any
=
{},
headers
:
any
=
{}
,
special
:
boolean
=
false
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
(
http
.
post
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
params
,
{
headers
:
headers
}));
resolve
(
http
.
post
(
`
${
url
}
?
${
GetCommonPms
(
special
)}
`
,
params
,
{
headers
:
headers
}));
})
}
...
...
@@ -42,7 +42,7 @@ class Request {
*/
public
put
(
url
:
string
,
params
:
any
=
{},
headers
:
any
=
{})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
(
http
.
put
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
params
,
{
headers
:
headers
}));
resolve
(
http
.
put
(
`
${
url
}
?
${
GetCommonPms
()}
`
,
params
,
{
headers
:
headers
}));
})
}
...
...
src/views/SelectIdentity.vue
View file @
4b9392e2
...
...
@@ -43,15 +43,18 @@ export default class SelectIdentity extends Vue {
}
async
created
()
{
await
this
.
$server
.
EmployeeService
.
getUserInfo
({}).
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
}
else
{
//TODO: 跳转到实名认证
}
}).
catch
(
err
=>
{
console
.
log
(
'err='
,
err
);
});
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
.
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
console
.
log
(
"this.id_no="
,
this
.
id_no
);
}
else
{
//TODO: 跳转到实名认证
}
})
.
catch
(
err
=>
{
console
.
log
(
"err="
,
err
);
});
}
}
</
script
>
...
...
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