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 | 9 +++++----
src/views/main/singsuc.vue | 15 +++++++++++----
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/src/views/main/queryres.vue b/src/views/main/queryres.vue
index 2c5b53d..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,//重新签约按钮
@@ -89,8 +90,7 @@
slfe.ResultIs =false
}else if( slfe.dataInfo.status==3){ //完成个人单笔合同签署 待分销主体验证
window.clearInterval(t2)
- // slfe.$router.push({path:'/',query:{bizId:slfe.bizId,bizType:slfe.bizType}})
- window.location.href ="https://www.qadlj.com/authorizeBack.html"
+ slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}})
}else if( slfe.dataInfo.status==4){ //授权人脸未出结果
slfe.datastr ='活体校验识别中,请稍等.....'
slfe.signBtn =false
@@ -155,7 +155,7 @@
})
},
returnPage(){ //返回APP
- window.location.href ="https://www.qadlj.com/authorizeBack.html"
+ window.location.href =res.body.callBackUrl
}
},
//生命周期 - 创建完成(可以访问当前this实例)
@@ -168,6 +168,7 @@
// }else{ //执行定时器
// this.bankCardNoInit()
// }
+ this.dataForm =res.body
var slfe = this
if(Number(this.bizType) ==0){ //签署授权函
if(res.body.status==1){ //授权人脸未出结果
@@ -208,7 +209,7 @@
slfe.ResultIs =false
}else if( res.body.status==3){ //完成个人单笔合同签署 待分销主体验证
// slfe.$router.push({path:'/',query:{bizId:slfe.bizId,bizType:slfe.bizType}})
- window.location.href ="https://www.qadlj.com/authorizeBack.html"
+ slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}})
}else if( res.body.status==4){ //授权人脸未出结果
slfe.datastr ='活体校验识别中,请稍等.....'
slfe.signBtn =false
diff --git a/src/views/main/singsuc.vue b/src/views/main/singsuc.vue
index b19a810..914a519 100644
--- a/src/views/main/singsuc.vue
+++ b/src/views/main/singsuc.vue
@@ -5,12 +5,16 @@
<div style=" text-align: center;">
<img height="180" src="../../assets/img/successw.png" />
</div>
- <div class="content" v-if="$route.query.bizType==0">
+ <div class="content" v-if="Number($route.query.bizType)==0 && this.dataForm.status==3">
<p class="content-text"> 您的授信已提交,稍后查询授信状态</p>
<van-button @click="returnApp" round block color="#6cc3bb" style="width:80%">确认</van-button>
</div>
- <div class="content" v-else>
- <p class="content-text">分佣垫付已提交,稍后查询结果</p>
+ <div class="content" v-if="Number($route.query.bizType)==1 && this.dataForm.status==6">
+ <p class="content-text">>您的分佣垫付已提交,稍后查询结果</p>
+ <van-button @click="returnApp" round block color="#6cc3bb" style="width:80%">确认</van-button>
+ </div>
+ <div class="content" v-if="Number($route.query.bizType)==1 && this.dataForm.status==3">
+ <p class="content-text">您的借款已提交,等待分销主体签约</p>
<van-button @click="returnApp" round block color="#6cc3bb" style="width:80%">确认</van-button>
</div>
</div>
@@ -32,11 +36,14 @@
//方法集合
methods: {
returnApp(){
- window.location.href ="https://www.qadlj.com/authorizeBack.html"
+ window.location.href =this.dataForm.callBackUrl
}
},
//生命周期 - 创建完成(可以访问当前this实例)
created() {
+ this.$api.getBizStatus({bizId:this.$route.query.bizId,bizType:this.$route.query.bizType}).then(res=>{
+ this.dataForm =res.body
+ })
},
//生命周期 - 挂载完成(可以访问DOM元素)
mounted() {
--
Gitblit v1.8.0