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
20538730
authored
Jul 02, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
45ff117c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
src/views/SelectIdentity.vue
src/views/SelectIdentity.vue
View file @
20538730
...
...
@@ -35,13 +35,17 @@
class=
"si-child"
id=
"flex-employee"
v-if=
"no_data"
href=
"https://www.qinqinxiaobao.com?pmode=native&url=identityVerification
"
:href=
"idVeri
"
style=
"height:150px;background:#fff;margin-top:200px;text-align:center;"
>
<div
class=
"si-child-desc "
style=
"width:100%;"
>
<h4
style=
"text-align:center;"
>
您还未实名认证,不可进行查询
</h4>
<h4
style=
"text-align:center;"
>
请先去进行实名认证后再查询
</h4>
<p
style=
"text-align:center;border:1px solid #077aec;border-radius:5px;color:#077aec;width:80px;height:30px;line-height:30px;background:#fff;margin:20px auto;"
>
去认证
</p>
<p
style=
"text-align:center;border:1px solid #077aec;border-radius:5px;color:#077aec;width:80px;height:30px;line-height:30px;background:#fff;margin:20px auto;"
>
去认证
</p>
</div>
</a>
</div>
...
...
@@ -58,6 +62,10 @@ export default class SelectIdentity extends Vue {
private
dispatch_list
:
any
[]
=
[];
private
no_data
:
boolean
=
false
;
private
loading
:
any
;
private
androidIdVeri
:
string
=
"qqxb://native/identityVerification"
;
private
iosIdVeri
:
string
=
"https://www.qinqinxiaobao.com?pmode=native&url=identityVerification"
;
private
idVeri
:
string
=
"qqxb://native/identityVerification"
;
get
id_no_encrytion
():
string
{
return
encodeURI
(
window
.
btoa
(
this
.
id_no
));
...
...
@@ -91,7 +99,7 @@ export default class SelectIdentity extends Vue {
}
private
toIndex_click
():
void
{
if
(
this
.
company_num
>
1
||
this
.
company_num
==
0
)
{
if
(
this
.
company_num
>
1
||
this
.
company_num
==
0
)
{
this
.
ChooseCompany
();
}
...
...
@@ -105,7 +113,6 @@ export default class SelectIdentity extends Vue {
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
.
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
localStorage
.
setItem
(
"id_no"
,
res
.
data
.
personalIdCardNo
);
localStorage
.
setItem
(
"name"
,
res
.
data
.
personalName
);
...
...
@@ -115,7 +122,6 @@ export default class SelectIdentity extends Vue {
//TODO: 跳转到实名认证
this
.
no_data
=
true
;
}
this
.
no_data
=
true
;
})
.
catch
(
err
=>
{
console
.
log
(
"err="
);
...
...
@@ -134,9 +140,18 @@ export default class SelectIdentity extends Vue {
}
async
created
()
{
let
u
=
navigator
.
userAgent
;
let
isAndroid
=
u
.
indexOf
(
"Android"
)
>
-
1
||
u
.
indexOf
(
"Adr"
)
>
-
1
;
//android终端
let
isIOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
//ios终端
if
(
isAndroid
)
{
this
.
idVeri
=
this
.
androidIdVeri
;
}
if
(
isIOS
)
{
this
.
idVeri
=
this
.
iosIdVeri
;
}
this
.
loading
=
Toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
message
:
"加载中..."
,
forbidClick
:
true
});
await
this
.
getUserInfo
();
...
...
@@ -277,5 +292,4 @@ van-toast__loading {
.van-toast--unclickable
*
{
pointer-events
:
none
;
}
</
style
>
\ No newline at end of file
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