Commit 95b00be5 by cocomilk2012

update

parent d84583a8
Showing with 3 additions and 17 deletions
...@@ -62,10 +62,7 @@ export default class SelectIdentity extends Vue { ...@@ -62,10 +62,7 @@ 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 androidIdVeri: string = "qqxb://native/identityVerification"; 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 iosIdVeri: string =
"https://www.qinqinxiaobao.com?pmode=native&url=identityVerification";
private idVeri: string = "qqxb://native/identityVerification";
get id_no_encrytion(): string { get id_no_encrytion(): string {
return encodeURI(window.btoa(this.id_no)); return encodeURI(window.btoa(this.id_no));
...@@ -122,7 +119,6 @@ export default class SelectIdentity extends Vue { ...@@ -122,7 +119,6 @@ export default class SelectIdentity extends Vue {
//TODO: 跳转到实名认证 //TODO: 跳转到实名认证
this.no_data = true; this.no_data = true;
} }
this.no_data = true;
}) })
.catch(err => { .catch(err => {
console.log("err="); console.log("err=");
...@@ -141,18 +137,8 @@ export default class SelectIdentity extends Vue { ...@@ -141,18 +137,8 @@ export default class SelectIdentity extends Vue {
} }
async created() { async created() {
let u = navigator.userAgent; console.log("this.idVeri=", this.idVeri);
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.idVeri = 'https://www.qinqinxiaobao.com?pmode=native&url=identityVerification&pname=%e8%ba%ab%e4%bb%bd%e8%ae%a4%e8%af%81';
console.log('this.idVeri=',this.idVeri);
this.loading = Toast.loading({ this.loading = Toast.loading({
duration: 0, duration: 0,
message: "加载中...", message: "加载中...",
......
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