From a9fb54fd54abeab71a87b032ca6f75f83f4e7eeb Mon Sep 17 00:00:00 2001 From: liyuetong Date: Mon, 1 Nov 2021 15:30:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E5=BC=B9=E6=A1=86--?= =?UTF-8?q?=E7=AD=BE=E7=BA=A6=E7=A1=AE=E8=AE=A4=E5=A4=B1=E8=B4=A5=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BA=B2=EF=BC=8C=E6=82=A8=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E9=93=B6=E8=A1=8C=E5=8D=A1=E8=B4=A6=E6=88=B7=E7=BB=AD?= =?UTF-8?q?=E6=9C=9F=E7=AD=BE=E7=BA=A6=E5=A4=B1=E8=B4=A5=EF=BC=8C=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0=EF=BC=9A=E6=8F=90=E7=A4=BA=E8=AF=9D=E6=9C=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/PayMent.vue | 104 +++++++++++++++++++++++--------- 1 file changed, 76 insertions(+), 28 deletions(-) diff --git a/src/views/ebiz/sale/PayMent.vue b/src/views/ebiz/sale/PayMent.vue index f96602416..9fb24b3c5 100644 --- a/src/views/ebiz/sale/PayMent.vue +++ b/src/views/ebiz/sale/PayMent.vue @@ -85,7 +85,7 @@ - +

亲,您的银行卡账户未进行续期签约,为确保是您本人操作,短信验证码已发送至您的手机号{{ encyCustomerMobile }},请您输入验证码完成签约流程~

@@ -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: {