zhouhao
2022-01-07 e057091389829d697e5373fbef41c97c383c14c6
人脸识别失败跳转
2 files modified
11 ■■■■■ changed files
src/views/main/addBankcard.vue 5 ●●●●● patch | view | raw | blame | history
src/views/main/queryres.vue 6 ●●●●● patch | view | raw | blame | history
src/views/main/addBankcard.vue
@@ -177,6 +177,11 @@
          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 } })
        }
      })
    },
src/views/main/queryres.vue
@@ -99,7 +99,13 @@
  },
  //生命周期 - 创建完成(可以访问当前this实例)
  created() {
     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{