From e057091389829d697e5373fbef41c97c383c14c6 Mon Sep 17 00:00:00 2001
From: zhouhao <787329763@qq.com>
Date: Fri, 07 Jan 2022 11:52:54 +0800
Subject: [PATCH] 人脸识别失败跳转

---
 src/views/main/queryres.vue    |    8 +++++++-
 src/views/main/addBankcard.vue |    7 ++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/views/main/addBankcard.vue b/src/views/main/addBankcard.vue
index aa1aa39..65154a0 100644
--- a/src/views/main/addBankcard.vue
+++ b/src/views/main/addBankcard.vue
@@ -177,7 +177,12 @@
           this.$router.push({ path: '/main/queryres', query: { ...objForm } })
         }else  if(this.dataInfo.status == 6 && Number(this.bizType) ==1 || this.dataInfo.status ==2 && Number(this.bizType) ==0 ){  //已完成人脸识别合同签署
                this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}}) 
-        }
+        }else if(res.body.status==99 &&  Number(this.bizType)==0 || res.body.status==88 &&  Number(this.bizType)==1  || res.body.status==99 &&  Number(this.bizType)==1){   //人脸识别失败
+                      //  window.clearInterval(t2)  // 去除定时器  
+                      //   slfe.dataInfo =res.body
+                      //   slfe.ResultIs =true    //重试
+             this.$router.push({ path: '/main/queryres', query: { ...objForm } })
+            } 
       })
     },
     onClickLeft() {
diff --git a/src/views/main/queryres.vue b/src/views/main/queryres.vue
index 23bc718..2f25fae 100644
--- a/src/views/main/queryres.vue
+++ b/src/views/main/queryres.vue
@@ -99,7 +99,13 @@
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {
-    this.bankCardNoInit()
+     this.$api.getBizStatus({bizId:this.bizId,bizType:this.bizType}).then(res=>{
+       if(res.body.status==99 &&  Number(this.bizType)==0 || res.body.status==88 &&  Number(this.bizType)==1  || res.body.status==99 &&  Number(this.bizType)==1){
+             return this.ResultIs =true   
+       }else{
+             this.bankCardNoInit()
+       }
+     })
     // if(this.getQueryVariable('orderNo')){
     //       this.orderNo=this.getQueryVariable('orderNo')
     // }else{

--
Gitblit v1.8.0