验证码弹框--签约确认失败时,添加亲,您当前银行卡账户续期签约失败,原因:提示话术

This commit is contained in:
liyuetong
2021-11-01 15:30:18 +08:00
parent bf2ef60fd0
commit 91b56b8e2f

View File

@@ -85,7 +85,7 @@
</div>
<!-- 分享到微信的页面loading -->
<Loading :isLoading="isLoading"></Loading>
<van-dialog v-model="show" title="提示" show-cancel-button @confirm="authConfirm(verfyCode)">
<van-dialog v-model="show" title="提示" show-cancel-button @confirm="authConfirm" :before-close="checkModelBeforeClose" @cancel="checkModelCancel">
<p class="p10 fs14">您的银行卡账户未进行续期签约为确保是您本人操作短信验证码已发送至您的手机号{{ encyCustomerMobile }}请您输入验证码完成签约流程~</p>
<van-cell-group class="flex align-items-c pr5 mb15">
<van-field maxlength="6" placeholder="请输入短信验证码" v-model="verfyCode" clearable label-width="0" />
@@ -472,46 +472,56 @@ export default {
if (checkRes.signConfirmType == '2'){
this.show = true
this.rdSeq = checkRes.rdSeq
resolve(false);
}else if (checkRes.signConfirmType == '3'){
Dialog.alert({
message: '亲,银行已发送短信至手机号'+ this.encyCustomerMobile +',按照短信提示完成短信回复签约,再次通过金掌桂完成后续流程。',
confirmButtonColor: '#ff5e50',
}).then(() => {})
resolve(false);
}else{
this.$toast('该微信绑定的银行卡金掌桂暂不支持续期签约!')
resolve(false);
}
// 需要签约
const shortUrl = checkRes.shortUrl;
if(checkRes.signState == '1'){
// 需签约 且 未签约
this.bankSignJump(shortUrl)
resolve(false);
}else if (checkRes.signState == '4' && shortUrl) {
// const shortUrl = checkRes.shortUrl;
// if(checkRes.signState == '1'){
// // 需签约 且 未签约
// this.bankSignJump(shortUrl)
// resolve(false);
// }else
// if (checkRes.signState == '4' && shortUrl) {
if (checkRes.signState == '4') {
// 签约中
if (checkRes.signConfirmType == '4' && ('CMB' == bankCode || '308' == bankCode)) {
// signConfirmType = 4 代表 招行需签约
this.bankSignJump(shortUrl);
resolve(false);
}else {
// 其他银行
const info = '亲,银行卡已在签约中,请确认是否已完成续期银行卡签约,如未完成可以点击继续签约~'
Dialog.confirm({
message: info,
className: 'reConfirm leftConfirm',
cancelButtonText: '返回',
cancelButtonColor: '#ff5e50',
confirmButtonText: '继续签约',
// this.bankSignJump(shortUrl);
Dialog.alert({
message: '亲,招商银行卡请至官微续期签约~',
confirmButtonColor: '#ff5e50',
allowHtml: true
}).then(() => {
// 继续签约 跳转页面
window.location.href = shortUrl
resolve(false);
}).catch(() => {
// 返回 保留在当前页面
resolve(false);
})
}).then(() => {})
resolve(false);
}
// else {
// // 其他银行
// 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') {
// 签约失败
const info = '亲,您当前银行卡账户续期签约失败,原因:' + checkRes.resultMessage
@@ -552,10 +562,48 @@ export default {
verfyCode:this.verfyCode,
businessNo:this.orderNo
}
if (!this.verfyCode || this.verfyCode == '') {
this.show = true
return this.$toast('请输入短信验证码')
}
if (this.verfyCode.length !== 6) {
this.show = true
return this.$toast('验证码格式错误')
}
signConfirm(data).then(res => {
this.verfyCode = ''
this.$toast(res.resultMessage)
if (res.result == '0') {
this.getAcceptInsurance()
}else{
// 签约失败
const info = '亲,您当前银行卡账户续期签约失败,原因:' + res.resultMessage
Dialog.confirm({
message: info,
className: 'reConfirm leftConfirm',
cancelButtonText: '返回',
cancelButtonColor: '#ff5e50',
confirmButtonText: '修改银行卡信息',
confirmButtonColor: '#ff5e50',
allowHtml: true
}).then(() => {
// 订单状态已同步修改为 签约失败,页面提示去修改银行卡信息
localStorage.setItem('changeCard', true)
this.$router.push('/sale/AccountInformation')
})
}
})
},
//弹窗关闭提示
checkModelBeforeClose(action, done) {
if (action === 'confirm' && !this.show) {
setTimeout(done, 1000)
} else {
done(false)
}
},
// 取消按钮
checkModelCancel() {
this.show = false
}
},
components: {