From e9a40ce57907184ee48d2aab1c3dab4a2e61c7ab Mon Sep 17 00:00:00 2001 From: zhouhao <787329763@qq.com> Date: Tue, 11 Jan 2022 10:45:23 +0800 Subject: [PATCH] 跳转链接修改完成 --- src/views/main/queryres.vue | 187 +++++++++++++++++++++++++++++++--------------- 1 files changed, 126 insertions(+), 61 deletions(-) diff --git a/src/views/main/queryres.vue b/src/views/main/queryres.vue index c4eeacb..0eb62dd 100644 --- a/src/views/main/queryres.vue +++ b/src/views/main/queryres.vue @@ -33,6 +33,7 @@ examineIs:true, dataInfo:{ }, + dataForm:{}, bizId:this.$route.query.bizId, //订单编号 bizType:this.$route.query.bizType, //订单类型 signBtn:false,//重新签约按钮 @@ -49,68 +50,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 + 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:'/main/bancardsucces',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 ='活体校验失败!请重试.....' } } }) @@ -154,19 +155,83 @@ }) }, returnPage(){ //返回APP - window.location.href ="https://www.qadlj.com/authorizeBack.html" + window.location.href =res.body.callBackUrl } }, //生命周期 - 创建完成(可以访问当前this实例) created() { this.$api.getBizStatus({bizId:this.bizId,bizType:this.bizType}).then(res=>{ - if(res.body.status == 3 && Number(this.bizType) ==0 || res.body.status ==6 && Number(this.bizType) ==1 ){ //成功直接跳转成功页面 - this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}}) - }else if(res.body.status == 3 && Number(this.bizType) ==1){ //待签约分销主体 - this.$router.push({path:'/',query:{bizId:this.bizId,bizType:this.bizType}}) - }else{ //执行定时器 - this.bankCardNoInit() - } + // if(res.body.status == 3 && Number(this.bizType) ==0 || res.body.status ==6 && Number(this.bizType) ==1 ){ //成功直接跳转成功页面 + // this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}}) + // }else if(res.body.status == 3 && Number(this.bizType) ==1){ //待签约分销主体 + // this.$router.push({path:'/',query:{bizId:this.bizId,bizType:this.bizType}}) + // }else{ //执行定时器 + // this.bankCardNoInit() + // } + this.dataForm =res.body + var slfe = this + if(Number(this.bizType) ==0){ //签署授权函 + if(res.body.status==1){ //授权人脸未出结果 + slfe.datastr ='活体校验识别中,请稍后.....' + slfe.signBtn =false + slfe.ResultIs =false + this.bankCardNoInit() + }else if( res.body.status==2){ //完成个人人脸授信,待签署信息函 + slfe.datastr ='活体校验成功!待签署信息授权函,请稍后.....' + slfe.signBtn =false + slfe.ResultIs =false + this.bankCardNoInit() + }else if( res.body.status==201){ //信息授权函签署失败 + slfe.datastr ='活体校验成功!签署信息授权函失败,请重试.....' + slfe.signBtn =true + slfe.ResultIs =false + }else if( res.body.status==3){ //完成信息授权函签署 + slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) + }else if( res.body.status==99){ + slfe.datastr ='活体校验失败!请重试.....' + slfe.signBtn =false + slfe.ResultIs =true + } + }else if(Number(slfe.bizType) ==1){ //签署借款 + if( res.body.status==1){ //授权人脸未出结果 + slfe.datastr ='活体校验识别中,请稍后.....' + slfe.signBtn =false + slfe.ResultIs =false + this.bankCardNoInit() + }else if( res.body.status==2){ //完成个人人脸授信,待签署信息函 + slfe.datastr ='活体校验成功!待签署合同,请稍后.....' + slfe.signBtn =false + slfe.ResultIs =false + this.bankCardNoInit() + }else if( res.body.status==201){ //完成个人人脸授信,待签署信息函 + slfe.datastr ='活体校验成功!签署合同失败,请重试.....' + slfe.signBtn =true + slfe.ResultIs =false + }else if( res.body.status==3){ //完成个人单笔合同签署 待分销主体验证 + // slfe.$router.push({path:'/',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) + slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) + }else if( res.body.status==4){ //授权人脸未出结果 + slfe.datastr ='活体校验识别中,请稍等.....' + slfe.signBtn =false + slfe.ResultIs =false + this.bankCardNoInit() + }else if(res.body.status==5){ //授权人脸未出结果 + slfe.datastr ='活体校验成功!待签署合同,请稍等.....' + slfe.signBtn =false + slfe.ResultIs =false + this.bankCardNoInit() + }else if( res.body.status==501){ //授权人脸未出结果 + slfe.datastr ='活体校验成功!签署合同失败,请重试.....' + slfe.signBtn =true + slfe.ResultIs =false + }else if( res.body.status==6){ //完成主体合同签署 + slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) + }else if( res.body.status==88 || res.body.status==99){ + slfe.signBtn =false + slfe.ResultIs =true + slfe.datastr ='活体校验失败!请重试.....' + } + } }) }, //生命周期 - 挂载完成(可以访问DOM元素) -- Gitblit v1.8.0