Commit 20538730 by cocomilk2012

update

parent 45ff117c
Showing with 21 additions and 8 deletions
......@@ -35,13 +35,17 @@
class="si-child"
id="flex-employee"
v-if="no_data"
href="https://www.qinqinxiaobao.com?pmode=native&url=identityVerification"
:href="idVeri"
style="height:150px;background:#fff;margin-top:200px;text-align:center;"
>
<div class="si-child-desc " style="width:100%;">
<h4 style="text-align:center;">您还未实名认证,不可进行查询</h4>
<h4 style="text-align:center;">请先去进行实名认证后再查询</h4>
<p style="text-align:center;border:1px solid #077aec;border-radius:5px;color:#077aec;width:80px;height:30px;line-height:30px;background:#fff;margin:20px auto;">去认证</p>
<p
style="text-align:center;border:1px solid #077aec;border-radius:5px;color:#077aec;width:80px;height:30px;line-height:30px;background:#fff;margin:20px auto;"
>
去认证
</p>
</div>
</a>
</div>
......@@ -58,6 +62,10 @@ export default class SelectIdentity extends Vue {
private dispatch_list: any[] = [];
private no_data: boolean = false;
private loading: any;
private androidIdVeri: string = "qqxb://native/identityVerification";
private iosIdVeri: string =
"https://www.qinqinxiaobao.com?pmode=native&url=identityVerification";
private idVeri: string = "qqxb://native/identityVerification";
get id_no_encrytion(): string {
return encodeURI(window.btoa(this.id_no));
......@@ -91,7 +99,7 @@ export default class SelectIdentity extends Vue {
}
private toIndex_click(): void {
if (this.company_num > 1||this.company_num ==0) {
if (this.company_num > 1 || this.company_num == 0) {
this.ChooseCompany();
}
......@@ -105,7 +113,6 @@ export default class SelectIdentity extends Vue {
await this.$server.EmployeeService.getUserInfo({})
.then(res => {
if (res.data && res.data.uthStatus && res.data.uthStatus > 0) {
this.id_no = res.data.personalIdCardNo;
localStorage.setItem("id_no", res.data.personalIdCardNo);
localStorage.setItem("name", res.data.personalName);
......@@ -115,7 +122,6 @@ export default class SelectIdentity extends Vue {
//TODO: 跳转到实名认证
this.no_data = true;
}
this.no_data = true;
})
.catch(err => {
console.log("err=");
......@@ -134,9 +140,18 @@ export default class SelectIdentity extends Vue {
}
async created() {
let u = navigator.userAgent;
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.loading = Toast.loading({
duration: 0,
message:'加载中...',
message: "加载中...",
forbidClick: true
});
await this.getUserInfo();
......@@ -277,5 +292,4 @@ van-toast__loading {
.van-toast--unclickable * {
pointer-events: none;
}
</style>
\ No newline at end of file
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