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
94685e96
authored
Jul 03, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
8b268c70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
23 deletions
src/views/SelectIdentity.vue
src/views/SelectIdentity.vue
View file @
94685e96
...
@@ -62,7 +62,8 @@ export default class SelectIdentity extends Vue {
...
@@ -62,7 +62,8 @@ export default class SelectIdentity extends Vue {
private
dispatch_list
:
any
[]
=
[];
private
dispatch_list
:
any
[]
=
[];
private
no_data
:
boolean
=
false
;
private
no_data
:
boolean
=
false
;
private
loading
:
any
;
private
loading
:
any
;
private
idVeri
:
string
=
"https://www.qinqinxiaobao.com?pmode=native&url=identityVerification&pname=%e8%ba%ab%e4%bb%bd%e8%ae%a4%e8%af%81"
;
private
idVeri
:
string
=
"https://www.qinqinxiaobao.com?pmode=native&url=identityVerification&pname=%e8%ba%ab%e4%bb%bd%e8%ae%a4%e8%af%81"
;
get
id_no_encrytion
():
string
{
get
id_no_encrytion
():
string
{
return
encodeURI
(
window
.
btoa
(
this
.
id_no
));
return
encodeURI
(
window
.
btoa
(
this
.
id_no
));
...
@@ -137,30 +138,30 @@ export default class SelectIdentity extends Vue {
...
@@ -137,30 +138,30 @@ export default class SelectIdentity extends Vue {
}
}
private
callJSBridage
()
{
private
callJSBridage
()
{
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
console
.
log
(
"userAgent="
,
userAgent
);
console
.
log
(
"userAgent="
,
userAgent
);
try
{
try
{
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
console
.
log
(
"setPageNavState"
);
console
.
log
(
"setPageNavState"
);
//@ts-ignore
this
.
$bridge
.
setPageNavState
({
isShowClose
:
true
,
isShowBack
:
false
,
isCloseLeft
:
true
,
isShowTitle
:
true
,
isShowNav
:
true
,
isCloseWebView
:
true
})
//@ts-ignore
//@ts-ignore
this
.
$bridge
.
then
(
res
=>
{
.
setPageNavState
({
console
.
log
(
"couponlist setpageNavState callback"
,
res
);
isShowClose
:
true
,
});
isShowBack
:
false
,
isCloseLeft
:
true
,
isShowTitle
:
true
,
isShowNav
:
true
,
isCloseWebView
:
true
})
//@ts-ignore
.
then
(
res
=>
{
console
.
log
(
"couponlist setpageNavState callback"
,
res
);
});
}
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
}
async
created
()
{
async
created
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -175,7 +176,7 @@ export default class SelectIdentity extends Vue {
...
@@ -175,7 +176,7 @@ export default class SelectIdentity extends Vue {
});
});
await
this
.
getUserInfo
();
await
this
.
getUserInfo
();
if
(
this
.
id_no
)
{
if
(
this
.
id_no
)
{
await
this
.
getDispatchList
();
//这里是开启劳务派遣的开关
await
this
.
getDispatchList
();
//这里是开启劳务派遣的开关
}
}
this
.
loading
.
clear
();
this
.
loading
.
clear
();
}
}
...
...
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