zhouhao
2022-01-10 fd013679682bf802d074ac98f2bd4429975faa39
修改人脸识别
1 files modified
107 ■■■■ changed files
src/views/main/queryres.vue 107 ●●●● patch | view | raw | blame | history
src/views/main/queryres.vue
@@ -49,69 +49,68 @@
      // let  objForm ={bizId:this.bizId,bizType:this.bizType}
      var t2 = window.setInterval(function () {
        slfe.$api.getBizStatus({bizId:slfe.bizId,bizType:slfe.bizType}).then(res => {
         this.dataInfo =res.body
           if(Number(this.bizType) ==0){  //签署授权函
                if( this.dataInfo.status==1){  //授权人脸未出结果
                 this.datastr ='活体校验识别中,请稍等.....'
                 this.signBtn =false
                  this.ResultIs =false
                }else if( this.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
                 this.datastr ='活体校验成功!待签署信息授权函,请稍后.....'
                 this.signBtn =false
                  this.ResultIs =false
                }else if( this.dataInfo.status==201){  //信息授权函签署失败
         slfe.dataInfo =res.body
           if(Number(slfe.bizType) ==0){  //签署授权函
                if( slfe.dataInfo.status==1){  //授权人脸未出结果
                 slfe.datastr ='活体校验识别中,请稍等.....'
                 slfe.signBtn =false
                  slfe.ResultIs =false
                }else if( slfe.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
                 slfe.datastr ='活体校验成功!待签署信息授权函,请稍后.....'
                 slfe.signBtn =false
                  slfe.ResultIs =false
                }else if( slfe.dataInfo.status==201){  //信息授权函签署失败
                 window.clearInterval(t2)  
                 this.datastr ='活体校验成功!签署信息授权函失败,请重试.....'
                 this.signBtn =true
                 this.ResultIs =false
                }else if( this.dataInfo.status==3){  //完成信息授权函签署
                 slfe.datastr ='活体校验成功!签署信息授权函失败,请重试.....'
                 slfe.signBtn =true
                 slfe.ResultIs =false
                }else if( slfe.dataInfo.status==3){  //完成信息授权函签署
                window.clearInterval(t2)  
                this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}})
                }else if( this.dataInfo.status==99){
                slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}})
                }else if( slfe.dataInfo.status==99){
                   window.clearInterval(t2)
                   this.datastr ='活体校验失败!请重试.....'
                   this.signBtn =false
                   this.ResultIs =true
                   console.log('aaaaa')
                   slfe.datastr ='活体校验失败!请重试.....'
                   slfe.signBtn =false
                   slfe.ResultIs =true
                }
           }else if(Number(this.bizType) ==1){  //签署借款
                if( this.dataInfo.status==1){  //授权人脸未出结果
                 this.datastr ='活体校验识别中,请稍等.....'
                   this.signBtn =false
                  this.ResultIs =false
                }else if( this.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
                 this.datastr ='活体校验成功!待签署合同,请稍后.....'
                   this.signBtn =false
                  this.ResultIs =false
                }else if( this.dataInfo.status==201){    //完成个人人脸授信,待签署信息函
           }else if(Number(slfe.bizType) ==1){  //签署借款
                if( slfe.dataInfo.status==1){  //授权人脸未出结果
                 slfe.datastr ='活体校验识别中,请稍等.....'
                   slfe.signBtn =false
                  slfe.ResultIs =false
                }else if( slfe.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
                 slfe.datastr ='活体校验成功!待签署合同,请稍后.....'
                   slfe.signBtn =false
                  slfe.ResultIs =false
                }else if( slfe.dataInfo.status==201){    //完成个人人脸授信,待签署信息函
                  window.clearInterval(t2)
                  this.datastr ='活体校验成功!签署合同失败,请重试.....'
                   this.signBtn =true
                  this.ResultIs =false
                }else if( this.dataInfo.status==3){  //完成个人单笔合同签署    待分销主体验证
                  slfe.datastr ='活体校验成功!签署合同失败,请重试.....'
                   slfe.signBtn =true
                  slfe.ResultIs =false
                }else if( slfe.dataInfo.status==3){  //完成个人单笔合同签署    待分销主体验证
                 window.clearInterval(t2)
                this.$router.push({path:'/',query:{bizId:this.bizId,bizType:this.bizType}})
                }else if( this.dataInfo.status==4){  //授权人脸未出结果
                 this.datastr ='活体校验识别中,请稍等.....'
                   this.signBtn =false
                  this.ResultIs =false
                }else if( this.dataInfo.status==5){  //授权人脸未出结果
                 this.datastr ='活体校验成功!待签署合同,请稍等.....'
                   this.signBtn =false
                  this.ResultIs =false
                }else if( this.dataInfo.status==501){  //授权人脸未出结果
                slfe.$router.push({path:'/',query:{bizId:slfe.bizId,bizType:slfe.bizType}})
                }else if( slfe.dataInfo.status==4){  //授权人脸未出结果
                 slfe.datastr ='活体校验识别中,请稍等.....'
                   slfe.signBtn =false
                  slfe.ResultIs =false
                }else if( slfe.dataInfo.status==5){  //授权人脸未出结果
                 slfe.datastr ='活体校验成功!待签署合同,请稍等.....'
                   slfe.signBtn =false
                  slfe.ResultIs =false
                }else if( slfe.dataInfo.status==501){  //授权人脸未出结果
                  window.clearInterval(t2)  
                 this.datastr ='活体校验成功!签署合同失败,请重试.....'
                 this.signBtn =true
                 this.ResultIs =false
                }else if( this.dataInfo.status==6){  //完成主体合同签署
                 slfe.datastr ='活体校验成功!签署合同失败,请重试.....'
                 slfe.signBtn =true
                 slfe.ResultIs =false
                }else if( slfe.dataInfo.status==6){  //完成主体合同签署
                 window.clearInterval(t2)  
                this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}})
                }else if( this.dataInfo.status==88 ||  this.dataInfo.status==99){
                   this.signBtn =false
                   this.ResultIs =true
                slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}})
                }else if( slfe.dataInfo.status==88 ||  slfe.dataInfo.status==99){
                   slfe.signBtn =false
                   slfe.ResultIs =true
                   window.clearInterval(t2)
                   this.datastr ='活体校验失败!请重试.....'
                   slfe.datastr ='活体校验失败!请重试.....'
                }          
           }
        })