【续期银行卡签约需求】-签约中逻辑调整,获取短连接地址,前端跳转签约 --提交人:白金岩

This commit is contained in:
bai.jinyan
2021-09-18 16:19:16 +08:00
parent b4e974a2d1
commit e777b8fc30

View File

@@ -466,15 +466,31 @@ export default {
// 需签约 且 未签约
this.bankSignJump(shortUrl)
resolve(false);
}else if (checkRes.signState == '4') {
if (checkRes.signConfirmType == '4' && shortUrl) {
}else if (checkRes.signState == '4' && shortUrl) {
// 签约中
if (checkRes.signConfirmType == '4' && ('CMB' == bankCode || '308' == bankCode)) {
// signConfirmType = 4 代表 招行需签约
this.bankSignJump(shortUrl);
resolve(false);
}else {
// 其他银行 签约中
this.$toast('亲,您的银行卡在签约中,请稍后再试')
resolve(false);
// 其他银行
const info = '亲,银行卡在签约中,请确认是否已完成续期银行卡签约,如未完成可以点击继续签约~'
Dialog.confirm({
message: info,
className: 'reConfirm leftConfirm',
cancelButtonText: '返回',
cancelButtonColor: '#ff5e50',
confirmButtonText: '继续签约',
confirmButtonColor: '#ff5e50',
allowHtml: true
}).then(() => {
// 继续签约 跳转页面
window.location.href = shortUrl
resolve(false);
}).catch(() => {
// 返回 保留在当前页面
resolve(false);
})
}
} else if (checkRes.signState == '3') {
// 签约失败