Commit ec54d30d by cocomilk2012

update

parent b1ba83f9
Showing with 22 additions and 3 deletions
...@@ -58,13 +58,16 @@ import { Toast, Dialog } from "vant"; ...@@ -58,13 +58,16 @@ import { Toast, Dialog } from "vant";
components: {} components: {}
}) })
export default class SelectIdentity extends Vue { export default class SelectIdentity extends Vue {
//身份证号码
private id_no: string = ""; private id_no: string = "";
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 = private idVeri: string =
"https://www.qinqinxiaobao.com?pmode=native&url=identityVerification&pname=%e8%ba%ab%e4%bb%bd%e8%ae%a4%e8%af%81"; "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));
} }
...@@ -73,22 +76,25 @@ export default class SelectIdentity extends Vue { ...@@ -73,22 +76,25 @@ export default class SelectIdentity extends Vue {
return this.dispatch_list.length; return this.dispatch_list.length;
} }
//跳转到灵活用工
private toFlex_click(): void { private toFlex_click(): void {
if (this.id_no_encrytion) { if (this.id_no_encrytion) {
this.$router.push({ this.$router.push({
name: "FlexEmployee", name: "FlexEmployee",
query: { id_no: this.id_no_encrytion } query: { id_no: this.id_no_encrytion }
}); });
} else {
console.log("this.id_no_encrytion=", this.id_no_encrytion);
} }
} }
//劳务派遣的首页
private toIndex(sp_id: string): void { private toIndex(sp_id: string): void {
this.$router.push({ this.$router.push({
name: "Index", name: "Index",
query: { id_no: this.id_no_encrytion, sp_id: sp_id } query: { id_no: this.id_no_encrytion, sp_id: sp_id }
}); });
} }
//劳务派遣选择公司页面
private ChooseCompany() { private ChooseCompany() {
this.$router.push({ this.$router.push({
name: "ChooseCompany", name: "ChooseCompany",
...@@ -96,6 +102,7 @@ export default class SelectIdentity extends Vue { ...@@ -96,6 +102,7 @@ export default class SelectIdentity extends Vue {
}); });
} }
//跳转到劳务派遣
private toIndex_click(): void { private toIndex_click(): void {
if (this.company_num > 1 || this.company_num == 0) { if (this.company_num > 1 || this.company_num == 0) {
this.ChooseCompany(); this.ChooseCompany();
...@@ -163,11 +170,23 @@ export default class SelectIdentity extends Vue { ...@@ -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() { async created() {
setTimeout(() => { setTimeout(() => {
this.callJSBridage(); this.callJSBridage();
}, 500); }, 500);
console.log("this.idVeri=", this.idVeri);
this.disableBack();
this.loading = Toast.loading({ this.loading = Toast.loading({
duration: 0, duration: 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment