| | |
| | | //生命周期 - 创建完成(可以访问当前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() |
| | | // } |
| | | 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}}) |
| | | }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元素) |