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
ec54d30d
authored
Jul 03, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
b1ba83f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
src/views/SelectIdentity.vue
src/views/SelectIdentity.vue
View file @
ec54d30d
...
...
@@ -58,13 +58,16 @@ import { Toast, Dialog } from "vant";
components
:
{}
})
export
default
class
SelectIdentity
extends
Vue
{
//身份证号码
private
id_no
:
string
=
""
;
private
dispatch_list
:
any
[]
=
[];
private
no_data
:
boolean
=
false
;
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"
;
//加密后的身份证号码
get
id_no_encrytion
():
string
{
return
encodeURI
(
window
.
btoa
(
this
.
id_no
));
}
...
...
@@ -73,22 +76,25 @@ export default class SelectIdentity extends Vue {
return
this
.
dispatch_list
.
length
;
}
//跳转到灵活用工
private
toFlex_click
():
void
{
if
(
this
.
id_no_encrytion
)
{
this
.
$router
.
push
({
name
:
"FlexEmployee"
,
query
:
{
id_no
:
this
.
id_no_encrytion
}
});
}
else
{
console
.
log
(
"this.id_no_encrytion="
,
this
.
id_no_encrytion
);
}
}
//劳务派遣的首页
private
toIndex
(
sp_id
:
string
):
void
{
this
.
$router
.
push
({
name
:
"Index"
,
query
:
{
id_no
:
this
.
id_no_encrytion
,
sp_id
:
sp_id
}
});
}
//劳务派遣选择公司页面
private
ChooseCompany
()
{
this
.
$router
.
push
({
name
:
"ChooseCompany"
,
...
...
@@ -96,6 +102,7 @@ export default class SelectIdentity extends Vue {
});
}
//跳转到劳务派遣
private
toIndex_click
():
void
{
if
(
this
.
company_num
>
1
||
this
.
company_num
==
0
)
{
this
.
ChooseCompany
();
...
...
@@ -163,11 +170,23 @@ export default class SelectIdentity extends Vue {
}
}
//禁止浏览器返回操作
private
disableBack
()
{
console
.
log
(
"disableBack"
);
//@ts-ignore
history
.
pushState
(
null
,
null
,
location
.
href
);
window
.
addEventListener
(
"popstate"
,
function
()
{
//@ts-ignore
history
.
pushState
(
null
,
null
,
location
.
href
);
});
}
async
created
()
{
setTimeout
(()
=>
{
this
.
callJSBridage
();
},
500
);
console
.
log
(
"this.idVeri="
,
this
.
idVeri
);
this
.
disableBack
();
this
.
loading
=
Toast
.
loading
({
duration
:
0
,
...
...
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