Commit 94685e96 by cocomilk2012

update

parent 8b268c70
Showing with 24 additions and 23 deletions
...@@ -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();
} }
......
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